/**
 * Conference Registration Form - Frontend Styles
 */

.crf-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conference-form h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.conference-form h3:first-of-type {
    margin-top: 0;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea,
.form-row input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="tel"]:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.radio-group {
    margin: 15px 0;
}

.radio-group label {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal;
}

.radio-group label:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-group input[type="radio"]:checked + label,
.radio-group label:has(input[type="radio"]:checked) {
    background: #e3f2fd;
    border-color: #3498db;
    font-weight: 600;
}

.crf-notice {
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    font-size: 14px;
}

.recaptcha-row {
    margin: 25px 0;
}

.submit-row {
    margin-top: 30px;
    text-align: center;
}

.crf-submit-btn {
    background: #3498db;
    color: #ffffff;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.crf-submit-btn:hover {
    background: #2980b9;
}

.crf-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.crf-spinner {
    display: inline-block;
    margin-left: 15px;
    color: #7f8c8d;
    font-style: italic;
}

.crf-messages {
    margin-bottom: 20px;
}

.crf-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.crf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.crf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .crf-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .conference-form h3 {
        font-size: 1.1em;
    }
    
    .crf-submit-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

/* File input styling */
.form-row input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
}

.form-row input[type="file"]::-webkit-file-upload-button {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.form-row input[type="file"]::-webkit-file-upload-button:hover {
    background: #2980b9;
}

/* Loading state */
.crf-form-container.loading {
    opacity: 0.7;
    pointer-events: none;
}
