/*
 * Stacked Media Popup — styled to sit natively on austinlaserskincare.com:
 * The Seasons serif display, Roboto body, bronze #A16F48 accent,
 * warm greige surfaces, square corners throughout.
 * The host site loads "the seasons" and Roboto; stacks fall back cleanly.
 *
 * Every rule is scoped under the #stckd-overlay ID: theme/Elementor kit
 * selectors like `.elementor-kit-6 button` outrank plain class selectors,
 * and the ID keeps the popup's look immune to theme button/input styling.
 */

#stckd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 22, 17, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    animation: stckd-fade 0.25s ease-out;
}

#stckd-overlay[hidden] {
    display: none;
}

#stckd-overlay .stckd-modal {
    background: #fff;
    border-top: 3px solid #a16f48;
    border-radius: 0;
    max-width: 440px;
    width: 100%;
    padding: 40px 36px 32px;
    position: relative;
    box-shadow: 0 24px 64px rgba(28, 22, 17, 0.35);
    animation: stckd-rise 0.3s ease-out;
}

@keyframes stckd-fade {
    from { opacity: 0; }
}

@keyframes stckd-rise {
    from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
    #stckd-overlay,
    #stckd-overlay .stckd-modal {
        animation: none;
    }
}

#stckd-overlay .stckd-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: auto;
    min-height: 0;
    background: none;
    background-color: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #6e6e6e;
    padding: 6px;
    margin: 0;
}

#stckd-overlay .stckd-close:hover {
    color: #000;
    background: none;
    border: 0;
}

#stckd-overlay .stckd-close:focus-visible {
    outline: 2px solid #a16f48;
    outline-offset: 2px;
}

#stckd-overlay .stckd-eyebrow {
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a16f48;
    margin: 0 0 10px;
}

#stckd-overlay h2 {
    font-family: "the seasons", "Playfair Display", Georgia, serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.2;
    color: #000;
    margin: 0 0 8px;
    padding: 0;
}

#stckd-overlay .stckd-intro {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e6e;
    margin: 0 0 24px;
}

#stckd-overlay .stckd-field {
    margin: 0 0 16px;
}

#stckd-overlay .stckd-field label {
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4c4c4c;
    margin: 0 0 6px;
}

#stckd-overlay .stckd-field input {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    min-height: 0;
    padding: 12px 14px;
    margin: 0;
    border: 1px solid #d1d1d1;
    border-radius: 0;
    background: #fff;
    background-color: #fff;
    box-shadow: none;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #000;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#stckd-overlay .stckd-field input:focus {
    outline: none;
    border-color: #a16f48;
    box-shadow: 0 0 0 1px #a16f48;
    background-color: #fff;
}

/* Honeypot: visually removed but still in the DOM for bots. */
#stckd-overlay .stckd-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#stckd-overlay .stckd-error {
    font-family: "Roboto", sans-serif;
    color: #9d2f2f;
    font-size: 14px;
    line-height: 1.4;
    margin: 8px 0;
}

#stckd-overlay .stckd-error:focus {
    outline: none;
}

#stckd-overlay .stckd-actions {
    margin: 24px 0 0;
}

#stckd-overlay .stckd-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 100%;
    min-height: 0;
    padding: 14px 16px;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.4;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #a16f48;
    background-color: #a16f48;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}

#stckd-overlay .stckd-submit:hover,
#stckd-overlay .stckd-submit:focus {
    background: #8e5f3c;
    background-color: #8e5f3c;
    color: #fff;
    border: 0;
}

#stckd-overlay .stckd-submit:focus-visible {
    outline: 2px solid #a16f48;
    outline-offset: 2px;
}

#stckd-overlay .stckd-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

body.stckd-noscroll {
    overflow: hidden;
}

@media (max-width: 480px) {
    #stckd-overlay .stckd-modal {
        padding: 28px 22px 24px;
    }

    #stckd-overlay h2 {
        font-size: 24px;
    }
}
