/* Custom Event Registration - Frontend Styles */

.cer-form-container { 
    background: #fff; 
    padding: 25px; 
    margin: 25px 0; 
    border-radius: 8px; 
    border: 1px solid #e1e1e1; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.cer-toggle-section { 
    text-align: center; 
    margin-bottom: 20px; 
}

.cer-attendee-group { 
    background: #f8f9fa; 
    padding: 20px; 
    margin: 15px 0; 
    border-radius: 6px; 
    border: 1px solid #e9ecef; 
    transition: all 0.3s ease; 
}

.cer-attendee-group:hover { 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.cer-form-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
}

.cer-form-group { 
    flex: 1; 
    min-width: 200px; 
    position: relative; 
}

.cer-form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #495057; 
    font-size: 14px; 
}

.cer-form-group input, 
.cer-form-group textarea { 
    width: 100%; 
    padding: 12px 16px; 
    border: 2px solid #e9ecef; 
    border-radius: 6px; 
    box-sizing: border-box; 
    font-size: 14px; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

.cer-form-group input:focus, 
.cer-form-group textarea:focus { 
    outline: none; 
    border-color: #0097ad; 
    box-shadow: 0 0 0 3px rgba(0,151,173,0.1); 
}

.cer-form-group input.error, 
.cer-form-group textarea.error { 
    border-color: #dc3545; 
    box-shadow: 0 0 0 3px rgba(220,53,69,0.1); 
}

.cer-field-error { 
    color: #dc3545; 
    font-size: 12px; 
    margin-top: 5px; 
    font-weight: 500; 
}

.cer-form-group textarea { 
    resize: vertical; 
    min-height: 80px; 
    line-height: 1.5; 
}

.cer-btn { 
    background: #0097ad; 
    color: white; 
    padding: 12px 24px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    margin: 5px; 
    font-size: 14px; 
    font-weight: 600; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: all 0.3s ease; 
}

.cer-btn:hover { 
    background: #00b9cf; 
    color: white; 
    transform: translateY(-1px); 
    box-shadow: 0 4px 8px rgba(0,151,173,0.3); 
}

.cer-btn:disabled { 
    background: #6c757d; 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}

.cer-btn-primary { 
    font-size: 16px; 
    padding: 16px 32px; 
    font-weight: 700; 
}

.cer-btn-secondary { 
    background: #6c757d; 
}

.cer-btn-secondary:hover { 
    background: #545b62; 
}

.cer-btn-danger { 
    background: #dc3545; 
    font-size: 13px; 
    padding: 8px 12px; 
}

.cer-btn-danger:hover { 
    background: #c82333; 
}

.cer-spinner { 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    border: 2px solid rgba(255,255,255,0.3); 
    border-top: 2px solid white; 
    border-radius: 50%; 
    animation: cer-spin 1s linear infinite; 
}

@keyframes cer-spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

.cer-success { 
    background: linear-gradient(135deg,#d4edda,#c3e6cb); 
    color: #155724; 
    padding: 16px 20px; 
    border-radius: 6px; 
    margin: 15px 0; 
    border: 1px solid #c3e6cb; 
    font-weight: 500; 
}

.cer-error { 
    background: linear-gradient(135deg,#f8d7da,#f5c6cb); 
    color: #721c24; 
    padding: 16px 20px; 
    border-radius: 6px; 
    margin: 15px 0; 
    border: 1px solid #f5c6cb; 
    font-weight: 500; 
}

.cer-warning { 
    background: linear-gradient(135deg,#fff3cd,#ffeaa7); 
    color: #856404; 
    padding: 16px 20px; 
    border-radius: 6px; 
    margin: 15px 0; 
    border: 1px solid #ffeaa7; 
    font-weight: 500; 
}

.cer-success-container { 
    text-align: center; 
    padding: 40px 20px; 
    background: linear-gradient(135deg,#d4edda,#f8fff9); 
    border-radius: 8px; 
}

.cer-success-icon { 
    font-size: 48px; 
    color: #28a745; 
    margin-bottom: 20px; 
    width: 80px; 
    height: 80px; 
    background: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px auto; 
    box-shadow: 0 4px 12px rgba(40,167,69,0.2); 
}

.cer-success-container h3 { 
    color: #155724; 
    margin-bottom: 15px; 
    font-size: 24px; 
    font-weight: 700; 
}

.cer-success-container p { 
    color: #155724; 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 10px; 
}

.cer-terms-group { 
    margin: 25px 0; 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 6px; 
    border: 2px solid #e9ecef; 
    transition: border-color 0.3s ease; 
}

.cer-terms-group.error { 
    border-color: #dc3545; 
    background: #fff5f5; 
}

.cer-terms-group label { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    cursor: pointer; 
    font-size: 14px; 
    line-height: 1.5; 
    color: #495057; 
}

.cer-terms-group input[type="checkbox"] { 
    margin: 0; 
    width: 18px; 
    height: 18px; 
    accent-color: #0097ad; 
    flex-shrink: 0; 
    margin-top: 2px; 
}

/* Responsive design */
@media (max-width: 768px) { 
    .cer-form-container { 
        padding: 20px; 
        margin: 20px 0; 
    } 
    
    .cer-form-row { 
        flex-direction: column; 
        gap: 15px; 
    } 
    
    .cer-form-group { 
        min-width: auto; 
    } 
    
    .cer-btn { 
        width: 100%; 
        justify-content: center; 
        margin: 8px 0; 
    }
    
    .cer-success-container {
        padding: 30px 15px;
    }
    
    .cer-success-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
}

/* Focus management for accessibility */
.cer-form-group input:focus,
.cer-form-group textarea:focus {
    outline: 2px solid #0097ad;
    outline-offset: 2px;
}

/* Loading state */
.cer-form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animation for adding/removing attendees */
.cer-attendee-slide-in {
    animation: cer-slideIn 0.3s ease-out;
}

.cer-attendee-slide-out {
    animation: cer-slideOut 0.3s ease-out;
}

@keyframes cer-slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cer-slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}