/**
 * Estilos para el formulario de reserva de citas paso a paso.
 *
 * @since      1.0.0
 * @package    Booking_Date
 */

/* Estilos para el formulario de reserva paso a paso
 * 
 * Estructurado en secciones:
 * 1. Estilos generales
 * 2. Indicadores de paso
 * 3. Pasos del formulario
 * 4. Selección de servicios
 * 5. Selección de fecha y hora
 * 6. Datos personales
 * 7. Resumen y pago
 * 8. Mensajes y notificaciones 
 * 9. Responsive
 */

/* 1. Estilos generales */
:root {
    --primary-color: #b9180e;
    --primary-dark: #770d06;
    --primary-light: #f01f10;
    --text-color: #333333;
    --accent-color: #FF9800;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --error-color: #f44336;
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --transition-time: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.booking-form-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.booking-form-container * {
    box-sizing: border-box;
}

h2 {
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
}

h3 {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: all var(--transition-time);
    margin-bottom: 10px;
    background-color: #ffffff;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

button {
    cursor: pointer;
    transition: all var(--transition-time);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    outline: none;
    text-align: center;
    display: inline-block;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 2. Indicadores de paso */
.booking-steps {
    margin-bottom: 30px;
}

.booking-steps ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
}

.booking-steps ul::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.booking-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 20%;
    position: relative;
    z-index: 2;
    padding: 0 10px;
}

.booking-steps li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
    transition: all var(--transition-time);
}

.booking-steps li div {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
    transition: all var(--transition-time);
}

.booking-steps li.active span {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.booking-steps li.active div {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 600;
}

/* 3. Pasos del formulario */
.booking-step {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.prev-step {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.prev-step:hover {
    background-color: #e0e0e0;
}

.next-step, .submit-booking {
    background-color: var(--primary-color);
    color: white;
}

.next-step:hover, .submit-booking:hover {
    background-color: var(--primary-dark);
}

/* 4. Selección de servicios */
.booking-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-time);
    position: relative;
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.service-image {
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-time);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-details {
    padding: 20px;
}

.service-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary-dark);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
    font-size: 15px;
}

.service-price {
    font-weight: 600;
    color: var(--primary-color);
}

.service-duration {
    color: #757575;
}

.service-description {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.select-service-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-time);
}

.select-service-btn:hover {
    background-color: var(--primary-dark);
}

.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: #666;
}

/* 5. Selección de fecha y hora */
.date-time-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
    
}

.date-picker-container, .time-slots-container {
    flex: 1;
    min-width: 300px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
}

.flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
}

.flatpickr-day {
    border-radius: var(--border-radius) !important;
}

.flatpickr-day.selected {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.flatpickr-day:hover {
    background-color: var(--primary-light) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-color) !important;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-time);
    font-weight: 500;
    text-align: center;
}

.time-slot:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
}

.time-slot.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.select-date-message, .loading-message {
    padding: 30px 15px;
    text-align: center;
    color: #666;
}

.loading-message {
    position: relative;
    padding-top: 50px;
}

.loading-message:before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    position: absolute;
    top: 15px;
    left: 50%;
    margin-left: -15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 6. Datos personales */
.personal-info {
    padding: 20px;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.form-group {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
}

.form-group.full-width {
    flex: 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

/* 7. Resumen y pago */
.booking-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.summary-section {
    flex: 1;
    min-width: 250px;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: var(--text-color);
}

.summary-value {
    font-weight: 600;
    color: var(--primary-dark);
}

.payment-section {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.terms-checkbox label {
    font-size: 14px;
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* Paso 5: Confirmación */
.confirmation-message {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--primary-light);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.confirmation-message p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.final-confirmation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.confirm-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: all var(--transition-time);
}

.confirm-item:hover {
    transform: translateX(5px);
    background-color: var(--primary-light);
}

.confirm-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
}

.confirm-text {
    font-weight: 500;
}

.submit-booking {
    background-color: var(--accent-color);
    margin-left: auto;
    font-size: 18px;
    padding: 15px 30px;
}

.submit-booking:hover {
    background-color: #F57C00;
}

/* 8. Mensajes y notificaciones */
.booking-messages {
    margin-bottom: 30px;
}

.booking-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 50px;
}

.booking-message:before {
    content: '';
    position: absolute;
    left: 15px;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.booking-message.error {
    background-color: #FFEBEE;
    color: var(--error-color);
    border: 1px solid #FFCDD2;
}

.booking-message.error:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

.booking-message.success {
    background-color: #E8F5E9;
    color: var(--success-color);
    border: 1px solid #C8E6C9;
}

.booking-message.success:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.booking-message.info {
    background-color: #E3F2FD;
    color: var(--info-color);
    border: 1px solid #BBDEFB;
}

.booking-message.info:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196F3'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* 9. Responsive */
@media (max-width: 991px) {
    .booking-form-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .booking-services {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .booking-steps li div {
        display: none;
    }
    
    .booking-steps ul::before {
        top: 20px;
    }
    
    .booking-services {
        grid-template-columns: 1fr;
    }
    
    .date-time-container {
        flex-direction: column;
    }
    
    .form-group {
        flex: 100%;
        min-width: 100%;
    }
    
    .booking-summary {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .booking-form-container {
        padding: 15px;
        margin: 15px auto;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .booking-steps {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .booking-steps ul {
        min-width: 500px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-step, .next-step, .submit-booking {
        width: 100%;
    }
    
    .service-image {
        height: 150px;
    }
} 