/* Booking Form Container */
.rbs-booking-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Form Header */
.rbs-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.rbs-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #2c3e50;
}

.rbs-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Notice */
.rbs-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.rbs-notice-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Form Sections */
.rbs-form-section {
    margin-bottom: 35px;
}

.rbs-section-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Form Rows and Groups */
.rbs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.rbs-form-group {
    flex: 1;
}

.rbs-col-6 {
    flex: 0 0 calc(50% - 10px);
}

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

.rbs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.rbs-form-group input[type="text"],
.rbs-form-group input[type="email"],
.rbs-form-group input[type="tel"],
.rbs-form-group input[type="number"],
.rbs-form-group input[type="date"],
.rbs-form-group select,
.rbs-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.rbs-form-group input:focus,
.rbs-form-group select:focus,
.rbs-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.required {
    color: #e74c3c;
}

.rbs-field-description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Price Section */
.rbs-price-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.rbs-price-section .rbs-section-title {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.rbs-price-breakdown {
    margin-top: 20px;
}

.rbs-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.rbs-price-row:last-child {
    border-bottom: none;
}

.rbs-price-label {
    font-size: 16px;
}

.rbs-price-value {
    font-size: 18px;
    font-weight: 600;
}

.rbs-total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,255,255,0.5) !important;
}

.rbs-total-row .rbs-price-label {
    font-size: 20px;
    font-weight: bold;
}

.rbs-total-row .rbs-total {
    font-size: 28px;
    font-weight: bold;
    color: #ffd700;
}

/* Buttons */
.rbs-button {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.rbs-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.rbs-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.rbs-button-secondary {
    background: #3498db;
    color: white;
}

.rbs-button-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.rbs-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Messages */
.rbs-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rbs-message-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.rbs-message-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Success Box */
.rbs-success-box {
    text-align: center;
    padding: 60px 40px;
}

.rbs-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.rbs-success-box h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.rbs-success-box p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.rbs-quote-number {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 18px;
}

.rbs-quote-number strong {
    color: #667eea;
    font-size: 22px;
}

/* Autocomplete Styling */
.pac-container {
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pac-item {
    padding: 12px;
    cursor: pointer;
    border-top: 1px solid #e0e0e0;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rbs-booking-form-container {
        padding: 30px 20px;
        margin: 20px auto;
    }

    .rbs-form-header h2 {
        font-size: 26px;
    }

    .rbs-form-row {
        flex-direction: column;
        gap: 0;
    }

    .rbs-col-6 {
        flex: 0 0 100%;
    }

    .rbs-section-title {
        font-size: 18px;
    }

    .rbs-button {
        width: 100%;
        margin: 10px 0;
    }

    .rbs-price-label,
    .rbs-price-value {
        font-size: 14px;
    }

    .rbs-total-row .rbs-price-label {
        font-size: 16px;
    }

    .rbs-total-row .rbs-total {
        font-size: 22px;
    }

    .rbs-success-box {
        padding: 40px 20px;
    }

    .rbs-success-box h3 {
        font-size: 22px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rbs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

/* Print Styles */
@media print {
    .rbs-button {
        display: none;
    }
}
