/* Estilos para el Sistema de Reservas de Clases de Español */

/* Contenedores principales */
.scb-demo-form-container,
.scb-booking-form-container,
.scb-my-bookings {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Formularios */
.scb-form {
    margin-top: 20px;
}

.scb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.scb-form-row .scb-form-group:only-child {
    grid-column: 1 / -1;
}

.scb-form-group {
    display: flex;
    flex-direction: column;
}

.scb-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.scb-form-group input,
.scb-form-group select,
.scb-form-group textarea {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.scb-form-group input:focus,
.scb-form-group select:focus,
.scb-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.scb-form-group small {
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.scb-class-description {
    display: block;
    margin-top: 8px;
    padding: 10px;
    background: #f5f5f5;
    border-left: 3px solid #0073aa;
    font-size: 14px;
    line-height: 1.5;
}

/* Resumen de precio */
.scb-price-summary {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #46b450;
}

.scb-price-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.scb-price-summary p {
    margin: 5px 0;
    font-size: 16px;
}

#total_price {
    color: #46b450;
    font-weight: 700;
    font-size: 20px;
}

/* Botones */
.scb-btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.scb-btn-primary {
    background: #0073aa;
    color: #fff;
}

.scb-btn-primary:hover {
    background: #005177;
    color: #fff;
}

.scb-form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Mensajes */
.scb-form-message {
    margin-top: 20px;
}

.scb-success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.scb-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Mis Reservas */
.scb-bookings-list {
    margin-top: 30px;
}

.scb-booking-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.scb-booking-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scb-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.scb-booking-header h3 {
    margin: 0;
    color: #333;
}

.scb-status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.scb-status-pending .scb-status-badge {
    background: #fff3cd;
    color: #856404;
}

.scb-status-confirmed .scb-status-badge {
    background: #d4edda;
    color: #155724;
}

.scb-status-completed .scb-status-badge {
    background: #d1ecf1;
    color: #0c5460;
}

.scb-status-cancelled .scb-status-badge {
    background: #f8d7da;
    color: #721c24;
}

.scb-booking-details p {
    margin: 8px 0;
    color: #555;
}

.scb-booking-details strong {
    color: #333;
}

.scb-booking-details a {
    color: #0073aa;
    text-decoration: none;
}

.scb-booking-details a:hover {
    text-decoration: underline;
}

/* Login Required */
.scb-login-required {
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.scb-login-required p {
    margin: 10px 0;
    font-size: 16px;
}

.scb-login-required a {
    color: #0073aa;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .scb-form-row {
        grid-template-columns: 1fr;
    }
    
    .scb-demo-form-container,
    .scb-booking-form-container,
    .scb-my-bookings {
        padding: 20px;
    }
    
    .scb-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading state */
.scb-form button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Select mejorado */
.scb-form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%225%22%20viewBox%3D%220%200%2010%205%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200l5%205%205-5z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 40px;
}

.scb-form-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}
