:root {
    --adm-primary: #0d6efd;
    --adm-primary-dark: #0a58ca;
    --adm-radius: 16px;
    --adm-bg: #ffffff;
    --adm-border: #e3e7ee;
    --adm-shadow: 0 22px 55px -28px rgba(11, 33, 70, 0.32);
    --adm-ink: #14223e;
    --adm-muted: #5a6479;
}

#hero_in.contacts:before {
    background: var(--hero-bg) center -100px / cover no-repeat !important;
}

@media (max-width: 600px) {
    #hero_in.contacts:before {
        background-position: center 0 !important;
    }
}

@media (min-width: 1500px) {
    #hero_in.contacts:before {
        background-position: center -250px !important;
    }
}

.adm-form-wrap {
    background: linear-gradient(180deg, #f5f8fc 0%, #eef2f8 100%);
    position: relative;
}

.adm-form-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 12% 20%, rgba(13, 110, 253, 0.08), transparent 38%),
    radial-gradient(circle at 88% 80%, rgba(13, 110, 253, 0.06), transparent 42%);
    pointer-events: none;
}

.adm-form-wrap > .container {
    position: relative;
}

.adm-map-card {
    background: var(--adm-bg);
    border-radius: var(--adm-radius);
    padding: 8px;
    box-shadow: var(--adm-shadow);
    border: 1px solid var(--adm-border);
    overflow: hidden;
}

.adm-map-card iframe {
    width: 100% !important;
    height: 320px !important;
    border: 0 !important;
    border-radius: 10px;
    display: block;
}

.adm-map-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    padding: 50px 0 60px;
    border-top: 1px solid var(--adm-border);
}

.adm-map-head {
    text-align: center;
    margin-bottom: 22px;
}

.adm-map-head h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--adm-ink);
    margin: 0 0 4px;
}

.adm-map-head p {
    color: var(--adm-muted);
    font-size: 0.92rem;
    margin: 0;
}

.adm-form-card {
    background: var(--adm-bg);
    border-radius: var(--adm-radius);
    padding: 30px 30px 24px;
    box-shadow: var(--adm-shadow);
    border: 1px solid var(--adm-border);
    position: relative;
}

.adm-form-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--adm-primary) 0%, #4dabf7 50%, var(--adm-primary-dark) 100%);
    border-top-left-radius: var(--adm-radius);
    border-top-right-radius: var(--adm-radius);
}

.adm-form-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--adm-ink);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-form-title .adm-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(77, 171, 247, 0.18));
    color: var(--adm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.adm-form-subtitle {
    color: var(--adm-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.55;
}

.adm-form-card .form-group {
    margin-bottom: 14px;
}

.adm-form-card .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--adm-ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
}

.adm-form-card input[type="text"],
.adm-form-card input[type="email"],
.adm-form-card input[type="tel"],
.adm-form-card input[type="number"],
.adm-form-card input[type="date"],
.adm-form-card input[type="password"],
.adm-form-card select,
.adm-form-card textarea {
    width: 100%;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #fbfcfe;
    color: var(--adm-ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
    font-family: inherit;
}

.adm-form-card input:focus,
.adm-form-card select:focus,
.adm-form-card textarea:focus {
    outline: none;
    border-color: var(--adm-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14);
}

.adm-form-card input[readonly] {
    background: #eef2f8;
    color: #6b7385;
    cursor: not-allowed;
}

.adm-form-card textarea {
    resize: vertical;
    min-height: 110px;
}

.adm-form-card .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.adm-form-card .select2-container--default .select2-selection--single {
    border: 1px solid var(--adm-border) !important;
    border-radius: 10px !important;
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.adm-form-card .select2-container .select2-selection--single {
    height: 46px !important;
    padding-left: 14px;
    padding-top: 8px;
}

.adm-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--adm-ink);
    line-height: 30px;
    padding-left: 0;
}

.adm-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.adm-form-card .select2-container--default.select2-container--focus .select2-selection--single,
.adm-form-card .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--adm-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14) !important;
}

.adm-toggle-row {
    background: #f5f8fc;
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.adm-toggle-row .form-label {
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--adm-ink);
}

.adm-wizard {
    margin-top: 6px;
}

.adm-wizard-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    position: relative;
}

.adm-wizard-steps:before,
.adm-wizard-steps:after {
    content: "";
    position: absolute;
    top: 19px;
    height: 3px;
    border-radius: 3px;
    z-index: 0;
}

.adm-wizard-steps:before {
    left: 16%;
    right: 16%;
    background: #e3e7ee;
}

.adm-wizard-steps:after {
    left: 16%;
    width: var(--wiz-progress, 0%);
    max-width: 68%;
    background: linear-gradient(90deg, var(--adm-primary), var(--adm-primary-dark));
    transition: width .35s ease;
}

.adm-wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    cursor: default;
}

.adm-wizard-step.is-done {
    cursor: pointer;
}

.adm-wiz-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e3e7ee;
    color: #98a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    transition: all .25s ease;
}

.adm-wiz-label {
    font-size: 0.78rem;
    color: var(--adm-muted);
    font-weight: 600;
    display: block;
    line-height: 1.25;
    padding: 0 4px;
}

.adm-wizard-step.is-active .adm-wiz-num {
    background: linear-gradient(135deg, var(--adm-primary), var(--adm-primary-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px -6px rgba(13, 110, 253, 0.45);
    transform: scale(1.06);
}

.adm-wizard-step.is-active .adm-wiz-label {
    color: var(--adm-ink);
}

.adm-wizard-step.is-done .adm-wiz-num {
    background: #1f8a4c;
    border-color: transparent;
    color: #fff;
}

.adm-wizard-step.is-done .adm-wiz-num span {
    display: none;
}

.adm-wizard-step.is-done .adm-wiz-num:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
}

.adm-wiz-progress-text {
    text-align: center;
    color: var(--adm-muted);
    font-size: 0.78rem;
    margin: 0 0 18px;
    font-weight: 500;
}

.adm-wiz-progress-text strong {
    color: var(--adm-primary-dark);
}

.adm-wizard-panels {
    position: relative;
    min-height: 180px;
}

.adm-wizard-panel {
    display: none;
    animation: admFade 0.32s ease;
}

.adm-wizard-panel.is-active {
    display: block;
}

@keyframes admFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.adm-panel-head {
    margin-bottom: 14px;
}

.adm-panel-head h5 {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--adm-ink);
    margin: 0 0 4px;
}

.adm-panel-head p {
    color: var(--adm-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.55;
}

.adm-step-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(13, 110, 253, 0.07);
    color: var(--adm-primary-dark);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.45;
}

.adm-step-tip i {
    color: var(--adm-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.adm-form-pool {
    display: none;
}

.adm-wiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px dashed #d6dbe4;
}

.adm-wiz-nav .btn-wiz {
    flex: 1;
    padding: 13px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.adm-wiz-nav .btn-wiz-prev {
    background: #f0f3f8;
    color: var(--adm-ink);
    flex: 0 0 38%;
}

.adm-wiz-nav .btn-wiz-prev:hover {
    background: #e3e8f0;
}

.adm-wiz-nav .btn-wiz-prev[disabled] {
    visibility: hidden;
}

.adm-wiz-nav .btn-wiz-next,
.adm-wiz-nav .btn-wiz-submit {
    background: linear-gradient(135deg, var(--adm-primary) 0%, var(--adm-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(13, 110, 253, 0.55);
}

.adm-wiz-nav .btn-wiz-next:hover,
.adm-wiz-nav .btn-wiz-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -12px rgba(13, 110, 253, 0.65);
    filter: brightness(1.04);
}

.adm-wiz-nav .is-hidden {
    display: none !important;
}

.adm-wiz-reassure {
    text-align: center;
    color: var(--adm-muted);
    font-size: 0.78rem;
    margin: 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.adm-wiz-reassure i {
    color: #1f8a4c;
}

.adm-form-card .is-invalid,
.adm-form-card .is-invalid + .select2-container .select2-selection--single {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12) !important;
}

.adm-form-card .invalid-feedback {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 4px;
    display: block;
    min-height: 1em;
}

#message-contact:not(:empty) {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #e9f6ec;
    color: #1c6f3a;
    border: 1px solid #c7e7d0;
    font-size: 0.92rem;
}

.adm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 4px 0 6px;
}

.adm-pill {
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
    padding: 14px 16px;
    border: 2px solid var(--adm-border);
    border-radius: 12px;
    background: #fbfcfe;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s, color .2s;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--adm-ink);
    font-family: inherit;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-pill:hover {
    border-color: var(--adm-primary);
    background: #f5faff;
    transform: translateY(-1px);
}

.adm-pill.is-active {
    border-color: var(--adm-primary);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.10), rgba(77, 171, 247, 0.14));
    color: var(--adm-primary-dark);
    box-shadow: 0 10px 22px -12px rgba(13, 110, 253, 0.45);
}

.adm-pill-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--adm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    transition: all .2s ease;
}

.adm-pill.is-active .adm-pill-check {
    border-color: var(--adm-primary);
    background: var(--adm-primary);
}

.adm-pill.is-active .adm-pill-check:after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.62rem;
    color: #fff;
}

.adm-form-card select.is-invalid ~ .adm-pills .adm-pill {
    border-color: #dc3545;
}

.adm-form-card .adm-pill-host select {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.adm-form-card .adm-pill-host .select2-container {
    display: none !important;
}

.adm-form-card .adm-pill-host .form-label {
    display: none;
}

.adm-form-card .adm-pill-host .form-group {
    position: relative;
    margin-bottom: 6px;
}

.adm-pills-empty {
    width: 100%;
    margin: 4px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f9fc;
    border: 1px dashed var(--adm-border);
    color: var(--adm-muted);
    font-size: 0.88rem;
    text-align: center;
}

.adm-pills-loading {
    width: 100%;
    margin: 4px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5faff;
    border: 1px solid rgba(13, 110, 253, 0.18);
    color: var(--adm-primary-dark);
    font-size: 0.88rem;
    text-align: center;
    font-weight: 600;
}

.adm-pills-loading i {
    margin-right: 8px;
}

.adm-pills-section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--adm-ink);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 14px 0 8px;
}

.adm-pills-search {
    width: 100%;
    margin: 0 0 10px;
    position: relative;
    display: none;
}

.adm-pills-search.is-visible {
    display: block;
}

.adm-pills-search input {
    width: 100%;
    padding: 11px 38px 11px 38px;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    background: #fbfcfe;
    font-size: 0.92rem;
    color: var(--adm-ink);
    font-family: inherit;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.adm-pills-search input:focus {
    outline: none;
    border-color: var(--adm-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14);
}

.adm-pills-search:before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adm-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.adm-pills-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--adm-muted);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 0.85rem;
    display: none;
    line-height: 1;
}

.adm-pills-search-clear.is-visible {
    display: inline-flex;
}

.adm-pill.is-filtered-out {
    display: none !important;
}

.adm-pills-no-match {
    width: 100%;
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7f0;
    border: 1px dashed #f0c39a;
    color: #8a5a2b;
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 575px) {
    .adm-form-card {
        padding: 24px 20px 20px;
    }
    .adm-form-title {
        font-size: 1.25rem;
    }
    .adm-pill {
        flex: 1 1 100%;
    }
}
