/* Casting Page Specific Styles */

.casting-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 8rem 0 4rem;
    margin-top: 70px;
    color: var(--text-light);
    text-align: center;
}

.casting-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.casting-header h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Casting Calls Grid */
.casting-calls-section {
    padding: 4rem 0;
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.casting-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.loading-casting {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.casting-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.casting-card.upcoming {
    opacity: 0.85;
}

.casting-card-header {
    background: var(--secondary-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.upcoming {
    background: #95a5a6;
    color: white;
}

.deadline-badge {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.casting-card-body {
    padding: 2rem;
}

.casting-card-body h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.casting-type {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.casting-description {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.casting-details-quick {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.casting-details-quick .detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.casting-details-quick .detail:last-child {
    border-bottom: none;
}

.casting-details-quick .label {
    font-weight: 600;
    color: var(--secondary-color);
}

.casting-details-quick .value {
    color: #555;
}

.btn-view-casting {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-casting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 165, 90, 0.4);
    background: #d4b366;
}

.btn-view-casting.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-view-casting.secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Casting Modal */
.casting-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem 0;
}

.casting-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 900px;
    width: 90%;
    margin: auto;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1rem 1rem 0 0;
    z-index: 1;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.casting-details {
    padding: 2rem 3rem 3rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.deadline-notice {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(201, 165, 90, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 1rem;
}

.deadline-notice strong {
    color: var(--primary-color);
    font-weight: 700;
}

.production-details-modal {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.production-details-modal .details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.production-details-modal .detail-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.production-details-modal .detail-item h4 {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.production-details-modal .detail-item p {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.project-overview-modal {
    margin-bottom: 2rem;
}

.project-overview-modal h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-overview-modal p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.btn-proceed-form {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-proceed-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 90, 0.5);
    background: #d4b366;
}

.btn-back {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--secondary-color);
    color: white;
}

/* Character Details Modal */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    overflow-y: auto;
    padding: 2rem 0;
}

.character-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal-content {
    background: white;
    max-width: 700px;
    width: 90%;
    margin: auto;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.character-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1;
}

.character-modal-close:hover {
    transform: scale(1.1);
}

#characterDetails h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

#characterDetails .char-age {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

#characterDetails h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 0.5rem;
}

#characterDetails p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

#characterDetails .audition-lines {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

#characterDetails .audition-line {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    line-height: 1.6;
}

#characterDetails .audition-line:last-child {
    margin-bottom: 0;
}

#characterDetails .stage-direction {
    color: #777;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
}



/* Submission Form Section */
.submission-form-section {
    background: var(--light-bg);
    padding: 4rem 0;
    display: none;
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-intro h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-intro p {
    font-size: 1.1rem;
    color: #555;
}

.form-intro .warning {
    color: #c0392b;
    font-weight: 700;
    margin-top: 1rem;
}

/* Casting Form */
.casting-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto 3rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-bg);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.required {
    color: #c0392b;
}

.conditional-required {
    display: none;
}

.field-description {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.9rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-color);
}

.file-info {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* File Preview Styles */
.file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-preview {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.file-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.preview-name {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.role-checkbox-card {
    margin-bottom: 1rem;
}

.checkbox-label.role-selector {
    align-items: flex-start;
    padding: 1.25rem;
    border: 1px solid #ddd;
    background: #fafafa;
}

.checkbox-label.role-selector:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

.role-content {
    flex: 1;
    margin-left: 0.75rem;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.role-header strong {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.role-type-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-cast-badge {
    background: #6b7280;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cast role styling */
.role-cast {
    opacity: 0.6;
}

.role-cast .checkbox-label {
    cursor: not-allowed;
    background: #f9fafb;
}

.role-cast .checkbox-label:hover {
    background: #f9fafb;
}

.role-cast input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.role-cast .role-content {
    opacity: 0.8;
}

.role-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.role-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

.role-notes {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

.checkbox-label:hover,
.radio-label:hover {
    background: var(--light-bg);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span,
.radio-label span {
    font-size: 1rem;
    color: var(--text-dark);
}

.acknowledgment {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.acknowledgment span {
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
}

.info-box strong {
    color: #f57c00;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1.2rem 3rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 165, 90, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 165, 90, 0.5);
    background: #d4b366;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
}

/* Form Status */
.form-status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-status.loading {
    display: block;
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Submission Info */
.submission-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.submission-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.submission-info h3:first-child {
    margin-top: 0;
}

.submission-info ul {
    list-style: none;
    padding-left: 0;
}

.submission-info li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 1.05rem;
}

.submission-info li::before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.submission-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.submission-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .casting-hero {
        padding: 6rem 0 3rem;
    }

    .casting-header h1 {
        font-size: 2.5rem;
    }

    .casting-header h2 {
        font-size: 1.5rem;
    }

    .casting-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .casting-details {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 2rem;
    }

    .production-details-modal .details-grid {
        grid-template-columns: 1fr;
    }

    .casting-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        width: 100%;
    }
}
