/* WP Booking Frontend Styles - Matching preview.webp */

.wp-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    color: #374151;
    line-height: 1.6;
}

/* 1. Pricing Table Component */
.wp-booking-pricing-table-wrap {
    margin-bottom: 30px;
    overflow-x: auto;
}

.wp-booking-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.wp-booking-pricing-table th {
    background-color: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.wp-booking-pricing-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.wp-booking-pricing-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* 2. Calendar Section & Legend */
.wp-booking-calendar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.wp-booking-calendar-container {
    width: 280px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wp-booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
}

.wp-booking-cal-nav {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 12px;
}

.wp-booking-cal-nav:hover {
    background: #f3f4f6;
    color: #111827;
}

.wp-booking-month-select {
    font-size: 13px;
    font-weight: 600;
    padding: 2px 6px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #ffffff;
    color: #1f2937;
}

.wp-booking-calendar-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    padding: 8px;
}

.wp-booking-calendar-grid th {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    padding: 6px 0;
}

.wp-booking-calendar-grid td {
    width: 32px;
    height: 32px;
    text-align: center;
    vertical-align: middle;
    font-size: 12px;
    border-radius: 4px;
    user-select: none;
    transition: all 0.15s ease;
}

/* Day states matching preview.webp */
.wp-booking-calendar-grid td.day-available {
    background-color: #dcfce7; /* Light Green */
    color: #166534;
    cursor: pointer;
}

.wp-booking-calendar-grid td.day-available:hover {
    background-color: #bbf7d0;
    transform: scale(1.05);
}

.wp-booking-calendar-grid td.day-pending {
    background-color: #ffedd5; /* Light Orange */
    color: #9a3412;
    cursor: not-allowed;
    opacity: 0.9;
}

.wp-booking-calendar-grid td.day-booked,
.wp-booking-calendar-grid td.day-past {
    background-color: #fecdd3; /* Light Pink / Red */
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.85;
}

.wp-booking-calendar-grid td.day-selected {
    background-color: #22c55e !important;
    color: #ffffff !important;
    font-weight: bold;
    box-shadow: 0 0 0 2px #15803d;
}

.wp-booking-calendar-grid td.day-in-range {
    background-color: #86efac !important;
    color: #14532d !important;
}

.wp-booking-calendar-grid td.day-empty {
    background: transparent;
    cursor: default;
}

/* Legend Box */
.wp-booking-legend {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.legend-box {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.08);
}

.legend-box.available {
    background-color: #dcfce7;
}

.legend-box.pending {
    background-color: #ffedd5;
    border-color: #fed7aa;
}

.legend-box.booked {
    background-color: #fecdd3;
}

/* Selected Dates & Price Estimation */
.wp-booking-selected-dates-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #1e40af;
}

.wp-booking-clear-dates {
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.wp-booking-clear-dates:hover {
    background: #dbeafe;
}

.wp-booking-price-estimation {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 25px;
}

.wp-booking-price-estimation h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.estimation-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    color: #475569;
}

.estimation-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 2px dashed #cbd5e1;
    color: #1e293b;
}

/* 3. Form Component */
.wp-booking-form {
    margin-bottom: 35px;
}

.wp-booking-form .form-group {
    margin-bottom: 18px;
}

.wp-booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.wp-booking-form input[type="text"],
.wp-booking-form input[type="tel"],
.wp-booking-form input[type="email"],
.wp-booking-form input[type="number"],
.wp-booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-booking-form input:focus,
.wp-booking-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wp-booking-form .form-actions {
    margin-top: 20px;
}

.wp-booking-submit-btn {
    background-color: #2563eb; /* Blue button as in preview.webp */
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.wp-booking-submit-btn:hover {
    background-color: #1d4ed8;
}

.wp-booking-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.wp-booking-response-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.wp-booking-response-message.success {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.wp-booking-response-message.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* 4. Footer Information & License */
.wp-booking-info-footer {
    margin-top: 40px;
    font-size: 14px;
    color: #4b5563;
}

.wp-booking-info-footer .vergunning-title {
    margin-bottom: 25px;
    font-size: 14px;
    color: #111827;
}

.wp-booking-info-footer .info-section {
    margin-bottom: 24px;
}

.wp-booking-info-footer h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.wp-booking-info-footer ul {
    margin: 0;
    padding-left: 20px;
}

.wp-booking-info-footer li {
    margin-bottom: 6px;
}
