/**
 * Public Booking Styles
 * Using EduBlink Theme Colors
 *
 * @package BusinessWyse_Booking
 * @since 1.0.0
 */

:root {
    --bw-primary: #1ab69d;
    --bw-primary-alt: #31b978;
    --bw-secondary: #ee4a62;
    --bw-tertiary: #f8b81f;
    --bw-standard: #0ecd73;
    --bw-premium: #f8941f;
    --bw-heading: #181818;
    --bw-body: #808080;
    --bw-border: #e5e5e5;
    --bw-shade: #F5F5F5;
    --bw-white: #ffffff;
}

* {
    box-sizing: border-box;
}

/* Main Wrapper */
.bw-booking-wrapper {
    font-family: 'Poppins', Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    color: var(--bw-body);
}

.bw-booking-wrapper h2 {
    font-family: 'Spartan', 'Poppins', sans-serif;
    color: var(--bw-heading);
    font-size: 28px;
    margin: 0 0 10px;
}

.bw-booking-wrapper p {
    font-size: 15px;
    line-height: 1.6;
}

/* Steps */
.bw-step {
    display: none;
}

.bw-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Legend */
.bw-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: var(--bw-shade);
    border-radius: 10px;
}

.bw-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bw-legend-color {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid var(--bw-border);
}

.bw-legend-color.bw-standard {
    background: var(--bw-standard);
}

.bw-legend-color.bw-premium {
    background: var(--bw-premium);
}

.bw-legend-color.bw-unavailable {
    background: var(--bw-border);
}

/* Calendar Navigation */
.bw-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: var(--bw-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bw-calendar-nav h3 {
    margin: 0;
    color: var(--bw-heading);
    font-size: 20px;
}

.bw-btn-nav {
    background: var(--bw-primary);
    color: var(--bw-white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bw-btn-nav:hover {
    background: var(--bw-primary-alt);
    transform: translateY(-2px);
}

/* Calendar Grid */
.bw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.bw-calendar-day {
    background: var(--bw-white);
    border: 2px solid var(--bw-border);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bw-calendar-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bw-calendar-day.bw-standard {
    border-color: var(--bw-standard);
}

.bw-calendar-day.bw-standard:hover {
    background: rgba(14, 205, 115, 0.1);
}

.bw-calendar-day.bw-premium {
    border-color: var(--bw-premium);
}

.bw-calendar-day.bw-premium:hover {
    background: rgba(248, 148, 31, 0.1);
}

.bw-calendar-day.selected {
    border-width: 3px;
    border-color: var(--bw-primary);
    background: rgba(26, 182, 157, 0.1);
}

.bw-day-name {
    font-size: 12px;
    color: var(--bw-body);
    text-transform: uppercase;
    margin: 0 0 5px;
}

.bw-day-date {
    font-size: 24px;
    font-weight: 700;
    color: var(--bw-heading);
    margin: 5px 0;
}

.bw-day-price {
    font-size: 14px;
    color: var(--bw-primary);
    font-weight: 600;
    margin: 5px 0 0;
}

/* Time Slots Wrapper */
.bw-time-slots-wrapper {
    margin: 20px 0;
}

.bw-time-slots-wrapper h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--bw-heading);
    font-weight: 600;
}

.bw-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.bw-time-slot {
    background: var(--bw-shade);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid var(--bw-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bw-time-slot:hover {
    background: var(--bw-primary);
    color: var(--bw-white);
    border-color: var(--bw-primary);
}

.bw-time-slot.selected {
    background: var(--bw-primary);
    color: var(--bw-white);
    border-color: var(--bw-primary);
}

.bw-time-slot.booked {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
}

.bw-time-slot.booked:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
}

/* Selected Slot Display */
.bw-selected-slot {
    background: var(--bw-shade);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--bw-primary);
}

.bw-selected-slot h3 {
    margin: 0 0 10px;
    color: var(--bw-heading);
}

/* Form Styles */
.bw-form-group {
    margin: 0 0 20px;
}

.bw-form-group label {
    display: block;
    margin: 0 0 8px;
    color: var(--bw-heading);
    font-weight: 600;
    font-size: 14px;
}

.bw-form-group label .required,
.bw-form-group label span[style*="color"],
label .required {
    color: var(--bw-secondary) !important;
}

.bw-form-group input,
.bw-form-group textarea,
.bw-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--bw-border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.bw-form-group input:focus,
.bw-form-group textarea:focus,
.bw-form-group select:focus {
    outline: none;
    border-color: var(--bw-primary);
}

.bw-char-count {
    display: block;
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--bw-body);
}

/* Buttons */
.bw-btn-primary {
    background: var(--bw-primary);
    color: var(--bw-white);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bw-btn-primary:hover {
    background: var(--bw-primary-alt);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 182, 157, 0.3);
}

.bw-btn-secondary {
    background: var(--bw-white);
    color: var(--bw-heading);
    border: 2px solid var(--bw-border);
    padding: 13px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bw-btn-secondary:hover {
    border-color: var(--bw-primary);
    color: var(--bw-primary);
}

.bw-form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin: 30px 0 0;
}

/* Payment Summary */
.bw-payment-summary {
    background: var(--bw-shade);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.bw-payment-summary h3 {
    margin: 0 0 20px;
    color: var(--bw-heading);
}

.bw-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.bw-summary-table th {
    text-align: left;
    padding: 10px 0;
    color: var(--bw-body);
    font-weight: 600;
}

.bw-summary-table td {
    text-align: right;
    padding: 10px 0;
    color: var(--bw-heading);
}

.bw-total-row th,
.bw-total-row td {
    font-size: 20px;
    font-weight: 700;
    color: var(--bw-primary);
    padding-top: 15px;
    border-top: 2px solid var(--bw-border);
}

/* Policy Notice */
.bw-policy-notice {
    background: #fff3cd;
    padding: 15px 20px;
    border-left: 4px solid var(--bw-tertiary);
    border-radius: 5px;
    margin: 20px 0;
}

.bw-policy-notice h4 {
    margin: 0 0 10px;
    color: #856404;
}

.bw-policy-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* Success Message */
.bw-success-message {
    text-align: center;
    padding: 40px 20px;
}

.bw-success-icon {
    width: 80px;
    height: 80px;
    background: var(--bw-primary);
    color: var(--bw-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.bw-email-notice {
    background: var(--bw-shade);
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

/* Loading Overlay */
.bw-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bw-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--bw-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bw-loading p {
    color: var(--bw-white);
    margin: 15px 0 0;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bw-booking-wrapper {
        padding: 20px 15px;
    }

    .bw-booking-wrapper h2 {
        font-size: 24px;
    }

    .bw-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .bw-calendar-day {
        padding: 10px;
    }

    .bw-day-date {
        font-size: 20px;
    }

    .bw-form-actions {
        flex-direction: column;
    }

    .bw-form-actions button {
        width: 100%;
    }

    .bw-legend {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .bw-calendar-nav {
        flex-direction: column;
        gap: 15px;
    }

    .bw-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
