/* =====================================================
   SUBMISSIONS PAGE — Cult Machine
   ===================================================== */

/* ── Page shell ────────────────────────────────────── */
.submissions-page {
    background: #f7f8f9;
    min-height: 100vh;
    padding: 100px 0 80px;
}

.submissions-page__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Page Header ────────────────────────────────────── */
.submissions-header {
    text-align: center;
    margin-bottom: 64px;
}

.submissions-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background: #000;
    padding: 5px 16px;
    margin-bottom: 22px;
}

.submissions-title {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
    line-height: 1;
}

.submissions-subtitle {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Form ───────────────────────────────────────────── */
.submissions-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Section ────────────────────────────────────────── */
.sub-section {
    background: #fff;
    border: 2px solid #000;
    margin-bottom: -2px; /* collapse borders */
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}
.sub-section:first-child { border-radius: 0; }
.sub-section:last-of-type { margin-bottom: 32px; }
.sub-section:focus-within {
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    z-index: 1;
    position: relative;
}

.sub-section__label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px 18px;
    border-bottom: 2px solid #000;
    background: #000;
}

.sub-section__num {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-feature-settings: "tnum";
}

.sub-section__label h2 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.sub-section__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px;
}

/* ── Field Group ────────────────────────────────────── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.field-group--full {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #333;
}

.field-group input[type=text],
.field-group input[type=email],
.field-group input[type=url],
.field-group select,
.field-group textarea {
    padding: 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.field-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.field-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.65;
}

.field-group input.has-error,
.field-group select.has-error,
.field-group textarea.has-error {
    border-color: #c00;
}

/* ── Labels ─────────────────────────────────────────── */
.required { color: #c00; margin-left: 2px; }
.optional {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aaa;
    text-transform: uppercase;
    margin-left: 4px;
}

/* ── Role / Type Pills ──────────────────────────────── */
.role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    cursor: pointer;
    user-select: none;
}

.pill input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill span {
    display: inline-block;
    padding: 9px 20px;
    border: 2px solid #d0d0d0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    background: #fff;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pill:hover span {
    border-color: #000;
    color: #000;
    transform: translateY(-1px);
}

.pill input[type=radio]:checked + span {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* ── Pitch Counter ──────────────────────────────────── */
.pitch-counter {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ── Press Kit Hint ─────────────────────────────────── */
.press-kit-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.4px;
    line-height: 1.5;
    background: #f7f8f9;
    border-left: 3px solid #ccc;
    padding: 9px 14px;
    margin-bottom: 10px;
}

.press-kit-hint svg {
    flex-shrink: 0;
    opacity: 0.6;
}


/* ── Date Picker Row ────────────────────────────────── */
.date-picker-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.date-select {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.date-select:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.date-select:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* TBD pill inside date row */
.tbd-pill {
    flex-shrink: 0;
}

.tbd-pill span {
    padding: 10px 18px;
    font-size: 11px;
}

/* ── Ko-fi Modal ────────────────────────────────────── */
.kofi-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kofi-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.kofi-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid #000;
    padding: 48px 42px 38px;
    max-width: 460px;
    width: calc(100% - 40px);
    text-align: center;
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.kofi-modal__icon {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #fff;
}

.kofi-modal__box h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: #000;
}

.kofi-modal__box > p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 32px;
}

.kofi-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kofi-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #000;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.kofi-modal__btn:hover {
    transform: translateY(-2px);
}

.kofi-modal__btn--support {
    background: #000;
    color: #fff;
}

.kofi-modal__btn--support:hover {
    background: #222;
}

.kofi-modal__btn--skip {
    background: #fff;
    color: #666;
    border-color: #ccc;
}

.kofi-modal__btn--skip:hover {
    background: #f5f5f5;
    color: #000;
    border-color: #999;
}

.kofi-modal__note {
    margin-top: 20px;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .kofi-modal__box {
        padding: 36px 24px 28px;
    }

    .date-picker-row {
        flex-wrap: wrap;
    }

    .date-select {
        flex: 1 1 120px;
    }
}


/* ── Field Error ────────────────────────────────────── */
.field-error {
    font-size: 11px;
    color: #c00;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-height: 16px;
    display: block;
}

/* ── Submit Zone ────────────────────────────────────── */
.sub-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 18px 54px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    min-width: 260px;
}

.submit-btn:hover:not(:disabled) {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.submit-btn.loading .submit-btn__text { opacity: 0.4; }
.submit-btn.loading .submit-btn__spinner { display: block; }

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

.sub-disclaimer {
    font-size: 12px;
    color: #999;
    letter-spacing: 0.5px;
    text-align: center;
}

/* ── Success State ──────────────────────────────────── */
.submission-success {
    text-align: center;
    padding: 80px 20px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 80px;
    height: 80px;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 28px;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.submission-success h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.submission-success p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.success-home-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.success-home-link:hover { color: #555; border-color: #555; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
    .submissions-page { padding: 80px 0 60px; }

    .sub-section__fields {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .field-group--full { grid-column: 1; }

    .submissions-title { font-size: 2.2rem; }

    .submit-btn { width: 100%; padding: 18px 24px; }

    .role-pills { gap: 8px; }
    .pill span { padding: 8px 14px; font-size: 11px; }
}
