/* Hotel Intelligence - Frontend Reservation Widget */
.hotelia-form-wrapper {
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    color: #1e293b;
    position: relative;
}

.hotelia-form-wrapper *,
.hotelia-form-wrapper *::before,
.hotelia-form-wrapper *::after {
    box-sizing: inherit;
}

.hotelia-widget-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.hotelia-widget-subtitle {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.hotelia-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .hotelia-form-grid {
        grid-template-columns: 1fr;
    }
}

.hotelia-form-field {
    display: flex;
    flex-direction: column;
}

.hotelia-col-full {
    grid-column: 1 / -1;
}

.hotelia-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.hotelia-form-field input[type="text"],
.hotelia-form-field input[type="email"],
.hotelia-form-field input[type="tel"],
.hotelia-form-field input[type="date"],
.hotelia-form-field select,
.hotelia-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hotelia-form-field input:focus,
.hotelia-form-field select:focus,
.hotelia-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hotelia-price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    border-left: 4px solid #2563eb;
}

.hotelia-price-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.hotelia-price-val {
    font-size: 18px;
    color: #0f172a;
}

.hotelia-price-val strong {
    font-size: 22px;
    color: #2563eb;
}

.hotelia-form-terms {
    margin-bottom: 20px;
    font-size: 13px;
    color: #64748b;
}

.hotelia-form-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.hotelia-form-terms input[type="checkbox"] {
    margin-top: 3px;
}

.hotelia-submit-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hotelia-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hotelia-form-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.hotelia-alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.hotelia-alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Spinner animado */
.spinner-svg {
    animation: rotate 2s linear infinite;
    width: 22px;
    height: 22px;
}

.spinner-svg .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}
