/* Collaborate Page - Dark Cinematic Theme */

:root {
    /* Dark Theme Colors */
    --background: #0a0a0a;
    --foreground: #f5f5f5;
    --card: #1a1a1a;
    --card-foreground: #f5f5f5;
    --primary: #dab900; /* Golden accent */
    --primary-foreground: #0a0a0a;
    --secondary: #2a2a2a;
    --secondary-foreground: #f5f5f5;
    --muted: #1f1f1f;
    --muted-foreground: #a1a1a1;
    --accent: #dab900;
    --accent-foreground: #0a0a0a;
    --border: #2a2a2a;
    --error: #ef4444;
    --success: #22c55e;
    --charcoal: #1a1a1a;
    --warm-light: #dab900;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #a89100;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(218, 185, 0, 0.4);
}

.btn-primary:disabled {
    background-color: var(--muted);
    color: var(--muted-foreground);
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-outline-light {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Section 1: Hero Header */
.collaborate-hero {
    position: relative;
    height: 45vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2d2d2d 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
}

.light-beam {
    position: absolute;
    top: -50%;
    right: 20%;
    width: 300px;
    height: 200%;
    background: linear-gradient(
        to bottom,
        rgba(218, 185, 0, 0.15),
        rgba(218, 185, 0, 0.05),
        transparent
    );
    transform: rotate(25deg);
    filter: blur(30px);
}

.studio-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3),
        transparent
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
    letter-spacing: -0.05em;
    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,      /* bright gold top */
        #ffec8b 20%,     /* lighter highlight */
        #b38d31 50%,     /* mid-tone gold */
        #ffec8b 80%,     /* lighter highlight */
        #ffd700 100%     /* bright gold bottom */
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Note: text-fill-color is usually webkit specific, 
       standard is color: transparent when clipping */
    color: transparent; 

    /* Revised Shadow: text-shadow often breaks background-clip. 
       Using filter: drop-shadow instead for a similar, safer effect. */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.hero-subline {
    font-size: 1.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    animation: fadeUp 0.92s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-oneliner {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    animation: fadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section 2: Why Collaborate */
.why-collaborate {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(42, 42, 42, 0.6));
    border: 1px solid rgba(218, 185, 0, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(30px);
    backdrop-filter: blur(10px);
}

.benefit-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(218, 185, 0, 0.25);
    border-color: rgba(218, 185, 0, 0.4);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(218, 185, 0, 0.15), rgba(218, 185, 0, 0.05));
    border-radius: 1rem;
    color: var(--primary);
    transition: all 0.3s;
}

.benefit-card:hover .benefit-icon {
    background: linear-gradient(135deg, rgba(218, 185, 0, 0.25), rgba(218, 185, 0, 0.1));
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Section 3: Submission Guidelines */
.submission-guidelines {
    padding: 5rem 0;
    background-color: var(--background);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 900;
    
    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,
        #ffec8b 20%,
        #b38d31 50%,
        #ffec8b 80%,
        #ffd700 100%
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Subtle shadow to make it pop against light backgrounds */
    filter: drop-shadow(0 2px 4px rgba(62, 12, 16, 0.3));
}

.guidelines-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.guideline-item {
    animation: fadeIn 0.6s ease-out;
}

.guideline-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.guideline-text {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Section 4: Submission Form */
.submission-form-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(42, 42, 42, 0.7));
    border: 1px solid rgba(218, 185, 0, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

/* Progress Stepper */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--muted);
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 0 4px rgba(218, 185, 0, 0.2);
}

.progress-step.completed .step-number {
    background-color: var(--success);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.progress-step.active .step-label {
    color: var(--foreground);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background-color: var(--border);
    margin: 0 0.5rem;
    align-self: flex-start;
    margin-top: 20px;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-section.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: rgba(42, 42, 42, 0.5);
    color: var(--foreground);
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 185, 0, 0.15);
    background-color: rgba(42, 42, 42, 0.8);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    font-size: 0.875rem;
    color: var(--error);
    margin-top: 0.5rem;
    min-height: 20px;
}

.helper-text {
    display: block;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.character-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Genre Checkboxes */
.genre-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--foreground);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* File Upload */
.file-upload-wrapper {
    margin-bottom: 0.75rem;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px dashed rgba(218, 185, 0, 0.3);
    border-radius: 0.5rem;
    background-color: rgba(42, 42, 42, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background-color: rgba(218, 185, 0, 0.05);
}

.file-upload-text {
    font-weight: 500;
    color: var(--foreground);
}

.file-name {
    display: block;
    font-size: 0.875rem;
    color: var(--primary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Honeypot (Anti-spam) */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.btn-next,
.btn-prev,
.btn-submit {
    padding: 0.875rem 2rem;
}

/* Loading State */
.form-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Section 6: FAQ */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card);
    border: 1px solid rgba(218, 185, 0, 0.1);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(218, 185, 0, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(218, 185, 0, 0.05);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Section 7: Contact Banner */
.contact-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.contact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(218, 185, 0, 0.02) 2px,
        rgba(218, 185, 0, 0.02) 4px
    );
}

.banner-content-centered {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: white;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.banner-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;

    /* Metallic gold gradient */
    background: linear-gradient(
        to bottom,
        #ffd700 0%,      /* bright gold top */
        #ffec8b 20%,     /* lighter highlight */
        #b38d31 50%,     /* mid-tone gold */
        #ffec8b 80%,     /* lighter highlight */
        #ffd700 100%     /* bright gold bottom */
    );

    /* Clip gradient to text */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Subtle shadow to help it stand out against background elements */
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link svg {
    color: var(--primary);
}

.contact-link:hover {
    color: var(--warm-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .guidelines-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subline {
        font-size: 1.25rem;
    }
    
    .hero-oneliner {
        font-size: 1rem;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-progress {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .progress-step {
        flex: 1 1 40%;
    }
    
    .progress-line {
        display: none;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .genre-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .contact-info {
        gap: 0.75rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* when form-group gets .has-error, style its controls */
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea,
.form-group.has-error .file-upload-label {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}


/* alias for JS 'done' state */
.progress-step.done .step-number {
  background-color: var(--success);
  color: white;
}

/* animate the connecting lines when steps advance */
.progress-line.active { background-color: var(--success); }


.btn:focus-visible,
a:focus-visible,
.faq-question:focus-visible,
.file-upload-label:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(218,185,0,0.35);
  border-radius: 0.5rem;
}

/* If JS fails, at least show the cards */
@media (prefers-reduced-motion: no-preference) {
  .no-js .benefit-card { opacity: 1; transform: none; }
}


.file-upload-label.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

/* --- A11y utilities --- */
.sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Tie error state to labels and messages for clearer feedback */
.form-group.has-error .form-label { color: var(--error); }
.form-group.has-error .error-message { color: var(--error); font-weight: 500; }

/* High-contrast placeholders on dark backgrounds */
::placeholder { color: rgba(245,245,245,0.55); }

/* Inputs: better hover/disabled states */
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(218,185,0,0.35);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Checkbox/focus polish (keyboard ring) */
.checkbox-label input[type="checkbox"]:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(218,185,0,0.35);
  border-radius: 4px;
}

/* Progress lines animate when steps advance (your JS toggles .active) */
.progress-line.active {
  background: linear-gradient(90deg, var(--success), var(--primary));
  transition: background-color .35s ease, background .35s ease;
}

/* Character counter states — matches your JS colors */
.character-count.is-error { color: var(--error) !important; }
.character-count.is-ok    { color: var(--success) !important; }

/* File upload: drag-over highlight (add/remove 'drag-over' via JS if you want) */
.file-upload-label.drag-over {
  border-color: var(--primary);
  background-color: rgba(218,185,0,0.08);
  box-shadow: 0 0 0 3px rgba(218,185,0,0.12);
}

/* Buttons: subtle tap target + svg alignment insurance */
.btn svg { display: inline-block; transform: translateY(1px); }

/* Form wrapper: nicer mobile spacing */
@media (max-width: 480px) {
  .form-wrapper { padding: 1.25rem; }
  .form-section-title { font-size: 1.4rem; }
}

/* Respect reduced motion even more for stepper + cards */
@media (prefers-reduced-motion: reduce) {
  .benefit-card, .form-section, .faq-answer, .progress-line {
    transition: none !important;
    animation: none !important;
  }
}

/* Optional: sticky actions on long sections (mobile QoL) */
@media (max-width: 768px) {
  .form-actions {
    position: sticky; bottom: 0;
    background: linear-gradient(180deg, rgba(15,15,15,0), rgba(15,15,15,0.85) 30%, rgba(15,15,15,0.95));
    padding-bottom: 1rem; margin-bottom: -1rem;
  }
}
