/* =========================================================
   CONTACT FORM + MAP SECTION
   ========================================================= */

.adv-contact-section {
    --contact-navy: #080d15;
    --contact-gold: #c9963e;
    --contact-gold-light: #e0b15a;
    --contact-border: #dedfdd;

    width: 100%;
    padding: 170px 24px 50px;
    background: linear-gradient(180deg, #f7f6f2 0%, #ffffff 100%);
    overflow: hidden;
}

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

.adv-contact-section__container {
    width: min(1185px, 100%);
    margin: 0 auto;
}

.adv-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 38px;
    align-items: stretch;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.adv-contact-form-card {
    min-width: 0;
    padding: 38px 40px;
    background: #fff;
    border: 1px solid rgba(16, 22, 30, .06);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20, 25, 30, .07);
}

.adv-contact-form-heading__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--contact-gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.adv-contact-form-heading h2 {
    margin: 0;
    color: var(--contact-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
}

.adv-contact-form-heading p {
    margin: 12px 0 27px;
    color: #707780;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   CONTACT FORM 7 FIELDS
   ========================================================= */

/* Remove CF7 auto <p> / <br> spacing */
.adv-contact-form-wrapper p {
    margin: 0;
    padding: 0;
}

.adv-contact-form-wrapper br {
    display: none;
}

/* Field wrapper (gap between fields) */
.adv-contact-form-wrapper .adv-contact-field {
    width: 100%;
    min-width: 0;
    margin: 0 0 13px;
}

/* Hide labels visually (kept for accessibility) */
.adv-contact-form-wrapper .adv-contact-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Input wrapper */
.adv-contact-form-wrapper .adv-contact-field__input {
    position: relative;
    display: block;
    width: 100%;
}

.adv-contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Icons inside inputs */
.adv-contact-form-wrapper .adv-contact-field__input svg {
    position: absolute;
    left: 14px;
    top: 23px;
    transform: translateY(-50%);
    width: 18px !important;
    height: 18px !important;
    fill: #969a9e;
    stroke: none;
    z-index: 2;
    pointer-events: none;
    transition: fill .2s ease;
}

/* Textarea icon stays at the top */
.adv-contact-form-wrapper .adv-contact-field__input--textarea svg {
    top: 15px;
    transform: none;
}

/* Gold icon on focus */
.adv-contact-form-wrapper .adv-contact-field__input:focus-within svg {
    fill: var(--contact-gold);
}

/* Inputs + textarea */
.adv-contact-form-wrapper .adv-contact-field__input input:not([type="submit"]),
.adv-contact-form-wrapper .adv-contact-field__input textarea {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 14px 0 43px;

    border: 1px solid var(--contact-border);
    border-radius: 5px;
    background: #fff;
    color: #1b2330;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    outline: none;

    transition: border-color .2s ease, box-shadow .2s ease;
}

.adv-contact-form-wrapper .adv-contact-field__input input:not([type="submit"]) {
    height: 46px;
}

.adv-contact-form-wrapper .adv-contact-field__input textarea {
    height: auto;
    min-height: 125px;
    padding: 13px 14px 13px 43px;
    resize: vertical;
}

.adv-contact-form-wrapper .adv-contact-field__input input::placeholder,
.adv-contact-form-wrapper .adv-contact-field__input textarea::placeholder {
    color: #777d84;
}

.adv-contact-form-wrapper .adv-contact-field__input input:not([type="submit"]):focus,
.adv-contact-form-wrapper .adv-contact-field__input textarea:focus {
    border-color: var(--contact-gold);
    box-shadow: 0 0 0 3px rgba(201, 150, 62, .10);
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.adv-contact-form-wrapper input.adv-contact-submit {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 49px;
    margin-top: 3px;
    padding: 0 20px;

    border: 0;
    border-radius: 5px;
    background: linear-gradient(135deg, #09111d, #02060b);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition: transform .2s ease, box-shadow .2s ease;
}

.adv-contact-form-wrapper input.adv-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 10, 18, .20);
}

/* CF7 messages */
.adv-contact-form-wrapper .wpcf7-response-output {
    margin: 15px 0 0;
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.adv-contact-form-wrapper .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.adv-contact-form-wrapper .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}


/* =========================================================
   MAP
   ========================================================= */

.adv-contact-map-card {
    min-width: 0;
    min-height: 540px;
}

.adv-contact-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 540px;
    overflow: hidden;
    border-radius: 12px;
    background: #e5e5e5;
    box-shadow: 0 12px 40px rgba(20, 25, 30, .07);
}

.adv-contact-map-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #e8e8e5;
}

.adv-contact-map-visual iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Centered location marker */
.adv-map-location-marker {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.adv-map-location-marker__icon {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #09111d;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
    transition: transform .25s ease, background .25s ease;
}

.adv-map-location-marker__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #e0b15a;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.adv-map-location-marker:hover .adv-map-location-marker__icon {
    transform: scale(1.12);
    background: #c9963e;
}

.adv-map-location-marker:hover .adv-map-location-marker__icon svg {
    stroke: #fff;
}

/* Soft pulse */
.adv-map-location-marker__pulse {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(201, 150, 62, .8);
    border-radius: 50%;
    animation: adv-location-pulse 2s ease-out infinite;
}

@keyframes adv-location-pulse {
    0%   { transform: scale(.7);  opacity: .9; }
    100% { transform: scale(1.8); opacity: 0;  }
}

@media (prefers-reduced-motion: reduce) {
    .adv-map-location-marker__pulse {
        animation: none;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .adv-contact-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin-inline: auto;
    }

    .adv-contact-map-card,
    .adv-contact-map {
        min-height: 500px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .adv-contact-section {
        padding: 55px 16px 70px;
    }

    .adv-contact-form-card {
        padding: 28px 20px;
    }

    .adv-contact-form-heading h2 {
        font-size: 31px;
    }

    .adv-contact-form-heading p {
        font-size: 13px;
    }

    .adv-contact-map-card,
    .adv-contact-map {
        min-height: 500px;
    }

    .adv-map-location-marker {
        top: 34%;
    }
}