/* File: assets/css/frontend.css */

/* ===================================
   BOOKING FORM CONTAINER
   =================================== */
.rrs-booking-form-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rrs-form-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.rrs-form-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* ===================================
   FORM LAYOUT
   =================================== */
.rrs-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rrs-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rrs-form-group {
    display: flex;
    flex-direction: column;
}

.rrs-form-group.full-width {
    grid-column: 1 / -1;
}

.rrs-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.rrs-form-group label .required {
    color: #e74c3c;
    margin-left: 4px;
}

/* ===================================
   FORM INPUTS
   =================================== */
.rrs-form input[type="text"],
.rrs-form input[type="email"],
.rrs-form input[type="tel"],
.rrs-form input[type="number"],
.rrs-form input[type="date"],
.rrs-form input[type="time"],
.rrs-form select,
.rrs-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.rrs-form input[type="text"]:focus,
.rrs-form input[type="email"]:focus,
.rrs-form input[type="tel"]:focus,
.rrs-form input[type="number"]:focus,
.rrs-form input[type="date"]:focus,
.rrs-form input[type="time"]:focus,
.rrs-form select:focus,
.rrs-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rrs-form textarea {
    resize: vertical;
    min-height: 100px;
}

.rrs-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ===================================
   BUTTONS
   =================================== */
.rrs-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.rrs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.rrs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.rrs-btn-primary:active {
    transform: translateY(0);
}

.rrs-btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.rrs-btn-secondary:hover {
    background: #667eea;
    color: #ffffff;
}

.rrs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.rrs-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ===================================
   AVAILABILITY RESULT
   =================================== */
.rrs-availability-result {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rrs-availability-result.available {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rrs-availability-result.unavailable {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rrs-availability-result.warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* ===================================
   MESSAGES
   =================================== */
.rrs-form-messages {
    margin-top: 20px;
}

.rrs-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rrs-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.rrs-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.rrs-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ===================================
   LOADING STATE
   =================================== */
.rrs-loading {
    display: inline-block;
    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;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rrs-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===================================
   AVAILABILITY CHECKER
   =================================== */
.rrs-availability-checker {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.rrs-availability-checker h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

#rrs-availability-checker-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

#rrs-availability-checker-result.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   CAPACITY INDICATOR
   =================================== */
.rrs-capacity-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.rrs-capacity-indicator.high {
    background: #d4edda;
    color: #155724;
}

.rrs-capacity-indicator.medium {
    background: #fff3cd;
    color: #856404;
}

.rrs-capacity-indicator.low {
    background: #f8d7da;
    color: #721c24;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .rrs-booking-form-container {
        padding: 25px;
        margin: 20px 10px;
    }
    
    .rrs-form-title {
        font-size: 24px;
    }
    
    .rrs-form-row {
        grid-template-columns: 1fr;
    }
    
    .rrs-form-actions {
        flex-direction: column;
    }
    
    .rrs-btn {
        width: 100%;
    }
    
    .rrs-availability-checker {
        padding: 20px;
        margin: 20px 10px;
    }
}

/* ===================================
   DARK MODE SUPPORT
   =================================== */
@media (prefers-color-scheme: dark) {
    .rrs-booking-form-container,
    .rrs-availability-checker {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .rrs-form-title,
    .rrs-availability-checker h3 {
        color: #ffffff;
    }
    
    .rrs-form input,
    .rrs-form select,
    .rrs-form textarea {
        background: #2a2a2a;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .rrs-form input:focus,
    .rrs-form select:focus,
    .rrs-form textarea:focus {
        background: #333333;
        border-color: #667eea;
    }
    
    .rrs-form-group label {
        color: #b0b0b0;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .rrs-form-actions,
    .rrs-btn {
        display: none;
    }
    
    .rrs-booking-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}