/* styles/main.css */

/* CSS Variables */
:root {
    --primary-color: #ff0040;
    --secondary-color: #ffd700;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-dim: #888888;
    --neon-pink: #ff006e;
    --neon-blue: #00d4ff;
    --gradient-1: linear-gradient(135deg, #ff0040 0%, #ff006e 100%);
    --gradient-2: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

/* Film Grain Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIGJhc2VGcmVxdWVuY3k9Ii43NSIgbnVtT2N0YXZlcz0iNCIgc2VlZD0iNSIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNhKSIgb3BhY2l0eT0iMSIvPjwvc3ZnPg==');
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.city-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.neon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 0, 110, 0.1) 50%, transparent 70%);
    animation: scan 8s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
}

/* Glitch Effect Title */
.title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    position: relative;
    text-shadow:
        0 0 10px rgba(255, 0, 64, 0.5),
        0 0 20px rgba(255, 0, 64, 0.3),
        0 0 30px rgba(255, 0, 64, 0.2);
}

.glitch {
    animation: glitch 2.5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-blue);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitch {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
    }

    20% {
        text-shadow: 3px 3px 0 var(--neon-blue), -3px -3px 0 var(--neon-pink);
    }

    40% {
        text-shadow: -3px 3px 0 var(--neon-blue), 3px -3px 0 var(--neon-pink);
    }
}

@keyframes glitch-1 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
    }

    20% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 2px);
    }

    40% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(-2px, -2px);
    }
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.meta-item {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.separator {
    color: var(--text-dim);
}

.credit-line {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 20px 0 30px 0;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    position: relative;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-1);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.cta-button:hover .button-glow {
    width: 100%;
    height: 100%;
}

.cta-button:hover {
    box-shadow:
        0 0 20px rgba(255, 0, 64, 0.5),
        inset 0 0 20px rgba(255, 0, 64, 0.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dim);
    border-radius: 25px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 10px;
    background: var(--text-dim);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: wheel 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-1);
}

/* Synopsis Section */
.synopsis {
    background: var(--bg-darker);
    position: relative;
}

.synopsis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, transparent 0%, rgba(255, 0, 64, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.synopsis-content {
    max-width: 800px;
    margin: 0 auto;
}

.synopsis-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.synopsis-text.fade-in-delayed {
    animation-delay: 0.5s;
}

.synopsis-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 1s;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    white-space: normal;
    animation: reveal 3s steps(100, end);
}

@keyframes reveal {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Roles Section */
.roles {
    background: var(--bg-dark);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.role-card {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.role-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid var(--primary-color);
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(255, 0, 64, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-top: 20px;
}

.role-type {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    margin-top: 10px;
}

.card-back h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-back ul {
    list-style: none;
    text-align: left;
}

.card-back li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.card-back li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Filled Role Card Styles */
.role-card.filled .card-front {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 0, 64, 0.1) 100%);
    border-color: var(--secondary-color);
}

.filled-banner {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--bg-dark);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    z-index: 1;
}

.role-card.filled .card-icon {
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.cast-title {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 20px;
}

.role-card.filled .card-back {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 0, 64, 0.15) 100%);
    border-color: var(--secondary-color);
}

.role-card.filled .card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.casting-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.5);
    padding: 50px;
    border: 1px solid rgba(255, 0, 64, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-dim);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group select:focus~label,
.form-group select:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label,
.form-group input:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.form-group input:focus~.input-line,
.form-group select:focus~.input-line,
.form-group textarea:focus~.input-line {
    width: 100%;
}

/* Submit Button */
.submit-btn {
    position: relative;
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-1);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.submit-btn:hover .submit-glow {
    width: 100%;
    height: 100%;
}

.submit-btn:hover {
    color: var(--text-light);
    box-shadow:
        0 0 30px rgba(255, 0, 64, 0.5),
        inset 0 0 30px rgba(255, 0, 64, 0.1);
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 50px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.5);
    margin-top: 30px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #00ff00;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add these styles to your existing styles/main.css file */
/* These are ONLY the new styles needed - your existing form styles remain unchanged */

/* Professional Form Enhancements */
.casting-subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.production-info {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.submission-deadline {
    color: #808080;
    font-size: 0.9rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-left: 20px;
}

.form-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* tighter, consistent spacing */
    margin-bottom: 1rem;
}

/* Pill-style toggle labels */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #eaeaea;
    cursor: pointer;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
    user-select: none;
    -webkit-user-select: none;
    flex: 0 0 auto; /* prevent stretching */
}
.checkbox-label:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

/* Accessible custom checkbox */
.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.6px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    display: inline-block;
    position: relative;
    outline: none;
    box-shadow: none;
}
.checkbox-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 2px;
}
.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 64, 0.25) inset;
}
.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 2px;
    background: rgba(0,0,0,.85);
}

/* Text next to the box stays readable */
.checkbox-label span,
.checkbox-label strong,
.checkbox-label em {
    color: inherit;
    font-weight: 500;
    letter-spacing: .2px;
}

/* Upload Sections */
.upload-group {
    margin-bottom: 2rem;
}

.upload-group h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
}

.photo-upload-container {
    margin-bottom: 2rem;
}

.hidden-input {
    display: none;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed rgba(255, 0, 64, 0.3);
    border-radius: 8px;
    background: rgba(255, 0, 64, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background: rgba(255, 0, 64, 0.1);
    transform: translateY(-2px);
}

.upload-box.has-file {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.5);
}

.upload-box p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.file-requirements {
    font-size: 0.8rem;
    color: #808080;
}

/* Uploaded Photos Grid */
.uploaded-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.photo-remove:hover {
    background: rgba(255, 0, 0, 1);
}

/* Legal Section */
.legal-section {
    background: rgba(255, 0, 64, 0.05);
    border: 1px solid rgba(255, 0, 64, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
}

.legal-section .checkbox-label {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.legal-section .checkbox-label:last-child {
    margin-bottom: 0;
}

.legal-section .checkbox-label span {
    line-height: 1.5;
}

/* Loading State for Button */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading span {
    opacity: 0;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Enhanced Success Message */
.form-success {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 8px;
    animation: successPulse 0.5s ease;
}

.form-success.show {
    display: block;
}

.success-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 1rem;
    animation: checkmark 0.5s ease;
}

#ref-number {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Add these fixes to your main.css file to resolve the label positioning issues */

/* Fix for select elements with pre-selected values */
.form-group select:not([value=""])~label,
.form-group select:has(option:checked:not([value=""]))~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Ensure proper spacing for all select elements */
.form-group select {
    padding-top: 20px;
    /* Add extra top padding to prevent overlap */
}

/* Fix label positioning for filled selects */
.form-group:has(select:not([value=""])) label,
.form-group:has(select option:checked:not([value=""])) label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Alternative approach if :has() is not supported */
.form-group select.has-value~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Ensure checkbox groups have proper spacing from labels */
.checkbox-group {
    padding-top: 25px;
    /* Increased from 15px */
}

/* Fix for better textarea spacing */
.form-group textarea {
    padding-top: 20px;
}

/* Ensure all inputs have consistent padding */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="url"] {
    padding-top: 20px;
}

/* Add margin to prevent label cutoff */
.form-group {
    margin-top: 25px;
}

.form-group:first-child {
    margin-top: 0;
}

/* Ensure proper label color for filled fields */
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

@keyframes successPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(360deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 1rem;
    }

    .uploaded-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .title {
        font-size: 4rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .casting-form {
        padding: 30px 20px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }
}

