/* =========================================================
   GOLD QUARRY TRAVEL LEAD FORM
   Premium • Responsive • Theme Aware
   Scoped only to #modal1
========================================================= */

#modal1 {
    --gq-primary: var(--brand-primary, #f59e0b);
    --gq-secondary: var(--brand-secondary, #d97706);
    --gq-accent: var(--brand-accent, #fbbf24);

    --gq-bg: var(--surface-secondary, #ffffff);
    --gq-soft-bg: var(--surface-tertiary, #f7f7f7);

    --gq-text: var(--on-surface-primary, #222);
    --gq-muted: var(--on-surface-secondary, #666);

    --gq-border: var(--border-primary, #e5e5e5);

    --gq-shadow: var(
        --shadow-md,
        0 15px 40px rgba(0, 0, 0, .12)
    );

    --gq-radius: var(--radius-md, 14px);
}


/* =========================================================
   MODAL
========================================================= */

#modal1 .modal-content {
    width: min(700px, 100%) !important;
    max-width: 700px !important;

    max-height: min(760px, calc(100vh - 40px));

    background: var(--gq-bg);

    border: 1px solid var(--gq-border);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .18),
        0 5px 20px rgba(0, 0, 0, .08);
}


/* =========================================================
   HEADER
========================================================= */

#modal1 .modal-head-container {
    position: relative;

    min-height: 78px;

    margin: 0;

    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--gq-primary) 12%, white),
            var(--gq-bg)
        );

    border-bottom: 1px solid var(--gq-border);
}


/* Small decorative line */

#modal1 .modal-head-container::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 80px;
    height: 3px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            var(--gq-primary),
            var(--gq-secondary)
        );

    border-radius: 10px;
}


#modal1 .modal-title {
    width: 100%;

    padding: 0 48px;

    color: var(--gq-text);

    font-size: clamp(18px, 2vw, 22px);

    font-weight: 800;

    letter-spacing: -.3px;

    text-align: center;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

#modal1 .modal-close-btn {
    position: absolute;

    top: 50%;
    right: 18px;

    width: 38px;
    height: 38px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--gq-soft-bg);

    color: var(--gq-muted);

    border: 1px solid var(--gq-border);

    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;
    padding: 0px 0px 5px;

    z-index: 5;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


#modal1 .modal-close-btn:hover {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--gq-primary),
            var(--gq-secondary)
        );

    border-color: transparent;

    transform:
        translateY(-50%)
        rotate(90deg);
}


/* =========================================================
   FORM CONTAINER
========================================================= */

#modal1 .form-container {
    position: relative;

    width: 100%;

    max-height: calc(100vh - 120px);

    padding: 30px;

    overflow-y: hidden;
    overflow-x: hidden;

    background: var(--gq-bg);

    scrollbar-width: thin;
}


/* =========================================================
   STEP
========================================================= */

#modal1 .step {
    position: absolute;

    inset: 0;

    width: 100%;

    padding: 0;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(12px)
        scale(.985);

    transition:
        opacity .3s ease,
        transform .3s ease;

    box-sizing: border-box;
}


#modal1 .step.active {
    position: relative;

    inset: auto;

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);

    z-index: 2;
}


/* =========================================================
   QUESTION
========================================================= */

#modal1 .form-container h2 {
    margin: 0 auto 24px;

    max-width: 580px;

    color: var(--gq-text);

    font-size: clamp(20px, 2.3vw, 24px);

    line-height: 1.35;

    font-weight: 800;

    letter-spacing: -.5px;

    text-align: center;
}


/* =========================================================
   RADIO OPTION CARD
========================================================= */

#modal1 .form-container .label {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    min-height: 54px;

    margin: 10px 0;

    padding: 13px 16px;

    box-sizing: border-box;

    color: var(--gq-text);

    background: var(--gq-bg);

    border: 1px solid var(--gq-border);

    border-radius: var(--gq-radius);

    font-size: 16px;

    font-weight: 600;

    line-height: 1.35;

    cursor: pointer;

    transition:
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}


/* Hover */

#modal1 .form-container .label:hover {
    border-color: var(--gq-primary);

    background:
        color-mix(
            in srgb,
            var(--gq-primary) 6%,
            var(--gq-bg)
        );

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .06);
}


/* =========================================================
   RADIO
========================================================= */

#modal1 .form-container input[type="radio"] {
    position: relative;

    flex: 0 0 auto;

    appearance: none;

    width: 20px;
    height: 20px;

    margin: 0 13px 0 0;

    border: 2px solid #c9c9c9;

    border-radius: 50%;

    background: #fff;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


#modal1 .form-container input[type="radio"]:checked {
    border-color: var(--gq-primary);

    background:
        radial-gradient(
            circle,
            #fff 0 32%,
            var(--gq-primary) 36% 100%
        );

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--gq-primary) 13%,
            transparent
        );
}


/* Selected card */

#modal1 .form-container .label:has(input[type="radio"]:checked) {
    color: var(--gq-text);

    border-color: var(--gq-primary);

    background:
        linear-gradient(
            135deg,
            color-mix(
                in srgb,
                var(--gq-primary) 9%,
                var(--gq-bg)
            ),
            var(--gq-bg)
        );

    box-shadow:
        0 7px 20px
        color-mix(
            in srgb,
            var(--gq-primary) 15%,
            transparent
        );
}


/* =========================================================
   TEXT / DATE / PHONE / EMAIL INPUT
========================================================= */

#modal1 .input-style {
    width: 100%;

    min-height: 54px;

    padding: 14px 16px;

    box-sizing: border-box;

    color: var(--gq-text);

    background: var(--gq-bg);

    border: 1px solid var(--gq-border);

    border-radius: 12px;

    outline: none;

    font-family: inherit;

    font-size: 16px;

    font-weight: 500;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


#modal1 .input-style::placeholder {
    color: var(--text-muted, #999);
}


#modal1 .input-style:hover {
    border-color:
        color-mix(
            in srgb,
            var(--gq-primary) 45%,
            var(--gq-border)
        );
}


#modal1 .input-style:focus {
    border-color: var(--gq-primary);

    background: var(--gq-bg);

    box-shadow:
        0 0 0 4px
        color-mix(
            in srgb,
            var(--gq-primary) 12%,
            transparent
        );
}


/* =========================================================
   DATE INPUT
========================================================= */

#modal1 input[type="date"] {
    color: var(--gq-text);

    color-scheme: light;
}


/* =========================================================
   BUTTON AREA
========================================================= */

#modal1 .back-btn,
#modal1 .next-btn {
    min-height: 46px;

    margin-top: 22px;

    padding: 11px 22px;

    border: 0;

    border-radius: 11px;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


/* Back */

#modal1 .back-btn {
    color: var(--gq-text);

    background: var(--gq-soft-bg);

    border: 1px solid var(--gq-border);

    margin-right: 8px;
}


#modal1 .back-btn:hover {
    background: var(--gq-border);

    transform: translateY(-1px);
}


/* Next */

#modal1 .next-btn {
    color:
        var(
            --button-primary-text,
            #fff
        );

    background:
        var(
            --button-primary-bg,
            linear-gradient(
                135deg,
                var(--gq-primary),
                var(--gq-secondary)
            )
        );

    box-shadow:
        0 6px 18px
        color-mix(
            in srgb,
            var(--gq-primary) 25%,
            transparent
        );
}


#modal1 .next-btn:hover {
    background:
        var(
            --button-primary-hover,
            linear-gradient(
                135deg,
                var(--gq-secondary),
                var(--gq-primary)
            )
        );

    transform: translateY(-2px);

    box-shadow:
        0 9px 24px
        color-mix(
            in srgb,
            var(--gq-primary) 32%,
            transparent
        );
}


#modal1 .back-btn:active,
#modal1 .next-btn:active {
    transform: translateY(0);
}


/* =========================================================
   BUTTON ALIGNMENT
========================================================= */

#modal1 .step > .back-btn:first-of-type {
    margin-left: 0;
}


/* =========================================================
   FINAL THANK YOU
========================================================= */

#modal1 #final-step {
    text-align: center;

    padding: 20px 0;
}


#modal1 #final-step h2 {
    margin-bottom: 0;

    font-size: clamp(22px, 3vw, 30px);
}


#modal1 #final-step::before {
    content: "✓";

    display: flex;

    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 22px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--gq-primary),
            var(--gq-secondary)
        );

    border-radius: 50%;

    font-size: 38px;
    font-weight: 800;

    box-shadow:
        0 10px 25px
        color-mix(
            in srgb,
            var(--gq-primary) 25%,
            transparent
        );
}


/* =========================================================
   SCROLLBAR
========================================================= */

#modal1 .form-container::-webkit-scrollbar {
    width: 6px;
}

#modal1 .form-container::-webkit-scrollbar-track {
    background: transparent;
}

#modal1 .form-container::-webkit-scrollbar-thumb {
    background:
        color-mix(
            in srgb,
            var(--gq-primary) 45%,
            #ddd
        );

    border-radius: 20px;
}


/* =========================================================
   FIXED QUOTE BUTTON
========================================================= */

.fixed-quote-button {
    position: fixed;

    right: -55px;
    top: 50%;

    transform:
        translateY(-50%)
        rotate(270deg);

    z-index: 1000;
}


.fixed-quote-button a {
    display: inline-block;

    padding: 7px 12px 28px;

    color: #fff;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            var(--brand-primary, #f59e0b),
            var(--brand-secondary, #d97706)
        );

    border: 2px solid #fff;

    border-radius: 0 8px 8px 0;

    box-shadow:
        2px 2px 12px rgba(0, 0, 0, .15);

    font-family:
        "Segoe UI",
        sans-serif;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: .4px;

    transition: .3s ease;
}


.fixed-quote-button a:hover {
    transform: scale(1.04);
}


/* =========================================================
   SOCIAL SIDEBAR
========================================================= */

.social-sidebar {
    position: fixed;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    z-index: 999;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 8px 5px;

    background: rgba(255, 255, 255, .08);

    backdrop-filter: blur(8px);

    border-radius:
        0 12px 12px 0;

    box-shadow:
        2px 0 15px rgba(0, 0, 0, .08);
}


.social-sidebar .social-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    color: #fff;

    border-radius: 50%;

    font-size: 18px;

    text-decoration: none;

    transition: .25s ease;
}


.social-sidebar .social-icon:hover {
    transform: scale(1.12);
}


/* =========================================================
   TABLET
========================================================= */
/* =========================================================
   GOLD QUARRY FORM
   MOBILE / TABLET OPTIMIZATION
   Large • Touch Friendly • Premium
========================================================= */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 770px) {

    #modal1 {
        padding: 12px;
    }

    #modal1 .modal-content {
        width: 100% !important;
        max-width: 620px !important;

        max-height: calc(100vh - 24px);

        border-radius: 20px;
    }


    /* -------------------------
       HEADER
    ------------------------- */

    #modal1 .modal-head-container {
        min-height: 72px;

        padding: 16px 20px;
    }

    #modal1 .modal-title {
        font-size: 20px;

        line-height: 1.3;

        padding: 0 46px 0 10px;
    }

    #modal1 .modal-close-btn {
        right: 15px;

        width: 40px;
        height: 40px;

        font-size: 24px;
    }


    /* -------------------------
       FORM AREA
    ------------------------- */

    #modal1 .form-container {
        max-height: calc(100vh - 96px);

        padding: 28px 24px;
    }


    /* -------------------------
       QUESTION
    ------------------------- */

    #modal1 .form-container h2 {

        max-width: 100%;

        margin-bottom: 24px;

        font-size: 22px;

        line-height: 1.4;

        letter-spacing: -.2px;
    }


    /* -------------------------
       OPTION CARDS
    ------------------------- */

    #modal1 .form-container .label {

        min-height: 58px;

        margin: 10px 0;

        padding: 14px 16px;

        font-size: 17px;

        font-weight: 600;

        line-height: 1.4;

        border-radius: 14px;
    }


    /* -------------------------
       RADIO
    ------------------------- */

    #modal1 .form-container input[type="radio"] {

        width: 22px;
        height: 22px;

        margin-right: 14px;

        flex-shrink: 0;
    }


    /* -------------------------
       INPUT
    ------------------------- */

    #modal1 .input-style {

        min-height: 56px;

        padding: 14px 16px;

        font-size: 17px;

        border-radius: 13px;
    }


    /* -------------------------
       BUTTONS
    ------------------------- */

    #modal1 .back-btn,
    #modal1 .next-btn {

        min-height: 50px;

        margin-top: 22px;

        padding: 12px 22px;

        font-size: 15px;

        font-weight: 700;

        border-radius: 12px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    #modal1 {
        padding: 6px;
    }


    /* -------------------------
       MODAL
    ------------------------- */

    #modal1 .modal-content {

        width: 100% !important;

        max-width: 100% !important;

        max-height: calc(100vh - 12px);

        border-radius: 18px;
    }


    /* -------------------------
       HEADER
    ------------------------- */

    #modal1 .modal-head-container {

        min-height: 68px;

        padding: 14px 15px;
    }

    #modal1 .modal-title {

        font-size: 19px;

        line-height: 1.3;

        padding: 0 44px 0 8px;
    }


    #modal1 .modal-close-btn {

        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 23px;
    }


    /* -------------------------
       FORM CONTAINER
    ------------------------- */

    #modal1 .form-container {

        max-height: calc(100vh - 80px);

        padding: 24px 15px 28px;
    }


    /* -------------------------
       QUESTION
    ------------------------- */

    #modal1 .form-container h2 {

        margin: 0 auto 22px;

        font-size: 21px;

        line-height: 1.4;

        letter-spacing: -.15px;
    }


    /* -------------------------
       OPTION CARD
    ------------------------- */

    #modal1 .form-container .label {

        min-height: 58px;

        margin: 9px 0;

        padding: 14px 14px;

        font-size: 16px;

        font-weight: 600;

        line-height: 1.4;

        border-radius: 13px;
    }


    /* -------------------------
       RADIO
    ------------------------- */

    #modal1 .form-container input[type="radio"] {

        width: 22px;
        height: 22px;

        margin-right: 13px;
    }


    /* -------------------------
       INPUT
    ------------------------- */

    #modal1 .input-style {

        width: 100%;

        min-height: 56px;

        padding: 14px 15px;

        font-size: 17px;

        border-radius: 12px;
    }


    #modal1 .input-style::placeholder {

        font-size: 16px;
    }


    /* -------------------------
       BUTTONS
    ------------------------- */

    #modal1 .back-btn,
    #modal1 .next-btn {

        min-height: 50px;

        margin-top: 20px;

        padding: 12px 20px;

        font-size: 15px;

        border-radius: 12px;
    }


    /* -------------------------
       FINAL SCREEN
    ------------------------- */

    #modal1 #final-step {

        padding: 15px 0;
    }

    #modal1 #final-step h2 {

        font-size: 22px;

        line-height: 1.4;
    }

    #modal1 #final-step::before {

        width: 68px;
        height: 68px;

        margin-bottom: 20px;

        font-size: 34px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    #modal1 {

        padding: 4px;
    }


    #modal1 .modal-content {

        max-height: calc(100vh - 8px);

        border-radius: 16px;
    }


    /* -------------------------
       HEADER
    ------------------------- */

    #modal1 .modal-head-container {

        min-height: 64px;

        padding: 12px 13px;
    }


    #modal1 .modal-title {

        font-size: 18px;

        padding-right: 42px;
    }


    #modal1 .modal-close-btn {

        width: 36px;
        height: 36px;

        right: 9px;

        font-size: 22px;
    }


    /* -------------------------
       FORM
    ------------------------- */

    #modal1 .form-container {

        max-height: calc(100vh - 76px);

        padding: 22px 12px 26px;
    }


    /* -------------------------
       QUESTION
    ------------------------- */

    #modal1 .form-container h2 {

        font-size: 20px;

        line-height: 1.4;

        margin-bottom: 20px;
    }


    /* -------------------------
       OPTIONS
    ------------------------- */

    #modal1 .form-container .label {

        min-height: 56px;

        margin: 8px 0;

        padding: 13px 12px;

        font-size: 15.5px;

        line-height: 1.4;

        border-radius: 12px;
    }


    /* -------------------------
       RADIO
    ------------------------- */

    #modal1 .form-container input[type="radio"] {

        width: 21px;
        height: 21px;

        margin-right: 12px;
    }


    /* -------------------------
       INPUT
    ------------------------- */

    #modal1 .input-style {

        min-height: 54px;

        padding: 13px 14px;

        font-size: 16px;
    }


    #modal1 .input-style::placeholder {

        font-size: 15px;
    }


    /* -------------------------
       BUTTONS
    ------------------------- */

    #modal1 .back-btn,
    #modal1 .next-btn {

        min-height: 48px;

        padding: 11px 17px;

        margin-top: 18px;

        font-size: 14px;

        border-radius: 11px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 340px) {

    #modal1 .form-container {

        padding-left: 10px;
        padding-right: 10px;
    }


    #modal1 .form-container h2 {

        font-size: 19px;
    }


    #modal1 .form-container .label {

        min-height: 54px;

        padding: 12px 10px;

        font-size: 15px;
    }


    #modal1 .form-container input[type="radio"] {

        width: 20px;
        height: 20px;

        margin-right: 10px;
    }


    #modal1 .input-style {

        font-size: 16px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    #modal1 *,
    #modal1 *::before,
    #modal1 *::after {
        animation: none !important;

        transition: none !important;
    }
}