.contacts-page {
    --contact-navy: #001e6a;
    --contact-blue: #0968d8;
    --contact-sky: #e8f4ff;
    --contact-line: #d7e5ef;
    --contact-line-soft: #e8eef4;
    --contact-text: #13253a;
    --contact-muted: #526b85;
    --contact-alert: #ff554d;
    background:
        linear-gradient(90deg, rgba(0, 30, 106, .18) 0%, rgba(9, 104, 216, .06) 44%, rgba(255, 255, 255, .04) 100%),
        url("/img/contacts-application-bg.png") center top / cover fixed no-repeat;
    color: var(--contact-text);
    min-height: 100vh;
}

.contacts-hero {
    background: linear-gradient(90deg, rgba(0, 30, 106, .9) 0%, rgba(9, 104, 216, .58) 46%, rgba(9, 104, 216, .08) 100%), url("/img/top-hero-bg.webp") center center / cover no-repeat;
    color: #fff;
}

.contacts-hero__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 54px;
}

.contacts-hero p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 900;
}

.contacts-hero h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
}

.contacts-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.contacts-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 3px;
    background: rgba(255, 255, 255, .14);
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.contacts-page__inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.contacts-page--type-4 .contacts-page__inner,
.contacts-page--type-6 .contacts-page__inner {
    width: min(1200px, calc(100% - 40px));
}

.contacts-page__inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    height: 600px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .82) 48%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.contacts-page__inner > * {
    position: relative;
    z-index: 1;
}

.contacts-form {
    border: 1px solid rgba(215, 229, 239, .86);
    border-radius: 3px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 56px rgba(8, 40, 93, .12);
    padding: 24px;
}

.progressbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    counter-reset: contact-step;
    gap: 10px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.progressbar li {
    position: relative;
    min-height: 54px;
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, .92);
    color: var(--contact-muted);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    padding: 12px 16px;
    text-align: left;
}

.progressbar li::before {
    counter-increment: contact-step;
    content: counter(contact-step);
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--contact-sky);
    color: var(--contact-blue);
    font-size: 13px;
    font-weight: 900;
}

.progressbar li.active {
    border-color: var(--contact-blue);
    background: linear-gradient(90deg, var(--contact-navy) 0%, var(--contact-blue) 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(9, 104, 216, .16);
}

.progressbar li.active::before {
    background: #fff;
    color: var(--contact-blue);
}

.contacts-section {
    display: grid;
    gap: 18px;
}

.contacts-section__title,
.contacts-section h2,
.customerInfo {
    position: relative;
    margin: 30px 0 0;
    border: 0;
    border-bottom: 1px solid var(--contact-line);
    border-radius: 0;
    background: transparent;
    color: var(--contact-navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.4;
    padding: 0 0 13px 18px;
}

.contacts-section__title::before,
.contacts-section h2::before,
.customerInfo::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 5px;
    height: calc(100% - 16px);
    min-height: 22px;
    border-radius: 3px;
    background: var(--contact-blue);
}

.contacts-section__title {
    margin-top: 0;
    border-bottom-color: rgba(9, 104, 216, .28);
    color: var(--contact-navy);
    font-size: 24px;
}

.contacts-intro,
.contacts-empty {
    border: 1px solid var(--contact-line);
    border-left: 5px solid var(--contact-blue);
    border-radius: 0;
    background: rgba(255, 255, 255, .72);
    color: #334a62;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 18px;
    padding: 15px 18px;
}

.contacts-intro p,
.contacts-empty p {
    margin: 0;
}

.contacts-empty {
    border-color: #f4c8c4;
    border-left-color: var(--contact-alert);
    background: #fff7f6;
    color: #9b2d25;
}

.contacts-property {
    margin-bottom: 22px;
}

.contacts-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts-check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    margin: 0;
    padding: 2px 0;
}

.contacts-check-list input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
}

.contacts-check-list label {
    display: block;
    min-height: 0;
    margin: 0;
    color: var(--contact-text);
    font-weight: 700;
    line-height: 1.6;
}

.contacts-request-selector {
    display: grid;
    gap: 16px;
    margin: 4px 0 24px;
}

.contacts-request-selector__lead {
    margin: 0;
    border: 1px solid var(--contact-line);
    border-left: 5px solid var(--contact-blue);
    border-radius: 0;
    background: rgba(255, 255, 255, .74);
    color: #183a5c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    padding: 14px 16px;
}

.contacts-request-selector__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contacts-request-selector__panel {
    min-width: 0;
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 34px rgba(8, 40, 93, .08);
    overflow: hidden;
}

.contacts-request-selector__panel h3 {
    margin: 0;
    border-bottom: 1px solid var(--contact-line);
    background: linear-gradient(90deg, rgba(232, 244, 255, .96) 0%, rgba(255, 255, 255, .96) 100%);
    color: var(--contact-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
    padding: 15px 18px;
}

.contacts-request-selector__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
}

.contacts-request-selector__columns > div {
    min-width: 0;
    border: 1px solid var(--contact-line-soft);
    border-radius: 3px;
    background: #fbfdff;
    padding: 14px;
}

.contacts-request-selector__columns h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--contact-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
}

.contacts-request-selector__columns h4::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--contact-blue);
}

.contacts-request-selector__scroll {
    max-height: 430px;
    overflow: auto;
    padding-right: 6px;
}

.contacts-option-group {
    border: 1px solid var(--contact-line-soft);
    border-radius: 3px;
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}

.contacts-option-group summary {
    margin: 0;
    border-bottom: 1px solid transparent;
    color: var(--contact-blue);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.5;
    list-style: none;
    padding: 10px 12px;
}

.contacts-option-group summary::-webkit-details-marker {
    display: none;
}

.contacts-option-group summary::after {
    content: "+";
    float: right;
    color: var(--contact-muted);
    font-size: 15px;
    font-weight: 900;
}

.contacts-option-group[open] summary {
    border-bottom-color: var(--contact-line-soft);
    background: #f5faff;
}

.contacts-option-group[open] summary::after {
    content: "-";
}

.contacts-option-group .contacts-chip-list {
    padding: 12px;
}

.contacts-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contacts-chip-list li {
    margin: 0;
}

.contacts-chip-list input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contacts-chip-list label {
    display: inline-flex;
    align-items: center;
    min-height: 33px;
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: #fff;
    color: #334a62;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    padding: 7px 11px;
    transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s;
}

.contacts-chip-list input:checked + label {
    border-color: var(--contact-blue);
    background: var(--contact-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(9, 104, 216, .16);
}

.contacts-chip-list input:focus-visible + label {
    outline: 2px solid var(--contact-navy);
    outline-offset: 2px;
}

.contacts-selected-list {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.contacts-selected-list p {
    margin: 0;
    color: #334a62;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.contacts-detail-range {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.contacts-detail-checks {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.contacts-detail-checks li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.contacts-detail-checks input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0;
}

.contacts-detail-checks label {
    display: block;
    min-height: 0;
    margin: 0;
    line-height: 1.55;
}

.contacts-detail-facilities {
    display: grid;
    gap: 14px;
    width: 100%;
}

.contacts-detail-facilities section {
    min-width: 0;
}

.contacts-detail-facilities h4 {
    margin: 0 0 8px;
    color: var(--contact-navy);
    font-size: 13px;
    font-weight: 900;
}

.contacts-section h2 span {
    display: inline-block;
    margin-left: 10px;
    color: var(--contact-muted);
    font-size: 13px;
    font-weight: 700;
}

.tablewrapper table {
    width: 100%;
    border: 1px solid var(--contact-line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 26px rgba(8, 40, 93, .06);
    overflow: hidden;
}

.tablewrapper tr + tr th,
.tablewrapper tr + tr td {
    border-top: 1px solid var(--contact-line-soft);
}

.tablewrapper th,
.tablewrapper td {
    padding: 17px 20px;
    vertical-align: middle;
}

.tablewrapper th {
    width: 230px;
    background: #f7fbff;
    color: #183a5c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    text-align: left;
}

.tablewrapper td {
    min-height: 58px;
    color: #203246;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-size: 14px;
    line-height: 1.65;
}

.tablewrapper label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    margin: 0 6px 0 0;
    color: #203246;
    cursor: pointer;
    font-weight: 700;
}

.tablewrapper label:has(input[type="radio"]) {
    border: 1px solid #d5e5f0;
    border-radius: 3px;
    background: #fff;
    padding: 6px 11px;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.tablewrapper label:has(input[type="radio"]:checked) {
    border-color: var(--contact-blue);
    background: #eef7ff;
    color: var(--contact-blue);
    box-shadow: 0 6px 14px rgba(9, 104, 216, .1);
}

.tablewrapper label:hover {
    color: var(--contact-blue);
}

.tablewrapper input[type="radio"] {
    accent-color: var(--contact-blue);
}

.tablewrapper input[type="checkbox"] {
    accent-color: var(--contact-blue);
}

.tablewrapper input[type="text"],
.tablewrapper input[type="number"],
.tablewrapper textarea,
.tablewrapper select {
    min-height: 46px;
    max-width: 100%;
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: #fff;
    color: var(--contact-text);
    padding: 10px 12px;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.tablewrapper textarea {
    width: 100%;
    min-height: 118px;
    resize: vertical;
}

.tablewrapper input[type="text"]:focus,
.tablewrapper input[type="number"]:focus,
.tablewrapper textarea:focus,
.tablewrapper select:focus {
    border-color: var(--contact-blue);
    box-shadow: 0 0 0 3px rgba(9, 104, 216, .12);
    outline: none;
}

.tablewrapper .required {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 8px;
    border-radius: 3px;
    background: var(--contact-alert);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
}

.year {
    width: 174px;
}

.month,
.day {
    width: 88px;
}

.w25 {
    width: min(260px, 100%);
}

.w50 {
    width: min(520px, 100%);
}

.w75 {
    width: min(760px, 100%);
}

.mr8 {
    margin-right: 8px;
}

.ml8 {
    margin-left: 8px;
}

.mt8 {
    margin-top: 8px;
}

.mt12 {
    margin-top: 12px;
}

.fs14 {
    font-size: 14px;
}

.t-right {
    text-align: right;
}

.field-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100%;
}

.tenants-member-area {
    align-items: stretch;
    flex-direction: column;
}

.tenants-member-contents {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    border: 1px solid var(--contact-line-soft);
    border-radius: 3px;
    background: #fbfdff;
    padding: 12px;
}

.tenant-birthday {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tenant-birthday span,
.tablewrapper td > span {
    color: var(--contact-muted);
    font-size: 13px;
    font-weight: 700;
}

.privacy-text {
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, .86);
    color: #445b72;
    font-size: 13px;
    line-height: 1.9;
    margin-top: 20px;
    padding: 18px 20px;
}

.privacy-text p {
    margin: 0 0 10px;
}

.privacy-text ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.privacy-text li + li {
    margin-top: 4px;
}

.letsencrypt {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, .88);
    margin: 20px 0;
    padding: 16px 18px;
    box-shadow: 0 8px 18px rgba(8, 40, 93, .05);
}

.letsencrypt img {
    flex: 0 0 auto;
    width: 138px;
    height: auto;
}

.letsencrypt .text {
    color: var(--contact-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.contacts-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    min-width: 220px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    padding: 13px 20px;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn.confirmation,
.btn.sending {
    background: var(--contact-alert);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 85, 77, .22);
}

.btn.confirmation:hover,
.btn.sending:hover,
.btn.confirmation:focus-visible,
.btn.sending:focus-visible {
    background: #cf3942;
    color: #fff;
    box-shadow: 0 12px 24px rgba(232, 74, 82, .3);
    outline: none;
    transform: translateY(-1px);
}

.btn.back {
    border-color: var(--contact-line);
    background: #fff;
    color: var(--contact-muted);
}

.btn.back:hover,
.btn.back:focus-visible {
    border-color: var(--contact-blue);
    background: #eef7ff;
    color: var(--contact-blue);
    outline: none;
    transform: translateY(-1px);
}

.btn.able {
    min-width: 70px;
    min-height: 34px;
    background: var(--contact-blue);
    color: #fff;
    padding: 8px 12px;
}

.btn.able:hover,
.btn.able:focus-visible {
    background: #0754ad;
    outline: none;
}

.confirm-text {
    color: #203246;
    font-weight: 700;
    white-space: pre-wrap;
}

.complete {
    border: 1px solid var(--contact-line);
    border-radius: 3px;
    background: rgba(255, 255, 255, .9);
    color: var(--contact-blue);
    font-size: 16px;
    font-weight: 900;
    line-height: 2;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(8, 40, 93, .06);
}

.error-message {
    border-radius: 3px;
    background: var(--contact-alert);
    color: #fff;
    font-weight: 900;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.contacts-note {
    color: var(--contact-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    margin-top: 22px;
    text-align: center;
}

.contacts-note p {
    margin: 0 0 4px;
}

.contacts-note a {
    color: var(--contact-blue);
    font-weight: 900;
}

@media (max-width: 900px) {
    .tenants-member-contents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .contacts-request-selector__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-page {
        background:
            linear-gradient(90deg, rgba(0, 30, 106, .22) 0%, rgba(9, 104, 216, .06) 100%),
            url("/img/contacts-application-bg-mobile.webp?v=20260528-01") center top / cover fixed no-repeat;
    }

    .contacts-hero__inner,
    .contacts-page__inner {
        width: min(100% - 24px, 1200px);
    }

    .contacts-hero__inner {
        padding: 34px 0 36px;
    }

    .contacts-hero {
        background-image: linear-gradient(90deg, rgba(0, 30, 106, .9) 0%, rgba(9, 104, 216, .58) 46%, rgba(9, 104, 216, .08) 100%), url("/img/top-hero-bg-mobile.webp?v=20260526-mobile");
    }

    .contacts-hero h1 {
        font-size: 28px;
    }

    .contacts-page__inner {
        padding-top: 22px;
    }

    .contacts-form {
        border-radius: 3px;
        padding: 16px 12px 18px;
    }

    .progressbar {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 22px;
    }

    .progressbar li {
        justify-content: flex-start;
        text-align: left;
        min-height: 48px;
        padding: 10px 12px;
    }

    .contacts-section__title,
    .contacts-section h2,
    .customerInfo {
        font-size: 17px;
        padding: 0 0 11px 16px;
    }

    .contacts-section h2 span {
        display: block;
        margin: 6px 0 0;
    }

    .contacts-note {
        border: 1px solid rgba(200, 220, 233, .94);
        border-radius: 3px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 10px 24px rgba(8, 40, 93, .08);
        color: #334a62;
        font-size: 13px;
        line-height: 1.75;
        margin: 24px 0 0;
        padding: 16px 14px;
        text-align: left;
    }

    .contacts-note p {
        margin-bottom: 10px;
    }

    .contacts-note a {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        border-radius: 3px;
        background: #eef6ff;
        padding: 9px 10px;
        color: #001e6a;
        font-size: 14px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .contacts-request-selector__columns {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .contacts-request-selector__scroll {
        max-height: 340px;
    }

    .contacts-chip-list label {
        min-height: 36px;
        font-size: 12px;
        padding: 7px 9px;
    }

    .contacts-check-list {
        grid-template-columns: 1fr;
    }

    .contacts-detail-checks {
        grid-template-columns: 1fr;
    }

    .tablewrapper tr,
    .tablewrapper th,
    .tablewrapper td {
        display: block;
        width: 100%;
    }

    .tablewrapper th,
    .tablewrapper td {
        padding: 13px 12px;
    }

    .tablewrapper td {
        display: flex;
        min-height: 0;
    }

    .tablewrapper label:has(input[type="radio"]) {
        width: 100%;
        margin: 0;
    }

    .tablewrapper input[type="text"],
    .tablewrapper input[type="number"],
    .tablewrapper textarea,
    .tablewrapper select,
    .year,
    .month,
    .day,
    .w25,
    .w50,
    .w75 {
        width: 100%;
    }

    .tenants-member-contents {
        grid-template-columns: 1fr;
    }

    .letsencrypt {
        align-items: flex-start;
        flex-direction: column;
    }

    .contacts-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        min-width: 0;
    }
}
