/* Scoped for modal: body styles apply to wrapper only */
.wp-open-layer-booking-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #676767;
    padding: 0;
}

.wp-open-layer-booking-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0a667b;
    --primary-hover: #085061;
    --text-color: #052b33;
    --text-dark: #052b33;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease-in-out;
}

.wp-open-layer-booking-wrapper .booking-widget-container {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.wp-open-layer-booking-wrapper .widget-header {
    padding: 30px;
/*     border-bottom: 1px solid var(--border-color); */
    text-align: center;
}

.wp-open-layer-booking-wrapper .widget-header h1 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wp-open-layer-booking-wrapper .widget-header p {
    font-size: 15px;
}

.wp-open-layer-booking-wrapper .widget-body {
    padding: 30px;
    min-height: 400px;
}

.wp-open-layer-booking-wrapper .step-container {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-in-out;
}

.wp-open-layer-booking-wrapper .step-container.hidden {
    display: none;
}

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

.wp-open-layer-booking-wrapper .loader-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.wp-open-layer-booking-wrapper .hidden {
    display: none;
}

.wp-open-layer-booking-wrapper .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.wp-open-layer-booking-wrapper .back-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wp-open-layer-booking-wrapper .back-btn:hover {
    text-decoration: underline;
}

.wp-open-layer-booking-wrapper .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.wp-open-layer-booking-wrapper .btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.wp-open-layer-booking-wrapper .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wp-open-layer-booking-wrapper .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wp-open-layer-booking-wrapper .service-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-color);
    text-align: left;
}

.wp-open-layer-booking-wrapper .service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.wp-open-layer-booking-wrapper .service-title {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wp-open-layer-booking-wrapper .service-meta,
.wp-open-layer-booking-wrapper .service-duration,
.wp-open-layer-booking-wrapper .service-staff {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wp-open-layer-booking-wrapper .calendar-time-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 650px) {
    .wp-open-layer-booking-wrapper .calendar-time-layout {
        grid-template-columns: 1fr;
    }
}

.wp-open-layer-booking-wrapper .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wp-open-layer-booking-wrapper .calendar-header h3 {
    color: var(--text-dark);
    font-weight: 600;
}

.wp-open-layer-booking-wrapper .icon-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.wp-open-layer-booking-wrapper .icon-btn:hover {
    background: var(--bg-light);
}

.wp-open-layer-booking-wrapper .icon-btn:disabled {
    color: var(--border-color);
    cursor: not-allowed;
    background: none;
}

.wp-open-layer-booking-wrapper .calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.wp-open-layer-booking-wrapper .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.wp-open-layer-booking-wrapper .calendar-day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    color: var(--primary-color);
    background: var(--bg-light);
    transition: var(--transition);
}

.wp-open-layer-booking-wrapper .calendar-day:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: white;
}

.wp-open-layer-booking-wrapper .calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

.wp-open-layer-booking-wrapper .calendar-day.disabled {
    color: #ccc;
    background: transparent;
    cursor: not-allowed;
}

.wp-open-layer-booking-wrapper .time-section h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}

.wp-open-layer-booking-wrapper .time-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.wp-open-layer-booking-wrapper .time-slot {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-color);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.wp-open-layer-booking-wrapper .time-slot.selected {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

.wp-open-layer-booking-wrapper .time-slot:hover {
    background: var(--primary-color);
    color: white;
}

.wp-open-layer-booking-wrapper .empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px 0;
}

.wp-open-layer-booking-wrapper .booking-summary {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.wp-open-layer-booking-wrapper .booking-summary h3 {
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 18px;
}

.wp-open-layer-booking-wrapper .summary-time {
    font-weight: 500;
    color: var(--primary-color);
}

.wp-open-layer-booking-wrapper .form-group {
    margin-bottom: 20px;
}

.wp-open-layer-booking-wrapper .form-group label {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 22px;
    margin-bottom: 4px;
    color: #4b4b4b;
    font-weight: 400;
    font-size: 1.275rem;
    line-height: 1.25rem;
}

.wp-open-layer-booking-wrapper .form-group input,
.wp-open-layer-booking-wrapper .form-group textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #a6bbd1;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: "Proxima Nova", sans-serif;
    line-height: 1.5rem;
    overflow-wrap: normal;
    -webkit-appearance: none;
    appearance: none;
    min-height: 40px;
    padding: 9px 14px;
}

.wp-open-layer-booking-wrapper .form-group input:focus,
.wp-open-layer-booking-wrapper .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 102, 123, 0.1);
}

.wp-open-layer-booking-wrapper .form-group.has-error input,
.wp-open-layer-booking-wrapper .form-group.has-error textarea,
.wp-open-layer-booking-wrapper .form-group.has-error .c-select-dropdown {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.wp-open-layer-booking-wrapper .form-group.has-error input:focus,
.wp-open-layer-booking-wrapper .form-group.has-error textarea:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.wp-open-layer-booking-wrapper .field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #dc2626;
    line-height: 1.3;
}

.wp-open-layer-booking-wrapper .field-error:empty {
    display: none;
}

.wp-open-layer-booking-wrapper .form-error-banner {
    display: none;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.875rem;
    line-height: 1.4;
}

.wp-open-layer-booking-wrapper .form-error-banner:not(:empty) {
    display: block;
}

.wp-open-layer-booking-wrapper .confirmation-box {
    text-align: center;
    padding: 40px 20px;
}

.wp-open-layer-booking-wrapper .success-icon {
    width: 60px;
    height: 60px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.wp-open-layer-booking-wrapper .confirmation-box h2 {
    color: var(--text-dark);
    font-size: 28px;
    margin-bottom: 15px;
}

.wp-open-layer-booking-wrapper .confirmation-box p {
    font-size: 16px;
    margin-bottom: 20px;
}

.wp-open-layer-booking-wrapper .confirmation-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px auto;
    max-width: 400px;
}

.wp-open-layer-booking-wrapper .confirm-service {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 10px;
}

.wp-open-layer-booking-wrapper .confirm-time {
    color: var(--primary-color);
    font-weight: 500;
}

.wp-open-layer-booking-wrapper .check-email {
    font-size: 14px;
    color: #666;
}

.wp-open-layer-booking-wrapper .c-select-dropdown {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0 8px;
    font-size: 14px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wp-open-layer-booking-wrapper .c-select-wrapper {
    position: relative;
    width: 100%;
}

.wp-open-layer-booking-wrapper .c-select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
}

.wp-open-layer-booking-wrapper .close-widget-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    line-height: 1;
    padding-bottom: 2px;
}

.wp-open-layer-booking-wrapper .close-widget-btn:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.wp-open-layer-booking-wrapper .form-scrollable-area {
    overflow-y: auto;
    padding-right: 12px;
    margin-bottom: 10px;
    max-height: 40vh;
    /* Allow scrolling if it goes beyond this height */
}

/* Custom Scrollbar for form */
.wp-open-layer-booking-wrapper .form-scrollable-area::-webkit-scrollbar {
    width: 6px;
}

.wp-open-layer-booking-wrapper .form-scrollable-area::-webkit-scrollbar-track {
    background: transparent;
}

.wp-open-layer-booking-wrapper .form-scrollable-area::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.wp-open-layer-booking-wrapper .form-scrollable-area::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}
