/**
 * Vacation Rental Booking Form - Styles
 */

.vrb-booking-form-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.vrb-form-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vrb-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: #333;
    text-align: center;
}

/* Form Groups */
.vrb-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.vrb-form-row {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}

.vrb-form-col {
    flex: 1;
    min-width: 0;
}

/* Labels */
.vrb-form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.vrb-form-group label .required {
    color: #dc3545;
    margin-left: 2px;
}

/* Form Inputs */
.vrb-form-group input[type="text"],
.vrb-form-group input[type="email"],
.vrb-form-group input[type="date"],
.vrb-form-group input[type="number"],
.vrb-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vrb-form-group input[type="text"]:focus,
.vrb-form-group input[type="email"]:focus,
.vrb-form-group input[type="date"]:focus,
.vrb-form-group input[type="number"]:focus,
.vrb-form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.vrb-form-group input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Checkboxes */
.vrb-checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.vrb-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin: 0;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    cursor: pointer;
    flex-wrap: wrap;
}

.vrb-checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: auto;
    min-width: 18px;
}

.vrb-cleaning-fee-display {
    font-weight: 600;
    color: #27ae60;
    font-size: 0.95rem;
    white-space: nowrap;
}

.vrb-checkbox-group .vrb-help-text {
    margin-left: 1.5rem;
    display: block;
    font-size: 0.85rem;
}

/* Help Text */
.vrb-help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    display: block;
}

/* Price Breakdown */
.vrb-price-breakdown {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.vrb-price-breakdown h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.vrb-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
}

.vrb-price-item + .vrb-price-item {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.75rem;
}

.vrb-price-total {
    border-top: 2px solid #333;
    padding-top: 1rem !important;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.vrb-price-value {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Status Messages */
.vrb-availability-status {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-weight: 500;
    display: none;
}

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

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

.vrb-status-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form Messages */
.vrb-form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: none;
}

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

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

.vrb-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Buttons */
.vrb-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.vrb-btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.vrb-btn-primary:hover:not(:disabled) {
    background-color: #0052a3;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.vrb-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

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

    .vrb-form-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .vrb-form-col + .vrb-form-col {
        margin-top: 1rem;
    }

    .vrb-price-breakdown {
        padding: 1rem;
    }

    .vrb-price-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vrb-booking-form-container {
        margin: 1rem auto;
        padding: 0;
    }

    .vrb-form-wrapper {
        border-radius: 0;
        padding: 1rem;
    }

    .vrb-form-wrapper h2 {
        font-size: 1.3rem;
    }

    .vrb-btn {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vrb-form-wrapper {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }

    .vrb-form-wrapper h2 {
        color: #e0e0e0;
    }

    .vrb-form-group label {
        color: #e0e0e0;
    }

    .vrb-form-group input[type="text"],
    .vrb-form-group input[type="email"],
    .vrb-form-group input[type="date"],
    .vrb-form-group input[type="number"],
    .vrb-form-group select {
        background-color: #3a3a3a;
        border-color: #555;
        color: #e0e0e0;
    }

    .vrb-form-group input:disabled {
        background-color: #2a2a2a;
        color: #888;
    }

    .vrb-price-breakdown {
        background: #3a3a3a;
        border-color: #555;
    }

    .vrb-price-item {
        color: #bbb;
    }

    .vrb-price-total {
        border-top-color: #e0e0e0;
        color: #e0e0e0;
    }

    .vrb-price-value {
        color: #e0e0e0;
    }

    .vrb-cleaning-fee-display {
        color: #4caf50;
    }
}
