/* Event Registration - Public Styles */

.ers-registration-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ers-event-title {
    margin: 0 0 5px;
    color: #1a1a2e;
}

.ers-event-date {
    color: #666;
    margin-bottom: 25px;
}

.ers-form-group {
    margin-bottom: 20px;
}

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

.ers-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ers-form-row .ers-form-group {
    flex: 1;
    min-width: 200px;
}

.ers-col-2 { flex: 0 0 80px !important; min-width: 80px !important; }
.ers-col-6 { flex: 3 !important; }

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

.ers-form input:focus,
.ers-form select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.ers-form input.valid {
    border-color: #28a745;
}

.ers-form input.invalid {
    border-color: #dc3545;
}

.ers-field-hint {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.ers-field-hint.valid { color: #28a745; }
.ers-field-hint.invalid { color: #dc3545; }

.ers-radio-group {
    display: flex;
    gap: 20px;
}

.ers-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.ers-radio input {
    width: auto;
    margin: 0;
}

.ers-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.ers-checkbox input {
    width: auto;
    margin-top: 3px;
}

.ers-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ers-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

#ers-form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

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

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

/* Success message */
#ers-success-message {
    text-align: center;
    padding: 40px 20px;
}

.ers-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 40px;
    line-height: 80px;
    margin: 0 auto 20px;
}

.ers-code-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 18px;
}

/* Company fields */
#ers-company-fields {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

#ers-company-fields h4 {
    margin: 0 0 15px;
    color: #1a1a2e;
}

/* Event list */
.ers-event-list {
    display: grid;
    gap: 20px;
}

.ers-event-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ers-event-card h3 {
    margin: 0 0 10px;
    color: #1a1a2e;
}

.ers-event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #666;
}

.ers-registration-open {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

/* Notices */
.ers-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ers-notice-info { background: #d1ecf1; color: #0c5460; }
.ers-notice-warning { background: #fff3cd; color: #856404; }
.ers-notice-error { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 600px) {
    .ers-registration-form-wrapper {
        padding: 20px 15px;
    }
    
    .ers-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ers-form-row .ers-form-group {
        min-width: 100%;
    }
    
    .ers-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
