:root {
    --rha-primary: #ff5a3c;
    --rha-primary-hover: #e04427;
    --rha-dark: #1a202c;
    --rha-dark-light: #2d3748;
    --rha-gray-100: #f7fafc;
    --rha-gray-200: #edf2f7;
    --rha-gray-300: #e2e8f0;
    --rha-gray-600: #4a5568;
    --rha-success: #38a169;
    --rha-error: #e53e3e;
    --rha-radius: 12px;
    --rha-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --rha-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --rha-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rha-booking-wrapper {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--rha-gray-100);
    padding: 60px 0;
    min-height: 100vh;
}

.rha-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rha-booking-header {
    text-align: center;
    margin-bottom: 50px;
}

.rha-booking-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rha-dark);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--rha-dark) 30%, var(--rha-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rha-booking-subtitle {
    font-size: 1.1rem;
    color: var(--rha-gray-600);
}

.rha-booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .rha-booking-grid {
        grid-template-columns: 7fr 5fr;
    }
}

.rha-booking-main-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--rha-radius);
    padding: 40px;
    box-shadow: var(--rha-shadow);
}

.rha-booking-section {
    margin-bottom: 40px;
}

.rha-booking-section:last-child {
    margin-bottom: 0;
}

.rha-booking-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--rha-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rha-gray-200);
}

.rha-booking-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .rha-booking-row {
        grid-template-columns: 1fr 1fr;
    }
}

.rha-booking-field {
    margin-bottom: 20px;
    position: relative;
}

.rha-booking-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rha-dark-light);
    margin-bottom: 8px;
}

.rha-booking-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid var(--rha-gray-300);
    background-color: #fff;
    color: var(--rha-dark);
    transition: var(--rha-transition);
    box-sizing: border-box;
}

.rha-booking-input:focus {
    outline: none;
    border-color: var(--rha-primary);
    box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.15);
}

.rha-booking-input:disabled,
.rha-booking-input[readonly] {
    background-color: var(--rha-gray-200);
    color: var(--rha-gray-600);
    cursor: not-allowed;
    border-color: var(--rha-gray-300);
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
}

.textarea-field {
    height: 120px;
    resize: vertical;
    font-family: inherit;
}

.rha-field-error {
    font-size: 0.8rem;
    color: var(--rha-error);
    margin-top: 6px;
    display: none;
}

.rha-booking-field.has-error .rha-booking-input {
    border-color: var(--rha-error);
}

.rha-booking-field.has-error .rha-field-error {
    display: block;
}

.rha-booking-sidebar-panel {
    position: sticky;
    top: 40px;
}

.rha-booking-sidebar-card {
    background: #fff;
    border-radius: var(--rha-radius);
    overflow: hidden;
    box-shadow: var(--rha-shadow-lg);
    border: 1px solid var(--rha-gray-300);
    position: relative;
}

.rha-booking-trip-preview {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rha-booking-trip-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0));
    color: #fff;
}

.rha-booking-trip-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #fff;
}

.rha-booking-trip-duration {
    font-size: 0.85rem;
    background: var(--rha-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.rha-booking-summary-content {
    padding: 30px;
}

.rha-booking-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--rha-dark);
    margin: 0 0 20px 0;
}

.rha-price-breakdown {
    margin-bottom: 25px;
}

.rha-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--rha-gray-600);
}

.rha-discount-badge {
    background-color: rgba(56, 161, 105, 0.15);
    color: var(--rha-success);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.rha-price-divider {
    height: 1px;
    background-color: var(--rha-gray-200);
    margin: 18px 0;
}

.rha-price-row.total {
    font-size: 1.1rem;
    color: var(--rha-dark);
    font-weight: 700;
}

.rha-price-row.total strong {
    font-size: 1.5rem;
    color: var(--rha-primary);
}

.rha-booking-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--rha-primary), var(--rha-primary-hover));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--rha-transition);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 90, 60, 0.3);
}

.rha-booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 60, 0.4);
}

.rha-booking-submit-btn:active {
    transform: translateY(0);
}

.rha-booking-submit-btn:disabled {
    background: var(--rha-gray-300);
    color: var(--rha-gray-600);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rha-spin 0.8s infinite linear;
}

.rha-booking-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--rha-radius);
    transition: var(--rha-transition);
}

.rha-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid var(--rha-gray-200);
    border-top-color: var(--rha-primary);
    border-radius: 50%;
    animation: rha-spin 1s infinite linear;
}

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

.rha-booking-form-message {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.rha-booking-form-message.success {
    display: block;
    background-color: rgba(56, 161, 105, 0.1);
    border: 1px solid var(--rha-success);
    color: var(--rha-success);
}

.rha-booking-form-message.error {
    display: block;
    background-color: rgba(229, 62, 62, 0.1);
    border: 1px solid var(--rha-error);
    color: var(--rha-error);
}
