/**
 * WooReserve Pro Frontend Styles
 */

/* Booking Form Styles */
.wrp-booking-form {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.wrp-booking-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* Date Fields */
.wrp-booking-dates {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wrp-date-field {
    flex: 1;
}

.wrp-date-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wrp-datepicker {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.wrp-datepicker:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.wrp-datepicker {
    cursor: pointer;
}

/* jQuery UI Datepicker Overrides */
.ui-datepicker {
    z-index: 99999 !important;
    font-size: 14px;
}

.ui-datepicker-header {
    background: #0073aa !important;
    color: white !important;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    color: white !important;
}

.ui-datepicker .ui-state-default {
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
}

.ui-datepicker .ui-state-default:hover {
    background: #0073aa;
    color: white;
}

.ui-datepicker .ui-state-active {
    background: #0073aa;
    color: white;
}

/* Time Selection */
.wrp-time-selection {
    margin-bottom: 15px;
}

.wrp-time-selection label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wrp-time-selection select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

/* Duration Field */
.wrp-duration-field {
    margin-bottom: 15px;
}

.wrp-duration-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wrp-duration-field input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

/* Locations */
.wrp-locations {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wrp-location-field {
    flex: 1;
}

.wrp-location-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wrp-location-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

/* Extras */
.wrp-booking-extras {
    margin-bottom: 15px;
}

.wrp-booking-extras h4 {
    margin-bottom: 10px;
    color: #333;
}

.wrp-extra-item {
    margin-bottom: 8px;
}

.wrp-extra-item label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.wrp-extra-item input[type="checkbox"] {
    margin-right: 8px;
}

.wrp-extra-price {
    margin-left: auto;
    font-weight: bold;
    color: #0073aa;
}

/* Special Requests */
.wrp-special-requests {
    margin-bottom: 15px;
}

.wrp-special-requests label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.wrp-special-requests textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    resize: vertical;
}

/* Payment Options */
.wrp-payment-options {
    margin-bottom: 15px;
}

.wrp-payment-options h4 {
    margin-bottom: 10px;
    color: #333;
}

.wrp-payment-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.wrp-payment-options input[type="radio"] {
    margin-right: 8px;
}

/* Price Display */
.wrp-price-display {
    background: #fff;
    padding: 15px;
    border: 1px solid #0073aa;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wrp-total-price {
    font-size: 18px;
    margin-bottom: 10px;
}

.wrp-deposit-info {
    font-size: 14px;
    color: #666;
}

.wrp-deposit-info div {
    margin-bottom: 5px;
}

/* Required field indicator */
.required {
    color: #e74c3c;
}

/* Loading states */
.wrp-calculating {
    opacity: 0.6;
}

/* Cart Display */
.wrp-booking-dates {
    font-style: italic;
    color: #666;
    font-size: 12px;
}

.wrp-remaining-balance {
    color: #e74c3c;
    font-style: italic;
}

.wrp-booking-indicator {
    background: #0073aa;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wrp-booking-dates,
    .wrp-locations {
        flex-direction: column;
        gap: 10px;
    }
    
    .wrp-booking-form {
        padding: 15px;
    }
}

/* Datepicker Customization */
.ui-datepicker {
    font-size: 12px;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: bold;
}

.ui-datepicker td.ui-datepicker-today a {
    background: #0073aa;
    color: white;
}

.ui-datepicker td.ui-datepicker-current-day a {
    background: #e74c3c;
    color: white;
}

.ui-datepicker .ui-state-disabled {
    opacity: 0.3;
}

/* Error Messages */
.woocommerce-error,
.woocommerce-notice {
    margin-bottom: 15px;
}

/* Booking Button Styling */
.wrp-booking-button {
    margin: 20px 0;
    text-align: center;
}

.wrp-book-now-button {
    background: #0073aa !important;
    color: white !important;
    font-weight: bold;
    padding: 15px 30px !important;
    border-radius: 5px;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.wrp-book-now-button:hover:not(:disabled) {
    background: #005a87 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.wrp-book-now-button:disabled,
.wrp-book-now-button.disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.wrp-book-now-button:disabled:hover,
.wrp-book-now-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* General Button Styling */
.single_add_to_cart_button {
    background: #0073aa !important;
    color: white !important;
    font-weight: bold;
    padding: 12px 24px !important;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.single_add_to_cart_button:hover {
    background: #005a87 !important;
}

/* Checkout Booking Summary */
.wrp-checkout-booking-summary {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.wrp-checkout-booking-summary h3 {
    margin-top: 0;
    color: #333;
}

.wrp-booking-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wrp-booking-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wrp-booking-item h4 {
    margin-bottom: 8px;
    color: #333;
}

.booking-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.wrp-deposit-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 3px;
    margin-top: 15px;
}

.wrp-deposit-notice p {
    margin: 0;
    color: #856404;
}
