﻿:root {
    --bw-primary-color: #007bff;
    --bw-primary-hover: #0056b3;
    --bw-primary-light: #e7f3ff;
    --bw-success-color: #28a745;
    --bw-success-light: #d4edda;
    --bw-danger-color: #dc3545;
    --bw-danger-light: #f8d7da;
    --bw-warning-color: #ffc107;
    --bw-warning-light: #fff3cd;
    --bw-info-color: #17a2b8;
    --bw-info-light: #d1ecf1;
    --bw-bg-white: #ffffff;
    --bw-bg-light: #ffffff;
    --bw-bg-gray: #e9ecef;
    --bw-text-primary: #333333;
    --bw-text-secondary: #666666;
    --bw-text-muted: #999999;
    --bw-text-disabled: #cccccc;
    --bw-border-color: #dee2e6;
    --bw-border-light: #e9ecef;
    --bw-border-radius: 6px;
    --bw-border-radius-sm: 4px;
    --bw-border-radius-lg: 8px;
    --bw-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --bw-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --bw-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bw-spacing-xs: 4px;
    --bw-spacing-sm: 8px;
    --bw-spacing-md: 12px;
    --bw-spacing-lg: 20px;
    --bw-spacing-xl: 30px;
    --bw-font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    --bw-font-size-sm: 12px;
    --bw-font-size-md: 14px;
    --bw-font-size-lg: 16px;
    --bw-transition-fast: 0.2s;
    --bw-transition-normal: 0.3s;
    --primary-color: var(--bw-primary-color);
    --primary-hover: var(--bw-primary-hover);
    --primary-light: var(--bw-primary-light);
    --success-color: var(--bw-success-color);
    --danger-color: var(--bw-danger-color);
    --warning-color: var(--bw-warning-color);
    --light-gray: var(--bw-bg-light);
    --bg-gray: var(--bw-bg-gray);
    --text-color: var(--bw-text-primary);
    --text-secondary: var(--bw-text-secondary);
    --border-color: var(--bw-border-color);
}
.form-input {
    padding: 4px 8px !important;
}
.form-group input,
.form-group textarea,
.progress-circle {
    box-sizing: border-box;
}
select {
    height: 40px;
    padding: 4px !important;
    margin: 0;
}
input[type="date"] {
    height: 30px;
    padding: 4px 8px !important;
    margin: 0;
}
input,
.form-group input,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"] {
    height: 30px; 
    margin: 0;
}
input[type="radio"] {
    margin: 0;
}
label {
    margin-bottom: 0;
}
label > span:not(.toggle-slider) {
    margin-top: 4px;
}
.toggle-switch > label {
    margin: 0; 
}
[class^="icon-"] {
    background: none; 
}
.icon-picker {
    width: unset; 
    height: unset;
}
svg {
    vertical-align: middle;
    display: inline-block;
}
button svg,
.wb-btn svg {
    margin-right: 4px;
}
h3 svg,
h4 svg {
    margin-right: 6px;
    vertical-align: text-bottom;
}
.confirmation-icon {
    font-size: 64px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.confirmation-icon svg {
    width: 64px;
    height: 64px;
    color: var(--success-color);
}
.booking-widget-fullpage {
    border-radius: 12px;
    background: var(--bw-bg-light);
    color: var(--bw-text-primary);
    padding: 16px;
}
.booking-confirmation {
    text-align: center;
    padding: 40px 20px;
}
.booking-confirmation h2 {
    color: var(--success-color);
    margin: 10px 0 20px 0;
}
.organization-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--bw-text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.organization-info .org-name {
    font-weight: 600;
    color: var(--bw-text-primary);
    margin-bottom: 8px;
}
.organization-info .org-address,
.organization-info .org-contact {
    margin-top: 8px;
}
.booking-container {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.booking-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}
.booking-header h1 {
    margin: 0;
    font-size: 24px;
}
.booking-controls {
    background: var(--light-gray);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.booking-controls select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}
.booking-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--bw-bg-light);
    padding: 20px;
    border: 1px solid var(--border-color);
}
.booking-sidebar {
    background: var(--light-gray);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 0;
}
.calendar {
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    flex: 1; 
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary-color);
}
.calendar-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bw-text-primary) !important;
}
.calendar-nav {
    display: flex;
    gap: 6px;
}
.calendar-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
}
.calendar-nav button:hover {
    opacity: 0.8;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 3px 0;
    font-size: 10px;
    color: var(--bw-text-secondary);
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
    min-height: 28px; 
}
.calendar-day:hover:not(.disabled):not(.closed) {
    background: var(--light-gray);
    transform: scale(1.05);
}
.calendar-day.disabled {
    color: var(--bw-text-muted);
    cursor: not-allowed;
}
.calendar-day.closed {
    background: var(--bw-bg-light);
    color: var(--bw-text-muted);
    text-decoration: line-through;
    cursor: not-allowed;
}
.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}
.calendar-day.checkin {
    background: var(--success-color);
    color: white;
    font-weight: bold;
    border-radius: 4px 0 0 4px;
}
.calendar-day.checkout {
    background: var(--danger-color);
    color: white;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
}
.calendar-day.in-range {
    background: var(--bw-primary-light);
    color: var(--bw-primary-color);
}
.calendar-subheader {
    text-align: center;
    padding: 4px;
    font-size: 10px;
    color: var(--bw-text-secondary);
    font-style: italic;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 6px;
}
.calendar-day.today {
    border: 2px solid var(--warning-color);
}
.slots-section {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 15px;
    align-items: stretch;
}
.slots-container {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    min-width: 0; 
    overflow: hidden; 
}
.slots-header {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--bw-text-primary);
}
.slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 6px;
    max-height: 350px; 
    overflow-y: auto;
    padding: 8px;
    border-radius: 4px;
    background: transparent !important;
}
.slot-item {
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent !important;
    font-weight: 500;
    font-size: 12px;
    color: var(--bw-text-primary) !important;
}
.slot-item:hover:not(.unavailable) {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.slot-item.selected {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color);
}
.slot-item.unavailable {
    background: transparent !important;
    color: var(--bw-text-muted) !important;
    cursor: not-allowed;
    text-decoration: line-through;
}
.capacity-badge {
    display: inline-block;
    background: var(--bw-bg-light);
    color: var(--bw-primary-color);
    font-size: 9px;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 2px;
    vertical-align: middle;
    pointer-events: none; 
}
.no-slots {
    text-align: center;
    padding: 30px;
    color: var(--bw-text-secondary);
    font-style: italic;
}
.party-size-selector,
.guests-selector {
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.selector-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--bw-text-primary);
    margin-bottom: 8px;
}
.party-size-buttons,
.guests-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 6px;
}
.party-size-btn,
.guest-btn {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bw-bg-light);
    font-weight: 600;
    font-size: 14px;
    color: var(--bw-text-primary);
}
.party-size-btn:hover,
.guest-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.party-size-btn.selected,
.guest-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}
.period-instruction {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 6px;
    margin-bottom: 15px;
}
.period-instruction .instruction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.period-instruction .instruction-icon svg {
    width: 24px;
    height: 24px;
}
.period-instruction .instruction-text {
    flex: 1;
    font-size: 13px;
    color: #0c5460;
    font-weight: 500;
}
.period-validation-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 6px;
    margin-bottom: 15px;
    animation: shake 0.5s ease-in-out;
}
.period-validation-error .error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.period-validation-error .error-icon svg {
    width: 24px;
    height: 24px;
}
.period-validation-error .error-text {
    flex: 1;
    font-size: 13px;
    color: #721c24;
    font-weight: 600;
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}
.booking-form {
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
    display: none;
}
.booking-form.active {
    display: block;
}
.booking-form h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
}
.form-group {
    margin-bottom: 10px;
}
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--bw-text-primary);
    font-size: 12px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 12px;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 60px;
}
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.wb-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}
.wb-btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}
.wb-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.wb-btn-secondary {
    background: #6c757d;
    color: white;
}
.wb-btn-secondary:hover {
    background: #545b62;
}
.wb-btn-danger {
    background: var(--danger-color);
    color: white;
}
.wb-btn-danger:hover {
    background: #c82333;
}
.wb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.booking-summary {
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 12px;
}
.booking-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--primary-color);
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 12px;
}
.summary-item:last-child {
    border-bottom: none;
}
.summary-item.summary-compact {
    padding: 3px 0;
}
.summary-item.summary-inline-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.summary-inline-item {
    display: flex;
    gap: 5px;
    align-items: center;
}
.summary-label {
    font-weight: 500;
    color: var(--bw-text-secondary);
}
.summary-value {
    color: var(--bw-text-primary);
}
.info-section {
    margin-bottom: 20px;
}
.info-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--primary-color);
}
.info-section p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--bw-text-secondary);
}
.info-section .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}
.badge-success {
    background: var(--success-color);
    color: white;
}
.badge-warning {
    background: var(--warning-color);
    color: var(--bw-text-primary);
}
.bookings-list {
    max-height: 400px;
    overflow-y: auto;
}
.booking-item {
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}
.booking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.booking-item-id {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 12px;
}
.booking-item-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}
.status-confirmed {
    background: var(--success-color);
    color: white;
}
.status-pending {
    background: var(--warning-color);
    color: var(--bw-text-primary);
}
.booking-item-details {
    font-size: 13px;
    color: var(--bw-text-secondary);
}
.booking-item-details div {
    margin: 4px 0;
}
.message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}
.message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}
.booking-locked {
    text-align: center;
}
.booking-locked h3 {
    color: var(--success-color);
    margin-bottom: 15px;
}
.lock-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}
.lock-message p {
    margin: 0;
    font-size: 14px;
    color: #155724;
}
.lock-message strong {
    color: #0d4c1a;
    font-size: 16px;
}
.period-info {
    background: var(--bw-bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    margin-top: 12px;
}
.period-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 13px;
}
.period-info .info-item {
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 12px;
}
.period-info .info-item:last-child {
    border-bottom: none;
}
.period-info .info-item strong {
    color: var(--bw-text-primary);
    margin-right: 6px;
}
.period-selection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--primary-color);
}
.availability-ok {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
}
.availability-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
}
.loading {
    text-align: center;
    padding: 20px;
    color: var(--bw-text-secondary);
}
.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0%,
    20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60%,
    100% {
        content: "...";
    }
}
.booking-compact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bw-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}
.booking-compact-btn:hover {
    border-color: var(--primary-color);
    background: var(--bw-bg-light);
}
.booking-compact-btn.filled {
    border-color: var(--primary-color);
    background: var(--bw-primary-light);
}
.booking-compact-icon {
    font-size: 18px;
}
.booking-compact-text {
    flex: 1;
    color: var(--bw-text-primary);
}
.booking-compact-btn:not(.filled) .booking-compact-text {
    color: var(--bw-text-muted);
    font-style: italic;
}
.booking-compact-arrow {
    font-size: 12px;
    color: var(--bw-text-secondary);
}
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow-y: auto;
}
.booking-modal {
    background: var(--bw-bg-light);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
    font-size: 13px;
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    background: var(--primary-color);
    color: white;
    border-radius: 8px 8px 0 0;
}
.booking-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.booking-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}
.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.booking-modal-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}
@media (max-width: 768px) {
    .booking-main {
        grid-template-columns: 1fr;
    }
    .booking-controls {
        flex-direction: column;
    }
    .slots-section {
        grid-template-columns: 1fr; 
        gap: 12px;
    }
    .calendar {
        max-width: 100%; 
    }
    .calendar-grid {
        gap: 3px;
    }
    .calendar-day {
        font-size: 12px;
    }
    .slots-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        max-height: 250px; 
    }
    .booking-modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }
    .booking-modal {
        max-height: 95vh;
        margin-top: 10px;
    }
    .booking-modal-header h2 {
        font-size: 18px;
    }
    .booking-modal-body {
        padding: 15px;
    }
}
.sub-resources-section,
.room-types-section {
    margin-top: 15px;
    padding: 15px 0; 
    clear: both;
    width: 100%;
    min-width: 0; 
}
.sub-resources-section h4,
.room-types-section h4 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--bw-text-primary);
}
.sub-resources-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 5px 0 15px 0; 
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
    box-sizing: border-box;
}
.sub-resources-list::-webkit-scrollbar {
    height: 8px;
}
.sub-resources-list::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}
.sub-resources-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}
.sub-resources-list::-webkit-scrollbar-thumb:hover {
    background: var(--bw-primary-hover);
}
.sub-resource-item {
    background: var(--bw-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    flex-shrink: 0;
}
.sub-resource-item:hover:not(.unavailable) {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.sub-resource-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.sub-resource-item.selected .sub-resource-name,
.sub-resource-item.selected .sub-resource-capacity,
.sub-resource-item.selected .sub-resource-price,
.sub-resource-item.selected .sub-resource-availability {
    color: white;
}
.sub-resource-item.unavailable {
    background: var(--bw-bg-light);
    color: var(--bw-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}
.sub-resource-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--bw-text-primary);
}
.sub-resource-capacity {
    font-size: 12px;
    color: var(--bw-text-secondary);
    margin-bottom: 4px;
}
.sub-resource-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.sub-resource-item.selected .sub-resource-price {
    color: white;
}
.sub-resource-availability {
    font-size: 12px;
    color: var(--bw-text-secondary);
    font-style: italic;
}
.room-type-item {
    background: var(--bw-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 200px;
    flex-shrink: 0;
}
.room-type-item:hover:not(.unavailable) {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.room-type-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.room-type-item.selected .room-type-name,
.room-type-item.selected .room-type-capacity,
.room-type-item.selected .room-type-price,
.room-type-item.selected .room-type-availability {
    color: white;
}
.room-type-item.unavailable {
    background: var(--bw-bg-light);
    color: var(--bw-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}
.room-type-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--bw-text-primary);
}
.room-type-capacity {
    font-size: 12px;
    color: var(--bw-text-secondary);
    margin-bottom: 4px;
}
.room-type-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}
.room-type-item.selected .room-type-price {
    color: white;
}
.room-type-availability {
    font-size: 12px;
    color: var(--bw-text-secondary);
    font-style: italic;
}
.summary-total {
    border-top: 2px solid var(--primary-color);
    margin-top: 8px;
    padding-top: 8px !important;
    font-weight: bold;
}
.booking-right {
    position: relative;
}
.booking-right.sticky-mode {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.booking-summary.sticky-active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: stickyPulse 0.3s ease-out;
}
@keyframes stickyPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}
.price-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    animation: priceAppear 0.5s ease-out;
}
@keyframes priceAppear {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.price-highlight .price-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}
.price-highlight .price-amount {
    font-size: 28px;
    font-weight: bold;
}
.booking-form {
    animation: slideInUp 0.4s ease-out;
    transform-origin: top;
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.section-condensed {
    background: var(--bw-bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.section-condensed:hover {
    border-color: var(--primary-color);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.condensed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.condensed-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--bw-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.condensed-title .checkmark {
    color: var(--success-color);
    font-size: 18px;
}
.condensed-value {
    font-size: 13px;
    color: var(--bw-text-secondary);
}
.condensed-edit {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: underline;
}
.section-expanded {
    margin-bottom: 20px;
}
.section-expanded .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bw-text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}
@keyframes skeleton-loading {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
.calendar,
.slots-section,
.period-section,
.sub-resources-section {
    transition: all 0.3s ease;
}
.calendar-day:not(.disabled):not(.closed):hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.slot-item:not(.unavailable):hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 123, 255, 0);
    }
}
.calendar-day.selected,
.slot-item.selected,
.sub-resource-item.selected {
    animation: pulse 2s infinite;
}
.quick-summary {
    background: var(--bw-primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 13px;
}
.quick-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}
.quick-summary-label {
    font-weight: 500;
    color: var(--bw-text-secondary);
}
.quick-summary-value {
    font-weight: 600;
    color: var(--bw-text-primary);
}
@media (max-width: 768px) {
    .progress-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .progress-label {
        font-size: 10px;
    }
    .price-highlight .price-amount {
        font-size: 24px;
    }
    .sub-resources-list {
        overflow-x: auto;
    }
    .sub-resource-item {
        min-width: 180px; 
    }
    .slots-container {
        min-height: 350px;
        overflow: visible; 
    }
    .wizard-actions-inline .wb-btn-large {
        font-size: 14px;
        padding: 12px 25px;
    }
}
.booking-wizard-step {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.wizard-content {
    background: var(--bw-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.wizard-actions {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}
.wizard-actions-inline {
    margin-top: auto; 
    padding-top: 15px;
    text-align: right;
}
.wb-btn-large {
    font-size: 16px;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.wb-btn-large:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.wb-btn-primary.wb-btn-large:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.wb-btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}
.wb-btn-block {
    width: 100%;
    display: block;
}
.booking-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}
.progress-step:hover {
    background: transparent !important;
}
.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bw-bg-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: var(--bw-text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    cursor: default;
}
.progress-circle:hover,
.progress-circle::before:hover,
.progress-circle::after:hover {
    background: var(--bw-bg-light) !important;
}
.progress-step.completed .progress-circle:hover {
    background: var(--primary-color) !important;
}
.progress-step.active .progress-circle:hover {
    background: var(--primary-color) !important;
}
.progress-step.completed .progress-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.progress-step.active .progress-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.progress-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bw-text-muted);
    text-align: center;
}
.progress-step.completed .progress-label,
.progress-step.active .progress-label {
    color: var(--bw-text-primary);
    font-weight: 600;
}
.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 -10px;
    position: relative;
    z-index: 1;
}
.progress-step.completed + .progress-line {
    background: var(--primary-color);
}
.wizard-content-form {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
}
.form-summary-panel {
    background: var(--bw-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    align-self: flex-start;
}
.form-input-panel {
    background: var(--bw-bg-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.detailed-summary {
    margin: 0;
}
.detailed-summary h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}
.summary-row:last-child {
    border-bottom: none;
}
.summary-row.summary-inline-row {
    padding: 10px 0;
}
.summary-details.summary-inline-details {
    display: flex;
    gap: 30px;
    width: 100%;
}
.summary-details.summary-inline-details .summary-inline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}
.summary-icon svg {
    width: 24px;
    height: 24px;
}
.summary-details {
    flex: 1;
}
.summary-label {
    font-size: 12px;
    color: var(--bw-text-secondary);
    margin-bottom: 4px;
}
.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--bw-text-primary);
}
.summary-value-large {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}
.summary-row.summary-total {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-radius: 8px;
    padding: 15px;
}
.booking-form-wizard {
    margin: 0;
}
.booking-form-wizard h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}
.form-actions-wizard {
    margin-top: 30px;
}
@media (max-width: 768px) {
    .wizard-content-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-summary-panel {
        position: relative;
        top: 0;
    }
    .progress-step {
        flex-direction: column;
    }
    .progress-label {
        font-size: 10px;
    }
    .wb-btn-large {
        font-size: 14px;
        padding: 12px 30px;
    }
}
