/* BookWise Calendar Frontend Styles */

.bwc-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.bwc-booking-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bwc-form-section {
    margin-bottom: 30px;
}

.bwc-form-section h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.bwc-form-section h4 {
    margin: 0 0 20px 0;
    color: #555;
    font-size: 18px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.bwc-resource-description {
    color: #666;
    margin-bottom: 20px;
}

.bwc-form-row {
    margin-bottom: 20px;
}

.bwc-form-row label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.bwc-form-row input[type="text"],
.bwc-form-row input[type="email"],
.bwc-form-row input[type="tel"],
.bwc-form-row input[type="number"],
.bwc-form-row textarea,
.bwc-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bwc-form-row input:focus,
.bwc-form-row textarea:focus,
.bwc-form-row select:focus {
    outline: none;
    border-color: #007cba;
}

.bwc-form-row textarea {
    resize: vertical;
}

.bwc-form-row .required {
    color: #e74c3c;
}

/* Calendar Section */
.bwc-calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.bwc-date-picker {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>') no-repeat right 10px center;
    background-size: 20px;
    cursor: pointer;
}

/* Price Section */
.bwc-price-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.bwc-price-display h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.bwc-price-details {
    font-size: 16px;
}

.bwc-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.bwc-price-row.bwc-price-total {
    border-top: 2px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

.bwc-price-label {
    color: #666;
}

.bwc-price-value {
    color: #333;
}

/* Submit Section */
.bwc-submit-section {
    margin-top: 30px;
    text-align: center;
}

.bwc-submit-button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.bwc-submit-button:hover {
    background: #005a87;
}

.bwc-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bwc-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

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

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

/* Availability Calendar */
.bwc-availability-calendar {
    margin: 30px 0;
}

.bwc-availability-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bwc-month {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.bwc-month h4 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #333;
}

.bwc-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.bwc-calendar-table th,
.bwc-calendar-table td {
    text-align: center;
    padding: 8px;
    width: 14.28%;
}

.bwc-calendar-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #666;
    font-size: 12px;
}

.bwc-calendar-table td {
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: default;
}

.bwc-calendar-table td.booked {
    background: #ffebee;
    color: #c62828;
}

.bwc-calendar-table td.unavailable {
    background: #f5f5f5;
    color: #999;
}

.bwc-calendar-table td.past {
    color: #ccc;
}

.bwc-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bwc-legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.bwc-legend-box {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    border: 1px solid #ddd;
}

.bwc-legend-box.available {
    background: #fff;
}

.bwc-legend-box.booked {
    background: #ffebee;
}

.bwc-legend-box.unavailable {
    background: #f5f5f5;
}

/* Resources Grid */
.bwc-resource-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.bwc-resource-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bwc-resource-card h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.bwc-resource-card p {
    color: #666;
    margin-bottom: 15px;
}

.bwc-resource-price {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
    margin-bottom: 10px;
}

.bwc-resource-capacity {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.bwc-book-now-btn {
    display: inline-block;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s;
}

.bwc-book-now-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bwc-booking-form-container {
        padding: 10px;
    }

    .bwc-booking-form {
        padding: 20px;
    }

    .bwc-calendar-container {
        grid-template-columns: 1fr;
    }

    .bwc-availability-months {
        grid-template-columns: 1fr;
    }

    .bwc-resources-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Flatpickr Calendar Overrides */
.flatpickr-calendar {
    box-shadow: 0 3px 13px rgba(0,0,0,0.08);
}

.flatpickr-day.selected {
    background: #007cba;
    border-color: #007cba;
}

.flatpickr-day.disabled {
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed;
}