/**
 * Event Registration Frontend Styles v2.0
 */

/* Event Registration Form */
.event-registration-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-registration-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Form Fields */
.form-row {
    margin-bottom: 15px;
}

.form-row.form-row-half {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.form-row.form-row-half:first-child {
    margin-right: 4%;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-row label.required:after {
    content: " *";
    color: #dc3232;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

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

/* Email Status Indicators */
.form-row input.email-available {
    border-color: #46b450;
    background-color: #f7fff7;
}

.form-row input.email-taken {
    border-color: #dc3232;
    background-color: #fff7f7;
}

.email-status {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.email-status.error {
    background: #dc3232;
    color: white;
}

.email-status.success {
    background: #46b450;
    color: white;
}

/* Messages */
.registration-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

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

.registration-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #b8daff;
}

/* Submit Button */
.event-registration-form [type="submit"] {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.event-registration-form [type="submit"]:hover:not(:disabled) {
    background: #005a87;
}

.event-registration-form [type="submit"]:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Event Stats */
.event-stats {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.event-stats h4 {
    margin-top: 0;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Registration Status */
.registration-status {
    text-align: center;
    margin: 15px 0;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.full {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1c6c9;
}

/* Progress Bar */
.registration-progress {
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-fill.low {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.progress-fill.medium {
    background: linear-gradient(90deg, #ffc107, #ffcd39);
}

.progress-fill.high {
    background: linear-gradient(90deg, #fd7e14, #ff8c42);
}

.progress-fill.full {
    background: linear-gradient(90deg, #dc3545, #e55353);
}

.progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .event-registration-form {
        padding: 15px;
        margin: 10px;
    }
    
    .form-row.form-row-half {
        width: 100%;
        display: block;
        margin-right: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .event-registration-form,
    .event-stats {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .event-registration-form h3,
    .event-stats h4 {
        color: #fff;
        border-color: #0073aa;
    }
    
    .form-row input,
    .form-row select,
    .form-row textarea {
        background: #1a1a1a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-row label {
        color: #e0e0e0;
    }
    
    .stat-item {
        background: #1a1a1a;
        border-color: #444;
    }
    
    .progress-bar {
        background: #444;
    }
}