/* =====================================================
   FAH MAI HOLDINGS — Exclusive Member Stock Drop
   CSS Stylesheet
   ===================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap');

/* --- CSS Variables --- */
:root {
    --brand-pink:    #E72982;
    --bg-dark:       #0A0A0A;
    --bg-card:       #111118;
    --bg-glass:      rgba(255, 255, 255, 0.04);
    --text-white:    #FFFFFF;
    --text-muted:    #8C8D8E;
    --text-light:    #F0F0F0;
    --border-subtle: rgba(240, 240, 240, 0.10);
    --border-input:  rgba(240, 240, 240, 0.18);
    --border-divider: rgba(231, 41, 130, 0.30);
    --glow-pink:     0 0 32px rgba(231, 41, 130, 0.40);
    --glow-sm:       0 0 20px rgba(231, 41, 130, 0.25);
    --shadow-card:   0 28px 72px rgba(0, 0, 0, 0.55);
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body:     'Josefin Sans', sans-serif;
    --font-brand:    'Filson Soft', 'Josefin Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Background Gradient Layer --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(110, 15, 60, 0.65) 0%, transparent 65%),
        radial-gradient(ellipse 60% 45% at 100% 100%, rgba(80, 10, 45, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 0% 75%,  rgba(60, 8, 35, 0.35) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* --- Grain Texture Overlay --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border-divider);
    animation: fadeDown 0.6s ease both;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    object-fit: contain;
    mix-blend-mode: screen;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand-name {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-white);
    text-transform: uppercase;
}

.logo-text .brand-sub {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.members-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brand-pink);
    border: 1px solid rgba(231, 41, 130, 0.35);
    padding: 7px 14px;
    border-radius: 30px;
    background: rgba(231, 41, 130, 0.06);
}

.members-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-pink);
    animation: pulse 2s ease infinite;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    padding: 60px 0 48px;
    text-align: center;
    animation: fadeUp 0.7s 0.1s ease both;
}

.section-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brand-pink);
    margin-bottom: 22px;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 1px;
    background: var(--brand-pink);
    opacity: 0.5;
}

.section-label::before { right: calc(100% + 10px); }
.section-label::after  { left:  calc(100% + 10px); }

.hero-title-group {
    margin-bottom: 18px;
}

.hero-distillery {
    display: block;
    font-family: var(--font-brand);
    font-size: clamp(52px, 12vw, 80px);
    font-weight: 700;
    line-height: 0.9;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.hero-action {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
}

.hero-vintage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-white);
    background: rgba(231, 41, 130, 0.1);
    border: 1px solid rgba(231, 41, 130, 0.25);
    padding: 9px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
}

.hero-divider {
    width: 1px;
    height: 12px;
    background: rgba(231, 41, 130, 0.4);
}

.hero-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    letter-spacing: 0.01em;
}

/* =====================================================
   FORM SECTION
   ===================================================== */
.form-section {
    padding-bottom: 60px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.form-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 240, 240, 0.10);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231,41,130,0.5), transparent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    background: rgba(240, 240, 240, 0.07);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 15px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-white);
    letter-spacing: 0.02em;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: rgba(140, 141, 142, 0.5);
}

.form-input:hover {
    border-color: rgba(240, 240, 240, 0.32);
    background: rgba(240, 240, 240, 0.1);
}

.form-input:focus {
    border-color: rgba(231, 41, 130, 0.55);
    box-shadow: 0 0 0 3px rgba(231, 41, 130, 0.10), var(--glow-sm);
    background: rgba(255, 255, 255, 0.03);
}

.form-input:focus-visible {
    outline: 2px solid var(--brand-pink);
    outline-offset: 2px;
}

.form-input.error {
    border-color: rgba(231, 41, 130, 0.7);
    box-shadow: 0 0 0 3px rgba(231, 41, 130, 0.12);
}

.field-error {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--brand-pink);
    margin-top: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.field-hint {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.7;
}

/* Schedule section with date, time, and timezone fields */
.schedule-section {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid rgba(231, 41, 130, 0.18);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(231, 41, 130, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.schedule-header {
    margin-bottom: 18px;
}

.schedule-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brand-pink);
}

.schedule-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.schedule-copy {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: rgba(240, 240, 240, 0.76);
}

.schedule-row .form-group {
    margin-bottom: 0;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ADADAF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select option,
.form-select optgroup {
    background: #22222A;
    color: var(--text-white);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.92);
    opacity: 0.78;
    cursor: pointer;
}

.timezone-preview {
    margin-top: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    font-size: 10.5px;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: rgba(240, 240, 240, 0.82);
}

/* --- Vintage Toggle Buttons --- */
.vintage-section {
    margin-bottom: 28px;
}

.vintage-label {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.vintage-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.vintage-toggle {
    position: relative;
}

.vintage-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vintage-toggle label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 10px;
    background: rgba(240, 240, 240, 0.06);
    border: 1px solid rgba(240, 240, 240, 0.18);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
    user-select: none;
    -webkit-user-select: none;
}

.vintage-toggle label .toggle-year {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    transition: color var(--transition);
}

.vintage-toggle label .toggle-type {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(140, 141, 142, 0.6);
    transition: color var(--transition);
}

.vintage-toggle label:hover {
    background: rgba(231, 41, 130, 0.07);
    border-color: rgba(231, 41, 130, 0.30);
}

.vintage-toggle input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--brand-pink);
    outline-offset: 2px;
}

.vintage-toggle input[type="radio"]:checked + label {
    background: rgba(231, 41, 130, 0.1);
    border-color: rgba(231, 41, 130, 0.5);
    box-shadow: var(--glow-sm);
}

.vintage-toggle input[type="radio"]:checked + label .toggle-year {
    color: var(--brand-pink);
}

.vintage-toggle input[type="radio"]:checked + label .toggle-type {
    color: rgba(231, 41, 130, 0.7);
}

/* --- Phone field with dial code --- */
.phone-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.dial-select {
    flex-shrink: 0;
    width: 190px;
    background: rgba(240, 240, 240, 0.07);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-white);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ADADAF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.dial-select option {
    background: #22222A;
    color: var(--text-white);
}

.dial-select:focus {
    border-color: rgba(231, 41, 130, 0.5);
    box-shadow: 0 0 0 3px rgba(231, 41, 130, 0.08), var(--glow-sm);
}

.phone-input {
    flex: 1;
    min-width: 0;
}

@media (max-width: 600px) {
    .dial-select {
        width: 95px;
        font-size: 12px;
    }

    .schedule-section {
        padding: 18px;
    }

    .schedule-title {
        font-size: 18px;
    }
}

/* --- Email validation indicator --- */
.input-wrap {
    position: relative;
}

.input-wrap .valid-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    font-size: 14px;
    color: var(--brand-pink);
    font-weight: 700;
}

.input-wrap.is-valid .valid-icon { opacity: 1; }
.input-wrap.is-valid .form-input { padding-right: 38px; }


.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #E72982 0%, #c01e6a 100%);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-white);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    margin-top: 28px;
    -webkit-appearance: none;
    appearance: none;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(231, 41, 130, 0.55), 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #f03090 0%, #d0226e 100%);
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(231, 41, 130, 0.35);
}

.btn-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-arrow {
    font-size: 18px;
    transition: transform var(--transition);
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-cta:focus-visible {
    outline: 2px solid var(--brand-pink);
    outline-offset: 3px;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-cta.loading .btn-text,
.btn-cta.loading .btn-arrow {
    display: none;
}

.btn-cta.loading .btn-loader {
    display: block;
}

/* =====================================================
   SUCCESS STATE
   ===================================================== */
.success-state {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: fadeUp 0.5s ease both;
}

.success-state.visible {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: rgba(231, 41, 130, 0.1);
    border: 2px solid rgba(231, 41, 130, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-icon svg {
    width: 30px;
    height: 30px;
}

.success-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(231, 41, 130, 0.15);
}

.success-title {
    font-family: var(--font-brand);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.success-message {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 380px;
    margin: 0 auto 28px;
}

.success-ref {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(140, 141, 142, 0.5);
}

.success-ref span {
    color: var(--brand-pink);
}

/* =====================================================
   ERROR ALERT
   ===================================================== */
.form-alert {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.form-alert.error {
    display: block;
    background: rgba(231, 41, 130, 0.08);
    border: 1px solid rgba(231, 41, 130, 0.3);
    color: #f0a0c0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    border-top: 1px solid var(--border-divider);
    padding: 28px 0 40px;
    text-align: center;
    animation: fadeUp 0.8s 0.3s ease both;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-pink), transparent);
    opacity: 0.3;
}

.footer-divider-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.6;
}

.footer-disclaimer {
    font-size: 11px;
    font-weight: 300;
    color: rgba(140, 141, 142, 0.55);
    line-height: 1.8;
    letter-spacing: 0.01em;
    max-width: 480px;
    margin: 0 auto;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 0 16px;
    }

    .site-header {
        padding: 22px 0 20px;
    }

    .logo-text .brand-name {
        font-size: 13px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .members-badge {
        font-size: 8px;
        padding: 6px 11px;
        letter-spacing: 0.18em;
    }

    .hero {
        padding: 44px 0 36px;
    }

    .form-card {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vintage-toggles {
        gap: 8px;
    }

    .vintage-toggle label {
        padding: 14px 8px;
    }

    .vintage-toggle label .toggle-year {
        font-size: 16px;
    }

    .btn-cta {
        font-size: 11px;
        padding: 17px 24px;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 360px) {
    .vintage-toggles {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(231, 41, 130, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(231, 41, 130, 0.5);
}

/* --- Selection --- */
::selection {
    background: rgba(231, 41, 130, 0.3);
    color: var(--text-white);
}
