/**
 * Estilos Frontend - Metodología BEM
 * Restaurant Booking Confirmation
 */

/* Form Wrapper */
.rbc-form-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Form */
.rbc-form {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
.rbc-header__title {
    font-size: 2.5rem !important;
    color: #fff;
    text-align: center;
    font-weight: bold;
    margin: 0;
}

.rbc-header__subtitle {
    font-size: 0.9rem !important;
    color: #fff !important;
    text-align: center;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.rbc-form__title {
    margin: 0 0 1.5rem;
    font-size: 2rem !important;
    color: #f73e92;
    text-align: center;
    font-weight: bold;
}

/* Form Messages */
.rbc-form__message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid;
}

.rbc-form__message--success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.rbc-form__message--error {
    color: #721c24;
}

.rbc-form__message[hidden] {
    display: none;
}

/* Form Fields */
.rbc-form__field {
    margin-bottom: 1.5rem;
}

.rbc-form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.rbc-form__label .required {
    color: #dc3232;
}

.rbc-form__input {
    width: 100%;
    padding: 0.75rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.rbc-form__input:focus {
    outline: none;
    border-color: #f73e92 !important;
}

/* .rbc-form__input:invalid {
    border-color: #dc3232;
} */

/* Phone Input */
.rbc-form__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rbc-form__phone-prefix {
    padding: 0.75rem;
    background: #f4f4f4;
    border: 2px solid #e5e7eb !important;
    border-radius: 4px;
}

.rbc-form__phone .rbc-form__input {
    flex: 1;
}

/* Date Input */
.rbc-form__date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rbc-form__input--date {
    width: auto;
    flex: 1;
    text-align: center;
}

.rbc-form__date-separator {
    font-weight: 600;
    color: #666;
}

/* Help Text */
.rbc-form__help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

/* Form Actions */
.rbc-form__actions {
    margin-top: 2rem;
    text-align: center;
}

.rbc-form__button {
    display: inline-block;
    padding: 1rem 2.5rem !important;
    background: #fbab17;
    color: #fbab17;
    border-radius: 4px;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    color: #0a0e0e;
    width: 100% !important;
}

.rbc-form__button:hover:not(:disabled) {
    background: #f2a312;
    box-shadow: 0 0 10px 0 rgba(242, 163, 18, 0.5);
    transform: translateY(-2px);
}

.rbc-form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rbc-form__button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .rbc-form {
        padding: 1.5rem;
    }

    .rbc-form__title {
        font-size: 1.25rem;
    }

    .rbc-form__date {
        flex-wrap: wrap;
    }

    .rbc-form__input--date {
        min-width: 80px;
    }
}

/* Loading State */
.rbc-form--loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Validation */
.rbc-form__input.error {
    border-color: #dc3232;
    background-color: #fff5f5;
}

.rbc-form__input.success {
    border-color: #46b450;
}
