/*==================================================
CONTACT HERO
==================================================*/

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 180px;
    /* Updated background to utilize your deep brand navy (var(--ink-dark)) */
    background: 
        radial-gradient(circle at 15% 20%, rgba(198, 138, 46, 0.15), transparent 25%),
        radial-gradient(circle at 85% 15%, rgba(231, 238, 243, 0.10), transparent 30%),
        linear-gradient(180deg, var(--ink-dark) 0%, var(--ink) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(15, 61, 92, 0.15);
}

/* subtle dot texture optimized for dark background */
.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .07;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* large decorative glow */
.contact-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(rgba(198, 138, 46, 0.2), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

/* keep text above decorations */
.contact-hero .container-hip {
    position: relative;
    z-index: 2;
}

/*----------------------------------
Eyebrow
----------------------------------*/

.contact-hero .eyebrow {
    justify-content: center;
    margin-bottom: 18px;
    color: var(--gold); /* Make eyebrow readable on dark background */
}

.contact-hero .eyebrow::before {
    display: none;
}

/*----------------------------------
Heading
----------------------------------*/

.contact-hero h1 {
    margin: 0 0 18px;
    font-family: var(--font-display);
    color: var(--white); /* Contrast color change */
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
}

/*----------------------------------
Description
----------------------------------*/

.contact-hero .lead {
    max-width: 700px;
    margin: auto;
    color: var(--ink-tint); /* Legible, muted blue text */
    font-size: 1.05rem;
    line-height: 1.8;
}

/*==================================================
CONTACT SECTION
==================================================*/

.contact-section {
    margin-top: -105px; /* Pull the panels upward over the crisp transition line */
    position: relative;
    z-index: 5;
    background: transparent;
    padding: 0 0 90px;
}

/*----------------------------------
Background Pattern
----------------------------------*/
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .03;
    pointer-events: none;
    background-image: radial-gradient(var(--gold) 1px, transparent 1px);
    background-size: 30px 30px;
}

/*----------------------------------
Soft Decorative Glow
----------------------------------*/
.contact-section::after {
    content: "";
    position: absolute;
    left: -160px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(rgba(198, 138, 46, 0.10), transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}

/*==================================================
CONTACT PANEL
==================================================*/

.contact-panel {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.contact-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/*----------------------------------
Panel Header
----------------------------------*/

.contact-panel__header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line-soft);
}

.contact-panel__header h3 {
    font-family: var(--font-display);
    color: var(--ink-dark);
    position: relative;
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.contact-panel__header h3::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 12px;
    border-radius: 50px;
    background: var(--gold);
}

.contact-panel__header p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.75;
    max-width: 480px;
}

/*==================================================
SUCCESS / ALERT
==================================================*/

.contact-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: var(--r-md);
    font-size: .92rem;
    font-weight: 600;
}

.contact-alert i {
    font-size: 1rem;
}

.contact-alert--success {
    background: var(--success-tint);
    color: var(--success);
}

.contact-alert--error {
    background: var(--alert-tint);
    color: var(--alert);
}

/*==================================================
CONTACT FORM
==================================================*/

.contact-panel form {
    display: flex;
    flex-direction: column;
}

/*----------------------------------
Field
----------------------------------*/

.field {
    margin-bottom: 22px;
}

.field:last-of-type {
    margin-bottom: 28px;
}

/*----------------------------------
Labels
----------------------------------*/

.field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-dark);
}

.field-optional {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
}

/*----------------------------------
Inputs
----------------------------------*/

.contact-panel .input-hip {
    width: 100%;
    background: #FCFCFC;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    font-family: var(--font-body);
    color: var(--ink-text);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-panel .input-hip:hover {
    border-color: #D5CEC0;
}

.contact-panel .input-hip:focus {
    outline: none;
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(198, 138, 46, 0.10);
}

/*----------------------------------
Textarea
----------------------------------*/

.textarea-hip {
    min-height: 170px;
    resize: vertical;
    line-height: 1.75;
}

/*----------------------------------
Placeholder
----------------------------------*/

.contact-panel .input-hip::placeholder {
    color: #9AA4AF;
}

/*----------------------------------
Validation
----------------------------------*/

.contact-panel .input-hip.is-invalid {
    border-color: var(--alert);
}

.contact-panel .input-hip.is-invalid:focus {
    border-color: var(--alert);
    box-shadow: 0 0 0 4px rgba(178, 58, 50, 0.10);
}

.field-error {
    display: block;
    margin-top: 8px;
    font-size: .82rem;
    font-family: var(--font-mono);
    color: var(--alert);
}

/*----------------------------------
Submit Button
----------------------------------*/

.contact-panel .btn-hip {
    margin-top: 8px;
}

.contact-panel .btn-hip i {
    font-size: .9rem;
}

/*==================================================
CONTACT INFORMATION
==================================================*/

.contact-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/*----------------------------------
Info Item
----------------------------------*/

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

/*----------------------------------
Icon
----------------------------------*/

.contact-info-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(198, 138, 46, 0.08);
    color: var(--gold);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--gold);
    color: var(--white);
}

/*----------------------------------
Text
----------------------------------*/

.contact-info-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: block;
    margin: 0;
    color: var(--ink-text);
    font-size: .95rem;
    line-height: 1.7;
    font-style: normal;
}

a.contact-info-text {
    transition: var(--transition);
}

a.contact-info-text:hover {
    color: var(--gold-dark);
}

/*----------------------------------
Address
----------------------------------*/

address.contact-info-text {
    margin: 0;
    font-style: normal;
}

/*----------------------------------
Spacing
----------------------------------*/

.contact-info-item:not(:last-child) {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

/*==================================================
GOOGLE MAP
==================================================*/

.map-embed {
    position: relative;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--ink-tint);
    box-shadow: var(--shadow-card);
    aspect-ratio: 4/3;
}

/*----------------------------------
Iframe
----------------------------------*/

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/*----------------------------------
Open Maps Button
----------------------------------*/

.map-embed__open {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.map-embed__open:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.map-embed__open i {
    font-size: .75rem;
}

/*----------------------------------
Map Overlay
----------------------------------*/

.map-embed::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 61, 92, 0.02), transparent 30%, transparent 70%, rgba(15, 61, 92, 0.05));
}

/*==================================================
CONTACT RESPONSIVE
==================================================*/

/* Laptop */
@media (max-width:1199.98px) {
    .contact-panel {
        padding: 30px;
    }
}

/* Tablet */
@media (max-width:991.98px) {
    .contact-hero {
        padding: 70px 0 140px;
    }
    .contact-section {
        margin-top: -85px;
        padding: 0 0 70px;
    }
    .contact-panel {
        padding: 28px;
    }
    .contact-panel__header {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }
    .map-embed {
        aspect-ratio: 16/9;
    }
}

/* Mobile */
@media (max-width:767.98px) {
    .contact-hero {
        padding: 60px 0 120px;
    }
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    .contact-hero .lead {
        font-size: .98rem;
    }
    .contact-section {
        margin-top: -75px;
        padding: 0 0 60px;
    }
    .contact-panel {
        padding: 24px;
    }
    .contact-panel__header h3 {
        font-size: 1.3rem;
    }
    .contact-info-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }
    .map-embed {
        margin-top: 24px;
        aspect-ratio: 1/1;
    }
}

/* Small Mobile */
@media (max-width:575.98px) {
    .contact-panel {
        padding: 20px;
    }
    .field {
        margin-bottom: 18px;
    }
    .textarea-hip {
        min-height: 150px;
    }
    .map-embed__open {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: .78rem;
    }
}