/* ═══════════════════════════════════════════
   VibeKast — Submit Your Project
   ═══════════════════════════════════════════ */

/* ── Uncage font ── */
@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;
}

/* ── RESET ── */
*, *::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);
    --black: #111111;
    --white: #FFFFFF;
    --bg: #FAFAFA;
    --text: #333333;
    --text-light: #777777;
    --border: #E0E0E0;
    --error: #C0392B;
    --section-title: #B8941F;
    --input-border: #D5D5D5;
    --input-focus: #C8A84E;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}


/* ═══════════════════════════════════════════
   HEADER — CSS Grid: logo | nav (center) | CTA (right)
   ═══════════════════════════════════════════ */
.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;
}

/* Logo — left */
.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 — hidden on desktop */
.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);
    transition: all 0.3s;
    display: block;
}

/* Nav — center */
.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);
}

/* CTA — right */
.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%;
    letter-spacing: 0;
    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: #999999;
    margin-top: 3px;
    text-align: center;
}


/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */
.main {
    max-width: 780px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}

.page-title {
    font-family: 'Uncage', 'Cinzel', serif;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 48px;
}


/* ═══════════════════════════════════════════
   GLOBAL FORM ERROR
   ═══════════════════════════════════════════ */
.form-global-error {
    background: #FDF2F2;
    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 SECTIONS
   ═══════════════════════════════════════════ */
.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-description {
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.7;
}


/* ═══════════════════════════════════════════
   FIELDS
   ═══════════════════════════════════════════ */
.field {
    margin-bottom: 20px;
}

.field.mt-24 {
    margin-top: 24px;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.field-label .optional {
    color: var(--text-light);
    font-weight: 400;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.field-error {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 4px;
    display: none;
}

.field-error.visible {
    display: block;
}


/* ── Inputs ── */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--white);
    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.12);
}

input::placeholder,
textarea::placeholder {
    color: #B0B0B0;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}


/* ── Select ── */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}


/* ── Radio ── */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
}

.radio-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    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%;
}


/* ═══════════════════════════════════════════
   FILE UPLOAD
   ═══════════════════════════════════════════ */
.file-upload-area {
    border: 2px dashed var(--input-border);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    background: var(--white);
}

.file-upload-area:hover {
    border-color: var(--gold);
    background: rgba(200, 168, 78, 0.03);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-area .upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: var(--text-light);
    display: block;
}

.file-upload-area .upload-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.file-upload-area .file-name {
    font-size: 0.8rem;
    color: var(--text);
    font-weight: 500;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.file-upload-area .file-name.visible {
    display: flex;
}

.file-upload-area .file-name svg {
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.file-upload-area .upload-text.hidden {
    display: none;
}


/* ═══════════════════════════════════════════
   STRIPE
   ═══════════════════════════════════════════ */
.stripe-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stripe-notice {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--section-title);
    margin-bottom: 28px;
}

.stripe-card-wrapper {
    background: var(--white);
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    overflow: hidden;
}

.stripe-card-number {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.stripe-card-number > div:first-child {
    flex: 1;
}

.stripe-card-row {
    display: flex;
}

.stripe-card-expiry {
    flex: 1;
    padding: 12px 16px;
    border-right: 1px solid var(--border);
    min-height: 44px;
}

.stripe-card-cvc {
    flex: 1;
    padding: 12px 16px;
    min-height: 44px;
}

.card-icons {
    display: flex;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.stripe-error {
    color: var(--error);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}


/* ── Phone ── */
.phone-row {
    display: flex;
    gap: 10px;
}

.phone-country {
    width: 120px;
    flex-shrink: 0;
}

.phone-country select {
    height: 100%;
}

.phone-number {
    flex: 1;
}


/* ═══════════════════════════════════════════
   CONSENT
   ═══════════════════════════════════════════ */
.consent-block {
    margin: 32px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-block input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    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: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-block p {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════
   SUBMIT BUTTON — Uncage, white text, gold gradient
   ═══════════════════════════════════════════ */
.submit-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 36px auto 16px;
    padding: 16px 32px;
    background: var(--gold-gradient);
    color: var(--white);
    font-family: 'Uncage', 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(200, 168, 78, 0.35);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px 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.8rem;
    color: var(--text-light);
    font-style: italic;
}


/* ── Spinner ── */
.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); }
}

/* ═══════════════════════════════════════════
   CUSTOM SELECT (Genre dropdown)
   ═══════════════════════════════════════════ */
.custom-select {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #B0B0B0;
    background: var(--white);
    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.12);
}

.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(--white);
    border: 1.5px solid var(--input-border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background: #fafafa;
}

.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(--input-border);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    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%;
}


/* ═══════════════════════════════════════════
   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: 2px;
    }

    .main {
        padding: 32px 16px 60px;
    }

    .phone-row {
        flex-direction: column;
    }

    .phone-country {
        width: 100%;
    }

    .stripe-card-row {
        flex-direction: column;
    }

    .stripe-card-expiry {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}