/* ═══════════════════════════════════════════
   VibeKast — OLF Founding Collective (Dark Theme)
   ═══════════════════════════════════════════ */

@font-face {
    font-family: 'Uncage';
    src: url('../fonts/Uncage-Bold.woff2') format('woff2'),
         url('../fonts/Uncage-Bold.woff') format('woff'),
         url('../fonts/Uncage-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --gold: #C8A84E;
    --gold-light: #E8D48B;
    --gold-dark: #A88B3A;
    --gold-gradient: linear-gradient(135deg, #D7AE21, #85560C, #D0A71B);
    --bg-gold-grad: linear-gradient(180deg, #201B12 0%, #010101 100%);
    --bg: #0B0A0F;
    --bg-card: #141318;
    --bg-input: #1A1920;
    --border: #2A2930;
    --border-light: #3A3940;
    --text: #E8E6EF;
    --text-muted: #8A8894;
    --text-dim: #5A5868;
    --white: #FFFFFF;
    --black: #000000;
    --error: #E74C3C;
    --section-title: #C8A84E;
    --input-focus: #C8A84E;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;

    background: var(--bg-gold-grad);
    background-color: #010101; /* Fallback (резервний колір) */
    background-attachment: fixed; /* Фіксуємо фон при скролі */
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
    background: linear-gradient(
        to right,
        #000000 0%,
        rgba(0, 0, 0, 0.70) 70%,
        #000000 100%
    );
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 40px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    grid-column: 3;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    display: block;
    transition: all 0.3s;
}

.header-nav {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.header-nav a {
    font-family: 'Rubik', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--gold);
}

.header-cta-wrap {
    grid-column: 3;
    text-align: center;
    flex-shrink: 0;
}

.header-cta {
    display: inline-block;
    font-family: 'Uncage', 'Cinzel', serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--white) !important;
    color: var(--black) !important;
    border: none !important;
    border-radius: 50px;
    padding: 10px 24px;
    transition: background 0.3s;
}

.header-cta:hover {
    background: #e8e8e8 !important;
    color: var(--black) !important;
}

.header-cta-sub {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.6rem;
    font-weight: 400;
    font-style: normal;
    color: #999;
    margin-top: 3px;
    text-align: center;
}


/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */
.main {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    flex: 1;
}


/* ── Hero Text ── */
.hero-text {
    text-align: center;
    margin-bottom: 56px;
}

.page-title {
    font-family: 'Uncage', 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}


/* ═══════════════════════════════════════════
   FORM
   ═══════════════════════════════════════════ */
.form-global-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 32px;
}

.form-global-error p {
    color: var(--error);
    font-size: 0.875rem;
    margin: 0;
}

.form-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--section-title);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.section-notice {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 24px;
}


/* ═══════════════════════════════════════════
   FIELDS — Dark inputs
   ═══════════════════════════════════════════ */
.field {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 8px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-dim);
}

textarea {
    resize: vertical;
    min-height: 100px;
    border-radius: 16px;
}


/* ── Radio ── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text);
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: transparent;
    transition: border-color 0.2s;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--gold);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}


/* ═══════════════════════════════════════════
   CUSTOM SELECT (Seats dropdown) — Dark
   ═══════════════════════════════════════════ */
.custom-select {
    position: relative;
    margin-bottom: 8px;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text-dim);
    background: var(--bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select-trigger.has-value {
    color: var(--text);
}

.custom-select-trigger svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.custom-select.open .custom-select-trigger {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 400px;
    overflow-y: auto;
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: rgba(200, 168, 78, 0.08);
}

.custom-select-option.selected {
    background: var(--gold);
    color: var(--black);
}

.custom-select-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: transparent;
    transition: border-color 0.2s;
}

.custom-select-option.selected input[type="radio"] {
    border-color: var(--black);
}

.custom-select-option.selected input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
}


/* ═══════════════════════════════════════════
   STRIPE — Dark
   ═══════════════════════════════════════════ */
.stripe-section {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.stripe-notice {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--section-title);
    margin-bottom: 28px;
}

.stripe-card-wrapper {
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.stripe-card-number {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.stripe-card-number > div:first-child {
    flex: 1;
}

.stripe-card-row {
    display: flex;
}

.stripe-card-expiry {
    flex: 1;
    padding: 14px 18px;
    border-right: 1px solid var(--border);
    min-height: 48px;
}

.stripe-card-cvc {
    flex: 1;
    padding: 14px 18px;
    min-height: 48px;
}

.card-icons {
    display: flex;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.stripe-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 20px;
}


/* ═══════════════════════════════════════════
   CONSENT — Dark checkboxes with gold
   ═══════════════════════════════════════════ */
.consent-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.consent-block input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    background: transparent;
    transition: all 0.2s;
}

.consent-block input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.consent-block input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--black);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.consent-block p {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════
   SUBMIT BUTTON
   ═══════════════════════════════════════════ */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 36px auto 20px;
    padding: 18px 32px;
    background: var(--gold-gradient);
    color: var(--white);
    font-family: 'Uncage', 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.3);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(200, 168, 78, 0.45);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-sub {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════
   FOOTER — Dark
   ═══════════════════════════════════════════ */
.footer {
    background: #060608;
    padding: 24px 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.footer-scroll-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    background: none;
    border: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.footer-scroll-top:hover {
    opacity: 0.7;
}

.footer-scroll-top svg {
    width: 24px;
    height: 24px;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .header {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid #333;
    }

    .header-nav.open {
        display: flex;
    }

    .header-cta-wrap {
        display: none;
    }

    .burger {
        display: flex;
    }

    .page-title {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .main {
        padding: 40px 16px 60px;
    }

    .stripe-card-row {
        flex-direction: column;
    }

    .stripe-card-expiry {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .footer {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-scroll-top {
        align-self: flex-end;
    }
}