/* Crew Registration Styles */
.crew-registration-wrapper {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.crew-reg-header {
    margin-bottom: 40px;
}

.crew-reg-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.crew-reg-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.crew-reg-banner h1 {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.event-date {
    font-size: 20px;
    color: rgba(255,255,255,0.95);
    margin: 0;
    letter-spacing: 3px;
    font-weight: 600;
}

.crew-reg-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.crew-reg-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 30px 0;
    text-align: center;
}

.crew-reg-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 5px solid #667eea;
}

.crew-reg-info p {
    margin: 8px 0;
    color: #2d3748;
    line-height: 1.6;
}

.crew-reg-info strong {
    color: #1a202c;
    font-weight: 700;
}

.crew-reg-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.crew-reg-info a:hover {
    text-decoration: underline;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
}

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

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    margin-right: 12px;
    border-radius: 2px;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

.required {
    color: #e53e3e;
    font-weight: 700;
}

.help-text {
    font-size: 13px;
    color: #718096;
    margin: 5px 0 12px 0;
    line-height: 1.5;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

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

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #ffffff;
    flex: 1;
    justify-content: center;
    font-weight: 500;
    color: #4a5568;
}

.radio-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked {
    & ~ span:not(.radio-custom) {
        color: #667eea;
        font-weight: 600;
    }
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.checkbox-label:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    border-color: #667eea;
    background: #667eea;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Certificate Badges */
.certificate-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.badge-icon {
    width: 22px;
    height: 22px;
}

.badge-medical {
    color: #e53e3e;
}

.badge-fire {
    color: #dd6b20;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #667eea;
    margin-bottom: 12px;
}

.file-text {
    color: #4a5568;
    font-weight: 500;
    font-size: 15px;
}

.file-name {
    display: block;
    margin-top: 15px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

/* Submit Button */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

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

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Messages */
.form-message {
    margin-top: 25px;
    padding: 18px 24px;
    border-radius: 12px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 2px solid #48bb78;
}

.form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 2px solid #e53e3e;
}

/* Loading State */
.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .crew-reg-container {
        padding: 30px 20px;
    }
    
    .crew-reg-banner {
        padding: 40px 20px;
    }
    
    .crew-reg-banner h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }
    
    .event-date {
        font-size: 16px;
    }
    
    .crew-reg-title {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .crew-registration-wrapper {
        margin: 20px 10px;
    }
    
    .crew-reg-banner h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
