:root {
    --contact-green: #07563f;
    --contact-green-deep: #043b2c;
    --contact-paper: #f5f0e7;
    --contact-ink: #17362c;
    --contact-muted: #738078;
    --contact-line: #e5e8e4;
    --contact-gold: #e7c176;
}

.contact-page {
    min-height: 100vh;
    padding: 145px 0 100px;
    color: var(--contact-ink);
    background: var(--contact-paper);
}

.contact-shell { max-width: 1120px; }

.contact-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 35px;
}

.contact-heading span {
    display: block;
    margin-bottom: 10px;
    color: var(--contact-green);
    font-size: 12px;
    font-weight: 800;
}

.contact-heading h1 {
    margin: 0;
    color: var(--contact-green-deep);
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
}

.contact-heading > p {
    max-width: 390px;
    margin: 0 0 5px;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 2;
}

.contact-board {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.42fr .92fr;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 25px 75px rgba(48, 55, 49, .11);
}

.contact-form-panel { padding: 50px 55px; }
.contact-form-heading { margin-bottom: 32px; }
.contact-form-heading h2 { margin: 0 0 8px; font-size: 25px; font-weight: 900; }
.contact-form-heading p { margin: 0; color: var(--contact-muted); font-size: 13px; line-height: 1.9; }

.contact-success {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--contact-green);
    background: #e8f4ed;
    font-size: 12px;
}

.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-field { margin-bottom: 22px; }
.contact-field label { display: block; margin-bottom: 8px; color: #375047; font-size: 12px; font-weight: 800; }

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--contact-line);
    border-radius: 9px;
    outline: 0;
    color: var(--contact-ink);
    background: #fbfcfb;
    font-family: inherit;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-field textarea { min-height: 170px; resize: vertical; line-height: 1.8; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #a7aea9; }
.contact-field input:focus, .contact-field textarea:focus { border-color: #5a9780; background: #fff; box-shadow: 0 0 0 3px rgba(7, 86, 63, .07); }
.contact-error { display: block; margin-top: 6px; color: #bd4141; font-size: 10px; }

.contact-submit {
    min-width: 160px;
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--contact-green);
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.contact-submit:hover { transform: translateY(-2px); background: var(--contact-green-deep); }

.contact-details-panel {
    position: relative;
    padding: 48px 42px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background: #07513d;
}

.contact-details-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -135px;
    left: -135px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,255,255,.02);
}

.contact-details-top, .contact-panel-footer { position: relative; z-index: 1; }
.contact-details-label {
    display: block;
    margin-bottom: 36px;
    color: #f0d69f;
    font-size: 15px;
    font-weight: 900;
}

.contact-detail {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    margin-bottom: 30px;
}
.contact-detail > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    color: #f0cb82;
    background: rgba(255,255,255,.06);
    font-size: 17px;
}
.contact-detail small {
    display: block;
    margin-bottom: 6px;
    color: #bfd2ca;
    font-size: 12px;
    font-weight: 600;
}
.contact-detail a,
.contact-detail p {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-detail a:hover { color: #f0d69f; }
.contact-detail--address { margin-bottom: 0; }

.contact-panel-footer { min-height: 165px; }
.contact-socials { position: absolute; bottom: 8px; right: 0; display: flex; gap: 8px; z-index: 2; }
.contact-socials a { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: #fff; text-decoration: none; transition: background .2s ease, color .2s ease; }
.contact-socials a:hover { color: var(--contact-green-deep); background: var(--contact-gold); }

.contact-plane { position: absolute; width: 255px; height: 142px; left: -14px; bottom: 0; overflow: visible; }
.plane-route { animation: plane-dash 11s linear infinite; }
.plane-body { animation: plane-float 3.5s ease-in-out infinite; transform-origin: 210px 60px; }
.plane-dot { animation: plane-pulse 2.2s ease-in-out infinite; transform-origin: center; }
.plane-dot--two { animation-delay: .7s; }

@keyframes plane-dash { to { stroke-dashoffset: -130; } }
@keyframes plane-float { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-6px, -7px) rotate(-2deg); } }
@keyframes plane-pulse { 0%, 100% { opacity: .35; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.25); } }

@media (max-width: 991px) {
    .contact-page { padding-top: 125px; }
    .contact-heading { display: block; text-align: center; }
    .contact-heading > p { margin: 16px auto 0; }
    .contact-board { grid-template-columns: 1fr; }
    .contact-details-panel { min-height: 500px; order: -1; }
    .contact-details-top { max-width: 570px; }
    .contact-plane { left: 20px; }
}

@media (max-width: 575px) {
    .contact-page { padding: 112px 0 60px; }
    .contact-heading { margin-bottom: 25px; }
    .contact-heading h1 { font-size: 35px; letter-spacing: -1.2px; }
    .contact-heading > p { font-size: 12px; }
    .contact-board { border-radius: 17px; }
    .contact-details-panel { min-height: 500px; padding: 35px 26px 20px; }
    .contact-details-label { margin-bottom: 30px; font-size: 14px; }
    .contact-detail { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; margin-bottom: 25px; }
    .contact-detail > i { width: 42px; height: 42px; }
    .contact-detail a, .contact-detail p { font-size: 14px; }
    .contact-form-panel { padding: 35px 22px; }
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form-heading h2 { font-size: 22px; }
    .contact-submit { width: 100%; }
    .contact-plane { width: 220px; left: -25px; }
}

@media (prefers-reduced-motion: reduce) {
    .plane-route, .plane-body, .plane-dot { animation: none !important; }
    .contact-submit, .contact-socials a { transition: none; }
}
