/* =========================
   CONTACT PAGE
   Quick visual refresh
   Brand colors:
   Primary: #018d71
   Secondary: #feef10
   Third: #3dc7ab
   Raspberry: #b8325f
========================= */

:root {
    --color-primary: #018d71;
    --color-secondary: #feef10;
    --color-third: #3dc7ab;
    --color-raspberry: #b8325f;

    --color-text: #111111;
    --color-muted: rgba(17, 17, 17, 0.60);
    --color-border: rgba(1, 141, 113, 0.16);
    --color-border-strong: rgba(1, 141, 113, 0.26);
    --color-soft: #fbfcfb;

    --shadow-contact: 0 10px 28px rgba(1, 141, 113, 0.045);
}

/* =========================
   PAGE WRAPPER
========================= */

.contact-page {
    width: 100%;
    min-width: 0;
    padding: 48px 0 72px;
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fbfcfb;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-body);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   MAIN CARD
========================= */

.contact-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow-contact);
}

/* =========================
   HEADER
========================= */

.contact-head {
    position: relative;
    padding: 34px 40px 30px;
    background: #ffffff;
    border-bottom: 1px solid rgba(1, 141, 113, 0.12);
    overflow: hidden;
}

.contact-head::before {
    content: "";
    position: absolute;
    left: 40px;
    bottom: 0;
    width: 72px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--color-secondary);
}

.contact-head::after {
    display: none;
}

.contact-head h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 760px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-title);
    line-height: 1.04;
    font-weight: 740;
    letter-spacing: -0.05em;
}

.contact-head p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.72;
    font-weight: 420;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

/* =========================
   TABS
========================= */

.contact-tabs {
    width: 100%;
}

.contact-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-tab-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(1, 141, 113, 0.14);
    background: #ffffff;
}

.contact-tab-label {
    position: relative;
    min-height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    border-right: 1px solid rgba(1, 141, 113, 0.12);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

.contact-tab-label:last-child {
    border-right: 0;
}

.contact-tab-label::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background 0.18s ease;
}

.contact-tab-label:hover {
    background: rgba(1, 141, 113, 0.045);
    color: var(--color-primary);
}

.contact-tab-label:active {
    background: rgba(184, 50, 95, 0.045);
}

.contact-tab-input:focus-visible ~ .contact-tab-list {
    outline: 3px solid rgba(61, 199, 171, 0.16);
    outline-offset: 2px;
}

#contact-tab-email:checked ~ .contact-tab-list label[for="contact-tab-email"],
#contact-tab-phone:checked ~ .contact-tab-list label[for="contact-tab-phone"],
#contact-tab-postal:checked ~ .contact-tab-list label[for="contact-tab-postal"] {
    background: #fbfcfb;
    color: var(--color-primary);
}

#contact-tab-email:checked ~ .contact-tab-list label[for="contact-tab-email"]::after,
#contact-tab-phone:checked ~ .contact-tab-list label[for="contact-tab-phone"]::after,
#contact-tab-postal:checked ~ .contact-tab-list label[for="contact-tab-postal"]::after {
    background: var(--color-raspberry);
}

/* =========================
   PANELS
========================= */

.contact-panels {
    padding: 34px 40px 40px;
}

.contact-panel {
    display: none;
}

#contact-tab-email:checked ~ .contact-panels .contact-panel-email,
#contact-tab-phone:checked ~ .contact-panels .contact-panel-phone,
#contact-tab-postal:checked ~ .contact-panels .contact-panel-postal {
    display: block;
}

.contact-panel-intro {
    margin-bottom: 22px;
}

.contact-panel-kicker,
.contact-agency-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 24px;
    padding: 0 8px;
    align-items: center;
    border-radius: 8px;
    background: rgba(1, 141, 113, 0.08);
    color: var(--color-primary);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-panel-intro h2,
.contact-call-card h2,
.contact-callback-card h2,
.contact-postal-intro h2 {
    margin: 10px 0 0;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: var(--fs-subtitle);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.contact-panel-intro p,
.contact-call-card p,
.contact-callback-card p,
.contact-postal-intro p {
    margin: 9px 0 0;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.68;
    font-weight: 420;
}

/* =========================
   FORMS
========================= */

.contact-form {
    width: 100%;
    margin: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

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

.contact-form-grid .contact-form-group {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.3;
    font-weight: 760;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(1, 141, 113, 0.22);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    font-weight: 450;
    outline: 0;
    box-shadow: none;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.contact-form textarea {
    min-height: 70px !important;
    max-height: 110px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    resize: vertical;
    line-height: 1.45;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 199, 171, 0.12);
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(184, 50, 95, 0.30);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(17, 17, 17, 0.42);
}

.contact-form ul.errorlist {
    margin: 5px 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-raspberry);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 700;
}

.contact-captcha {
    padding: 14px;
    border: 1px solid rgba(1, 141, 113, 0.14);
    border-radius: 10px;
    background: #fbfcfb;
}

/* =========================
   ALERT
========================= */

.contact-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(184, 50, 95, 0.18);
    border-radius: 10px;
    background: rgba(184, 50, 95, 0.045);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.45;
    font-weight: 500;
}

.contact-alert-title {
    display: block;
    margin-bottom: 3px;
    color: var(--color-raspberry);
    font-weight: 800;
}

/* =========================
   BUTTONS
========================= */

.contact-submit {
    width: 100%;
    min-height: 42px;
    margin-top: 4px;
    border: 1px solid var(--color-raspberry);
    border-radius: 8px;
    background: var(--color-raspberry);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: var(--fs-small);
    font-weight: 780;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none !important;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.contact-submit:hover {
    background: #9f294f;
    color: #ffffff;
    border-color: #9f294f;
    transform: translateY(-1px);
}

.contact-submit-secondary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.contact-submit-secondary:hover {
    background: #017b63;
    color: #ffffff;
    border-color: #017b63;
}

/* =========================
   PHONE PANEL
========================= */

.contact-phone-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 1.12fr);
    gap: 22px;
    align-items: stretch;
}

.contact-call-card,
.contact-callback-card {
    border: 1px solid rgba(1, 141, 113, 0.16);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(1, 141, 113, 0.035);
}

.contact-call-card {
    position: relative;
    padding: 30px 32px;
    overflow: hidden;
    background: #ffffff;
}

.contact-call-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 72px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--color-secondary);
}

.contact-call-card::after {
    display: none;
}

.contact-call-card > * {
    position: relative;
    z-index: 1;
}

.contact-call-card .contact-panel-kicker {
    background: rgba(184, 50, 95, 0.07);
    color: var(--color-raspberry);
}

.contact-call-card h2 {
    color: var(--color-text);
}

.contact-call-card p {
    color: var(--color-muted);
}

.contact-phone-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 24px;
    padding: 0 16px;
    border: 1px solid rgba(1, 141, 113, 0.24);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-primary);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.contact-phone-number:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-1px);
    text-decoration: none;
}

.contact-call-note {
    margin-top: 14px;
    color: rgba(17, 17, 17, 0.58);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.5;
    font-weight: 500;
}

.contact-callback-card {
    padding: 28px 30px;
}

/* =========================
   POSTAL PANEL
========================= */

.contact-postal-intro {
    max-width: 720px;
}

.contact-opening-hours {
    position: relative;
    margin: 22px 0 24px;
    padding: 18px 20px;
    border: 1px solid rgba(1, 141, 113, 0.16);
    border-radius: 10px;
    background: #fbfcfb;
}

.contact-opening-hours::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 58px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--color-secondary);
}

.contact-opening-hours span {
    display: block;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-opening-hours p {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 420;
}

.contact-agencies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-agency-card {
    position: relative;
    min-height: 190px;
    padding: 22px 20px;
    border: 1px solid rgba(1, 141, 113, 0.16);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(1, 141, 113, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.contact-agency-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 54px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    transition:
        background 0.18s ease,
        width 0.18s ease;
}

.contact-agency-card-primary::before {
    background: var(--color-primary);
}
.contact-agency-card-secondary::before {
    background: var(--color-secondary);
}
.contact-agency-card-third::before {
    background: var(--color-third);
}

.contact-agency-card:hover {
    border-color: rgba(1, 141, 113, 0.26);
    box-shadow: 0 12px 28px rgba(1, 141, 113, 0.055);
    transform: translateY(-2px);
}

.contact-agency-card:hover::before {
    width: 72px;
    background: var(--color-raspberry);
}

.contact-agency-card h3 {
    margin: 14px 0 10px;
    color: var(--color-text);
    font-family: var(--font-accent);
    font-size: var(--fs-subtitle);
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.contact-agency-card address {
    margin: 0;
    color: var(--color-muted);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 420;
    font-style: normal;
}

.contact-agency-card a {
    display: inline-flex;
    margin-top: 18px;
    color: var(--color-primary);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.2;
    font-weight: 760;
    text-decoration: none;
}

.contact-agency-card a:hover {
    color: var(--color-raspberry);
    text-decoration: underline;
}

/* =========================
   FOOTER SPACING
========================= */

.contact-page + .site-footer,
.site-footer {
    margin-top: 0;
}

/* =========================
   RESPONSIVE
========================= */

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 641px) and (max-width: 1200px) {
.contact-page {
        padding: 34px 0 56px;
    }

    .contact-shell {
        width: min(100%, calc(100% - 24px));
    }

    .contact-head {
        padding: 30px 32px 28px;
    }

    .contact-head::before {
        left: 32px;
    }

    .contact-head h1 {
        font-size: var(--fs-title);
    }

    .contact-panels {
        padding: 30px 32px 34px;
    }

    .contact-phone-layout {
        grid-template-columns: 1fr;
    }

    .contact-agencies-grid {
        grid-template-columns: 1fr;
    }

    .contact-agency-card {
        min-height: 0;
    }

.contact-page {
        padding: 24px 0 42px;
    }

    .contact-shell {
        width: calc(100% - 16px);
    }

    .contact-head {
        padding: 26px 22px 24px;
    }

    .contact-head::before {
        left: 22px;
    }

    .contact-head h1 {
        font-size: var(--fs-title);
    }

    .contact-head p {
        font-size: var(--fs-body);
    }

    .contact-tab-list {
        grid-template-columns: 1fr;
    }

    .contact-tab-label {
        min-height: 48px;
        border-right: 0;
        border-bottom: 1px solid rgba(1, 141, 113, 0.12);
    }

    .contact-tab-label:last-child {
        border-bottom: 0;
    }

    .contact-tab-label::after {
        left: 22px;
        right: 22px;
    }

    .contact-panels {
        padding: 26px 22px 30px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel-intro h2,
    .contact-call-card h2,
    .contact-callback-card h2,
    .contact-postal-intro h2 {
        font-size: var(--fs-subtitle);
    }

    .contact-call-card,
    .contact-callback-card {
        padding: 24px 22px;
    }

    .contact-phone-number {
        font-size: var(--fs-body);
    }
}

@media (max-width: 640px) {
.contact-page {
        padding: 34px 0 56px;
    }

    .contact-shell {
        width: min(100%, calc(100% - 24px));
    }

    .contact-head {
        padding: 30px 32px 28px;
    }

    .contact-head::before {
        left: 32px;
    }

    .contact-head h1 {
        font-size: var(--fs-title);
    }

    .contact-panels {
        padding: 30px 32px 34px;
    }

    .contact-phone-layout {
        grid-template-columns: 1fr;
    }

    .contact-agencies-grid {
        grid-template-columns: 1fr;
    }

    .contact-agency-card {
        min-height: 0;
    }

.contact-page {
        padding: 24px 0 42px;
    }

    .contact-shell {
        width: calc(100% - 16px);
    }

    .contact-head {
        padding: 26px 22px 24px;
    }

    .contact-head::before {
        left: 22px;
    }

    .contact-head h1 {
        font-size: var(--fs-title);
    }

    .contact-head p {
        font-size: var(--fs-body);
    }

    .contact-tab-list {
        grid-template-columns: 1fr;
    }

    .contact-tab-label {
        min-height: 48px;
        border-right: 0;
        border-bottom: 1px solid rgba(1, 141, 113, 0.12);
    }

    .contact-tab-label:last-child {
        border-bottom: 0;
    }

    .contact-tab-label::after {
        left: 22px;
        right: 22px;
    }

    .contact-panels {
        padding: 26px 22px 30px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel-intro h2,
    .contact-call-card h2,
    .contact-callback-card h2,
    .contact-postal-intro h2 {
        font-size: var(--fs-subtitle);
    }

    .contact-call-card,
    .contact-callback-card {
        padding: 24px 22px;
    }

    .contact-phone-number {
        font-size: var(--fs-body);
    }

.contact-head {
        padding: 24px 18px 22px;
    }

    .contact-head::before {
        left: 18px;
    }

    .contact-panels {
        padding: 24px 18px 28px;
    }

    .contact-call-card,
    .contact-callback-card {
        padding: 22px 18px;
    }

    .contact-opening-hours {
        padding: 18px 16px;
    }

    .contact-agency-card {
        padding: 20px 18px;
    }
}
