/* ============================================
   PITCH PAGE — Form Styles
   ============================================ */

/* Page Layout */
.pitch-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.pitch-header {
    margin-bottom: 3.5rem;
}

.pitch-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pitch-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* Form Container */
.pitch-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Labels */
.pitch-form label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Inputs & Textareas */
.pitch-form input,
.pitch-form textarea {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    line-height: 1.6;
}

.pitch-form textarea {
    resize: vertical;
    min-height: 100px;
}

.pitch-form input:focus,
.pitch-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-card-hover);
}

.pitch-form input::placeholder,
.pitch-form textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

/* Submit Button */
.pitch-submit {
    align-self: flex-start;
    margin-top: 1rem;
    cursor: pointer;
}

.pitch-submit svg {
    transition: transform 0.3s ease;
}

.pitch-submit:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 640px) {
    .pitch-main {
        padding: 2rem 1.25rem 3rem;
    }

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

/* ============================================
   Form Submission States
   ============================================ */

/* Success & Error Messages */
.form-message {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
}

.form-message.visible {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.form-message__icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.form-message__icon svg {
    animation: scaleIn 0.5s ease 0.2s both;
}

.form-message__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.form-message__text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 auto;
}

.form-message--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.form-message--error p {
    color: #dc2626;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Disabled button */
.pitch-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}