.contact-page {
    background: var(--color-ivory);
    color: var(--color-text-dark);
    overflow: clip;
}

.contact-shell {
    width: min(100% - 3rem, 1320px);
    margin-inline: auto;
}

.contact-kicker {
    margin: 0;
    color: var(--color-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.contact-kicker--light {
    color: rgba(232, 213, 169, 0.96);
}

.contact-hero {
    position: relative;
    isolation: isolate;
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 1.8rem 0 1.55rem;
    background-color: #f8f4ec;
    background-image: url("../../images/contact/contact-hero-desktop.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(18, 59, 50, 0.07);
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(250, 247, 239, 0.04), rgba(250, 247, 239, 0.08));
    pointer-events: none;
}

.contact-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 940px;
    text-align: center;
}

.contact-hero__eyebrow-row {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.contact-hero__rule {
    width: 72px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, transparent, rgba(183, 154, 95, 0.75), transparent);
}

.contact-hero h1 {
    margin: 0;
    color: var(--color-emerald-deep);
    font-size: clamp(2.75rem, 5vw, 4.7rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.contact-hero__text {
    max-width: 700px;
    margin: 1rem auto 0;
    color: #5d615c;
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    line-height: 1.62;
}

.contact-hero__motto {
    position: absolute;
    bottom: 0.65rem;
    display: grid;
    gap: 0.35rem;
    color: rgba(18, 59, 50, 0.68);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.contact-hero__motto--start {
    inset-inline-start: 0;
    text-align: start;
}

.contact-hero__motto--end {
    inset-inline-end: 0;
    text-align: end;
}

.contact-hero__crest {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.25rem;
    color: var(--color-gold);
}

.contact-hero__crest .contact-hero__rule {
    width: 108px;
}

.contact-hero__petal {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-section {
    padding: 2.55rem 0 4.6rem;
}

.contact-section--main {
    background: var(--color-warm-white);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.14fr) minmax(0, 0.95fr);
    gap: 1.1rem;
    align-items: stretch;
}

.contact-details-card,
.contact-message-card,
.contact-map-panel {
    min-width: 0;
    border: 1px solid rgba(18, 59, 50, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(27, 50, 44, 0.06);
}

.contact-details-card {
    padding: clamp(1.6rem, 2.3vw, 2.3rem);
    background:
        radial-gradient(circle at 14% 100%, rgba(95, 138, 113, 0.08), transparent 26%),
        linear-gradient(145deg, rgba(18, 59, 50, 0.028), transparent 52%),
        #f6f2ea;
}

.contact-message-card {
    padding: clamp(1.6rem, 2.4vw, 2.35rem);
    background: #fffefd;
}

.contact-map-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 2vw, 1.8rem);
    background: #fffefd;
}

.contact-section-heading h2,
.contact-map-panel h2,
.contact-help h2 {
    margin: 0;
    color: var(--color-emerald-deep);
    font-size: clamp(2rem, 2.65vw, 3rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.contact-section-heading > p:last-child {
    max-width: 560px;
    margin: 0.85rem 0 0;
    color: #6a6d67;
    font-size: 0.96rem;
    line-height: 1.68;
}

.contact-detail-list {
    margin-top: 1.85rem;
    display: grid;
}

.contact-detail {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.18rem 0;
    border-top: 1px solid rgba(18, 59, 50, 0.11);
}

.contact-detail:first-child {
    border-top: 0;
    padding-top: 0;
}

.contact-detail__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(183, 154, 95, 0.55);
    border-radius: 50%;
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.68);
}

.contact-detail__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-detail h3 {
    margin: 0 0 0.45rem;
    color: var(--color-emerald-deep);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.contact-detail p,
.contact-detail address,
.contact-detail a {
    color: #575a54;
    font-size: 0.9rem;
    line-height: 1.68;
}

.contact-detail address {
    font-style: normal;
}

.contact-detail a {
    display: block;
    width: fit-content;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-detail a:hover {
    color: var(--color-gold);
}

.contact-inline-link {
    margin-top: 0.55rem;
    color: var(--color-emerald) !important;
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-hours {
    margin: 0.35rem 0 0;
    display: grid;
    gap: 0.34rem;
}

.contact-hours__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: #5b5d57;
    font-size: 0.83rem;
}

.contact-hours__row dt,
.contact-hours__row dd {
    margin: 0;
}

.contact-hours__row dd {
    color: var(--color-emerald-deep);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.contact-form {
    margin-top: 1.65rem;
    display: grid;
    gap: 0.9rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.contact-field {
    display: grid;
    gap: 0.42rem;
}

.contact-field > span {
    color: var(--color-emerald-deep);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.82rem 0.95rem;
    border: 1px solid rgba(18, 59, 50, 0.16);
    border-radius: 14px;
    outline: none;
    background: #fbfaf7;
    color: var(--color-text-dark);
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.45;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.contact-field textarea {
    min-height: 112px;
    resize: vertical;
}

.contact-field select {
    cursor: pointer;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: rgba(18, 59, 50, 0.32);
    box-shadow: 0 0 0 4px rgba(18, 59, 50, 0.08);
    background: #fff;
}

.contact-character-count {
    margin: -0.2rem 0 0;
    color: #7c8079;
    font-size: 0.76rem;
    text-align: end;
}

.contact-primary-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.95rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5c56f 0%, #c79b42 100%);
    color: #16362f;
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.contact-primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(180, 143, 67, 0.2);
    filter: saturate(1.02);
}

.contact-button-arrow {
    font-size: 1rem;
}

.contact-form__privacy {
    margin: 0.1rem 0 0;
    color: #7a7e77;
    font-size: 0.77rem;
    line-height: 1.55;
}

.contact-form__status {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.contact-form__status.is-success {
    background: rgba(35, 122, 87, 0.1);
    color: #1f6d50;
}

.contact-form__status.is-error {
    background: rgba(179, 57, 57, 0.09);
    color: #9b3232;
}

.contact-map-panel__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-map-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(18, 59, 50, 0.16);
    border-radius: 999px;
    background: #f8f5ef;
    color: var(--color-emerald-deep);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.contact-map-panel__link::after {
    content: "↗";
    font-size: 0.85rem;
}

.contact-map-card {
    position: relative;
    flex: 1;
    min-height: 470px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(18, 59, 50, 0.1);
    background: #e9ece6;
}

.contact-map-card iframe,
.contact-map-placeholder {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-card iframe[data-contact-map-iframe] {
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.contact-map-card iframe[data-contact-map-iframe].is-loaded {
    opacity: 1;
    pointer-events: auto;
}

.contact-map-card__address {
    position: absolute;
    inset-inline: 1rem 1rem;
    inset-block-start: 1rem;
    z-index: 2;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(18, 59, 50, 0.12);
    backdrop-filter: blur(12px);
}

.contact-map-card__address strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--color-emerald-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.contact-map-card__address span {
    color: #5b5f59;
    font-size: 0.84rem;
    line-height: 1.58;
}

.contact-map-placeholder {
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    color: #5f635d;
}

.contact-map-placeholder__pin {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(183, 154, 95, 0.12);
    color: var(--color-gold);
}

.contact-map-placeholder__pin svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
}

.contact-help {
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 230px;
    margin-top: 0.15rem;
    overflow: hidden;
    border: 1px solid rgba(226, 194, 117, 0.52);
    border-radius: 22px;
    background: #043d33;
    box-shadow: 0 22px 56px rgba(5, 52, 43, 0.2);
}

.contact-help::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -1px;
    background-image: url("../../images/services/personalized-advice.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform-origin: center;
}

.contact-help::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(1, 45, 37, 0.93) 0%, rgba(3, 58, 48, 0.88) 43%, rgba(3, 58, 48, 0.58) 70%, rgba(3, 58, 48, 0.3) 100%),
        radial-gradient(circle at 20% 110%, rgba(221, 183, 91, 0.16), transparent 38%);
}

html[dir="rtl"] .contact-help::before {
    transform: scaleX(-1);
}

html[dir="rtl"] .contact-help::after {
    background:
        linear-gradient(270deg, rgba(1, 45, 37, 0.93) 0%, rgba(3, 58, 48, 0.88) 43%, rgba(3, 58, 48, 0.58) 70%, rgba(3, 58, 48, 0.3) 100%),
        radial-gradient(circle at 80% 110%, rgba(221, 183, 91, 0.16), transparent 38%);
}

.contact-help__inner {
    position: relative;
    z-index: 2;
    width: min(68%, 620px);
    min-height: 230px;
    padding: 2.05rem 2.2rem 2.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.contact-help__copy {
    width: 100%;
}

.contact-help h2 {
    max-width: 620px;
    margin: 0;
    color: #fffdf6;
    font-size: clamp(2rem, 3.25vw, 2.95rem);
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.contact-help p {
    max-width: 570px;
    margin: 0.65rem 0 0;
    color: rgba(255, 253, 246, 0.86);
    font-size: 0.79rem;
    line-height: 1.7;
}

.contact-help__actions {
    margin-top: 1.15rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.62rem;
}

.contact-help-button {
    min-height: 45px;
    padding: 0.67rem 1.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.67rem;
    font-weight: 760;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-help-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.035);
}

.contact-help-button--gold {
    border: 1px solid rgba(235, 205, 137, 0.82);
    background: linear-gradient(180deg, #efd79a 0%, #d9b866 100%);
    color: #10382f;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.13);
}

.contact-help-button--ghost {
    border: 1px solid rgba(255, 250, 233, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fffdf6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(4px);
}

html[dir="rtl"] .contact-help-button--ghost span {
    transform: scaleX(-1);
}

html[dir="rtl"] .contact-hero__motto--start {
    text-align: start;
}

html[dir="rtl"] .contact-hero__motto--end {
    text-align: end;
}

html[dir="rtl"] .contact-inline-link,
html[dir="rtl"] .contact-map-panel__link {
    width: fit-content;
}

@media (max-width: 1160px) {
    .contact-hero {
        background-image: url("../../images/contact/contact-hero-tablet.webp");
        background-position: center;
    }

    .contact-main-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .contact-map-panel {
        grid-column: 1 / -1;
    }

    .contact-map-card {
        min-height: 360px;
    }

    .contact-hero__motto {
        bottom: -0.2rem;
        font-size: 0.68rem;
        letter-spacing: 0.18em;
    }
}

@media (max-width: 920px) {
    .contact-hero {
        min-height: 248px;
        padding: 1.65rem 0 1.4rem;
    }

    .contact-hero__inner {
        max-width: 760px;
    }

    .contact-hero__motto {
        display: none;
    }

    .contact-map-card__address {
        display: none;
    }

    .contact-section {
        padding: 2.2rem 0 4rem;
    }

    .contact-help__inner {
        width: min(74%, 620px);
    }
}

@media (max-width: 760px) {
    .contact-hero {
        background-image: url("../../images/contact/contact-hero-mobile.webp");
        background-position: center;
    }

    .contact-shell {
        width: min(100% - 1.3rem, 1320px);
    }

    .contact-hero {
        min-height: 228px;
        padding: 1.45rem 0 1.2rem;
    }

    .contact-hero__eyebrow-row {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .contact-hero__rule,
    .contact-hero__crest .contact-hero__rule {
        width: 44px;
    }

    .contact-main-grid,
    .contact-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-details-card,
    .contact-message-card,
    .contact-map-panel {
        border-radius: 20px;
    }

    .contact-map-panel__topline {
        flex-direction: column;
    }

    .contact-help {
        min-height: 0;
        border-radius: 18px;
    }

    .contact-help::before {
        background-position: 62% center;
    }

    html[dir="rtl"] .contact-help::before {
        background-position: 38% center;
    }

    .contact-help__inner {
        width: 100%;
        min-height: 0;
        padding: 1.65rem 1.3rem 1.75rem;
        background: linear-gradient(90deg, rgba(1, 45, 37, 0.82), rgba(3, 58, 48, 0.56));
    }

    html[dir="rtl"] .contact-help__inner {
        background: linear-gradient(270deg, rgba(1, 45, 37, 0.82), rgba(3, 58, 48, 0.56));
    }

    .contact-help__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .contact-help-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2.35rem;
        line-height: 1;
    }

    .contact-section-heading h2,
    .contact-map-panel h2,
    .contact-help h2 {
        font-size: 1.85rem;
    }

    .contact-map-card {
        min-height: 300px;
    }
}

.contact-success-banner {
    position: fixed;
    z-index: 1200;
    inset-block-start: calc(env(safe-area-inset-top, 0px) + 5.75rem);
    inset-inline-start: 50%;
    width: min(calc(100% - 2rem), 620px);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(61, 127, 91, 0.26);
    border-radius: 18px;
    background: rgba(244, 250, 246, 0.97);
    color: #1f6548;
    box-shadow: 0 18px 44px rgba(20, 67, 49, 0.18);
    backdrop-filter: blur(14px);
    transform: translate(-50%, -12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.contact-success-banner.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.contact-success-banner__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1f7a55;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.contact-success-banner__text {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-success-banner__close {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #416b59;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.contact-success-banner__close:hover {
    background: rgba(31, 122, 85, 0.09);
    color: #174b37;
}

html[dir="rtl"] .contact-success-banner {
    direction: rtl;
}

@media (max-width: 760px) {
    .contact-success-banner {
        inset-block-start: calc(env(safe-area-inset-top, 0px) + 4.6rem);
        width: min(calc(100% - 1.25rem), 620px);
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 0.7rem;
        padding: 0.78rem 0.85rem;
        border-radius: 15px;
    }

    .contact-success-banner__icon,
    .contact-success-banner__close {
        width: 32px;
        height: 32px;
    }

    .contact-success-banner__text {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-success-banner {
        transition: none;
    }
}
