/**
 * OtaSync Booking Widget - Estilos CSS
 * Version: 2.0.0
 * Estilos mínimos necesarios para el widget standalone
 */

/* Reset básico para el widget */
.otasync-booking-engine * {
    box-sizing: border-box;
}

.otasync-booking-engine {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.otasync-booking-form {
    background: transparent;
    padding: 20px;
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -8px;
    margin-left: -8px;
}

.row.g-2>* {
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 16px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md {
    flex: 1 1 0%;
    min-width: 0;
}

/* Vista vertical */
.vertical-view .col-md {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Form groups */
.form-group {
    margin-bottom: 0;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form controls */
.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.form-control:focus {
    color: #000;
    background-color: #fff;
    border-color: #D4AF37;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    color: #fff;
    background-color: #D4AF37;
    border-color: #D4AF37;
}

.btn.w-100 {
    width: 100%;
}

/* Alineación */
.d-flex {
    display: flex !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.w-100 {
    width: 100% !important;
}

/* Input number - ocultar spinners en algunos navegadores */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .col-md {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .otasync-booking-form {
        padding: 15px;
    }

    .form-control {
        font-size: 16px;
        /* Prevenir zoom en iOS */
    }
}

/* Animación de carga */
@keyframes otasync-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.otasync-loading {
    animation: otasync-pulse 1.5s ease-in-out infinite;
}

/* Fixed bottom */
.otasync-booking-engine.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    margin: 0;
}

/* Mejoras de accesibilidad */
.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Estilos para inputs de fecha */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: opacity(1);
}