/* =============================================
   Reserva Andalucía — Formulario de Huéspedes
   ============================================= */

/* --- Sección principal --- */
#ra-huespedes-section {
    margin: 30px 0;
}

.ra-huespedes-title {
    font-size: 20px;
    margin-bottom: 6px;
    color: #2c3e50;
    border-bottom: 2px solid #d4a843;
    padding-bottom: 10px;
}

.ra-huespedes-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Indicador de estado --- */
.ra-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ra-status--pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.ra-status--complete {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ra-status-icon {
    margin-right: 6px;
}

/* --- Bloques de reserva y huésped --- */
.ra-reserva-block {
    margin-bottom: 28px;
}

.ra-reserva-title {
    font-size: 16px;
    font-weight: 600;
    color: #444;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #e8f4f8;
    border-left: 4px solid #2980b9;
    border-radius: 0 4px 4px 0;
}

.ra-huesped-block {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 14px;
}

.ra-huesped-numero {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

/* --- Campos del formulario --- */
.ra-field-wrap {
    margin-bottom: 12px;
}

.ra-field-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 4px;
}

.ra-field-wrap input,
.ra-field-wrap select {
    width: 100%;
    max-width: 380px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.ra-field-wrap input:focus,
.ra-field-wrap select:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.15);
}

.ra-field-wrap input.ra-field-error,
.ra-field-wrap select.ra-field-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

/* Grid de 2 columnas en pantallas grandes */
@media (min-width: 768px) {
    .ra-huesped-block {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
    }

    .ra-huesped-numero {
        grid-column: 1 / -1;
    }
}

/* --- Acciones del formulario --- */
.ra-form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ra-save-btn {
    background: #2980b9 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: background 0.2s;
}

.ra-save-btn:hover {
    background: #2471a3 !important;
}

.ra-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Feedback de guardado --- */
.ra-save-feedback {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
}

.ra-feedback--success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.ra-feedback--warning {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.ra-feedback--error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* --- Caja informativa azul (Thank You page) --- */
.ra-info-box {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    padding: 20px 24px;
    background: #e8f4fd;
    border: 1px solid #b3d9f2;
    border-left: 4px solid #2980b9;
    border-radius: 6px;
}

.ra-info-box__icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

.ra-info-box__content {
    flex: 1;
}

.ra-info-box__title {
    display: block;
    font-size: 16px;
    color: #1a5276;
    margin-bottom: 6px;
}

.ra-info-box__content p {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.ra-info-box__btn {
    display: inline-block;
    padding: 10px 22px;
    background: #2980b9;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.ra-info-box__btn:hover {
    background: #2471a3;
}

/* --- Tabla de huéspedes (admin/read-only) --- */
.ra-huespedes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 16px;
}

.ra-huespedes-table th,
.ra-huespedes-table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
}

.ra-huespedes-table thead th {
    background: #f5f5f5;
    font-weight: 600;
}

.ra-huespedes-table tbody tr:nth-child(even) {
    background: #fafafa;
}
