/* Homestay Booking - Modern UI */

.hsb-booking-wrapper {
    max-width: 450px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.hsb-booking-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

/* Progress Steps */
.hsb-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    position: relative;
}

.hsb-progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.hsb-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.hsb-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FBCFD9;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.hsb-step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s;
}

.hsb-step.hsb-step-active .hsb-step-number {
    background: var(--fs-color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.4);
}

.hsb-step.hsb-step-active .hsb-step-label {
    color: var(--fs-color-primary);
    font-weight: 600;
}

.hsb-step.hsb-step-completed .hsb-step-number {
    background: #28a745;
    color: #fff;
}

.hsb-step.hsb-step-completed .hsb-step-label {
    color: #28a745;
}

.hsb-form-group {
    margin-bottom: 13px;
}

.hsb-form-group>label{
    color: var(--fs-color-primary);
    font-family: 'DIN Condensed';
    font-size: 1.2em;
    margin-bottom: 0px;
}

.hsb-form-group input{
    margin-bottom: 0px;
}

.hsb-label {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'DIN Condensed';
}

.hsb-room-select-group {
    display: flex;
    gap: 15px;
}

.hsb-room-select-group .hsb-label {
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    padding-top: 3px;
}

.hsb-room-select-wrapper {
    position: relative;
    flex-grow: 1;
}

.hsb-room-select {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--fs-color-primary);
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--fs-color-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.hsb-room-select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.hsb-booking-container {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease;
}

.hsb-room-select:hover {
    border-color: #ffb3d9;
    background-color: #fff;
}

.hsb-room-select:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 0 3px rgba(255, 179, 217, 0.1);
    background-color: #fff;
}

.hsb-room-select option {
    padding: 10px;
}

.hsb-room-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Calendar Styles */
.hsb-calendar {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #FBCFD9;
}

.hsb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.hsb-calendar-prev,
.hsb-calendar-next {
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    background-color: #FBCFD9;
    line-height: inherit;
}

.hsb-calendar-prev:hover,
.hsb-calendar-next:hover {
    background: #e9ecef;
}

.hsb-calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: var(--fs-color-primary);
}

.hsb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    padding: 5px 0;
}

.hsb-calendar-dayname {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 5px;
}

.hsb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, max(40px));
    padding: 10px;
    place-items: center;
    justify-content: space-between;
}

.hsb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #333;
    padding: 3px 10px;
    width: 100%;
    height: 30px;
}

.hsb-calendar-day:not(.empty):not(.past):not(.disabled):hover {
    background: var(--fs-color-primary);
    color: #fff;
}

.hsb-calendar-day.empty {
    visibility: hidden;
}

.hsb-calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.hsb-calendar-day.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.hsb-calendar-day.selected {
    background: #ffb3d9;
    color: #fff;
    font-weight: 700;
}

.hsb-calendar-notice {
    padding: 3px 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.hsb-calendar-notice small {
    color: #666;
    font-size: 12px;
}

/* Time Slots Legend */
.hsb-slot-legend {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.hsb-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.hsb-legend-booked {
    background: #ffb3d9;
}

.hsb-legend-available {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.hsb-legend-selected {
    background: #ffb3d9;
    border: 2px solid #ff69b4;
}

.hsb-legend-past {
    background: #e0e0e0;
}

/* Time Slots Grid */
.hsb-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.hsb-time-slot {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 13px 0px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    overflow: hidden;
}

.hsb-time-slot:hover:not(.booked):not(.disabled) {
    border-color: #ffb3d9;
    background: #b54d68;
}
.hsb-time-slot:hover:not(.booked):not(.disabled) .hsb-slot-time{
    color: #fff;
}

.hsb-time-slot.selected {
    background: #ffb3d9;
    border-color: #ff69b4;
    border-width: 2px;
}

.hsb-time-slot.selected .hsb-slot-time {
    color: #fff;
    font-weight: 600;
}

.hsb-time-slot.booked {
    background: #ffdeef;
    cursor: not-allowed;
    opacity: 0.7;
}

.hsb-time-slot.booked .hsb-slot-time {
    color: var(--fs-color-primary);
    font-weight: 700;
}

.hsb-time-slot.past {
    background: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.5;
}

.hsb-time-slot.past .hsb-slot-time {
    color: #999;
    text-decoration: line-through;
}

.hsb-time-slot.past .hsb-slot-status {
    color: #fff;
}

.hsb-time-slot.disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.hsb-slot-time {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hsb-overnight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    cursor: help;
}

.hsb-slot-status {
    font-size: 11px;
    color: #fff;
    position: absolute;
    background: #b91a19e0;
    padding: 1px 7px;
    top: 0;
    right: 0;
    border-radius: 3px;
}

/* Price Summary */
.hsb-price-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px 15px;
    margin: 20px 0;
}

.hsb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hsb-price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.hsb-price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--fs-color-primary);
}

.hsb-discount-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #28a745;
}

/* Customer Form */
.hsb-customer-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

.hsb-form-group input[type="text"],
.hsb-form-group input[type="email"],
.hsb-form-group input[type="tel"],
.hsb-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.hsb-form-group input:focus,
.hsb-form-group textarea:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 0 3px rgba(255, 179, 217, 0.1);
}

.hsb-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.hsb-form-actions {
    margin-top: 20px;
}

.hsb-submit-btn {
    width: 100%;
    padding: 5px;
    background: var(--fs-color-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;   
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0px !important;
}

.hsb-submit-btn:hover {
    background: #ff9fcf;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 217, 0.4);
}

.hsb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.hsb-btn-icon {
    flex-shrink: 0;
}

/* Loading State */
.hsb-loading,
.hsb-help-text {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px;
}

.hsb-error,
.hsb-no-slots {
    text-align: center;
    color: #dc3545;
    font-size: 14px;
    padding: 20px;
}

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

    .hsb-booking-container {
        padding: 20px;
    }

    .hsb-booking-title {
        font-size: 24px;
    }

    .hsb-progress-steps {
        margin-bottom: 25px;
    }

    .hsb-step-label {
        font-size: 10px;
    }

    .hsb-step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .hsb-calendar-day {
        font-size: 13px;
    }

    .hsb-time-slots-grid {
        grid-template-columns: 1fr;
    }

    .hsb-price-value {
        font-size: 20px;
    }

    .hsb-cccd-upload-wrapper {
        grid-template-columns: 1fr;
    }

    .hsb-upload-preview {
        min-height: 100px;
    }

    .hsb-form-actions-split {
        grid-template-columns: 1fr;
    }

    .hsb-back-btn {
        order: 2;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsb-time-slots-grid {
    animation: fadeIn 0.3s ease;
}

.hsb-customer-section {
    animation: fadeIn 0.3s ease;
}

/* Step 2 Styles */
.hsb-step-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.hsb-step-header h3 {
    margin: 0 0 0 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.hsb-step-description {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.hsb-field-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* CCCD Upload */
.hsb-cccd-upload-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hsb-cccd-upload-item {
    position: relative;
}

.hsb-upload-label {
    display: block;
    cursor: pointer;
}

.hsb-upload-preview {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    background: #f8f9fa;
    justify-content: center;
    min-height: 100px;
}

.hsb-upload-preview:hover {
    border-color: #ffb3d9;
    background: #fff5fb;
}

.hsb-upload-preview svg {
    color: #999;
}

.hsb-upload-preview.has-image {
    padding: 0;
    border-style: solid;
    border-color: #28a745;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hsb-upload-preview.has-image::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.hsb-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.hsb-upload-hint {
    font-size: 12px;
    color: #999;
}

.hsb-upload-preview.has-image .hsb-upload-text,
.hsb-upload-preview.has-image .hsb-upload-hint,
.hsb-upload-preview.has-image svg {
    display: none;
}

.hsb-remove-upload {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hsb-remove-upload:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Booking Summary Step 2 */
.hsb-price-summary-step2 {
    margin: 0px 0px 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid var(--fs-color-primary);
}

.hsb-booking-summary h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.hsb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.hsb-summary-row strong {
    color: #333;
    font-weight: 600;
}

.hsb-summary-surcharge {
    background: #f7ebeb;
    margin: 5px -10px;
    padding: 8px 10px;
    border-radius: 6px;
}

.hsb-summary-surcharge span {
    color: #856404;
}

.hsb-summary-divider {
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

.hsb-summary-total {
    font-size: 18px;
    padding-top: 10px;
}

.hsb-summary-total strong {
    color: var(--fs-color-primary);
    font-size: 22px;
}

/* Navigation Buttons */
.hsb-form-actions-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.hsb-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0px;
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0px;
    margin-bottom: 0px;
}

.hsb-back-btn:hover {
    background: #e9ecef;
    border-color: #999;
    color: #333;
}

.hsb-next-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Guest Counter */
.hsb-guest-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    overflow: hidden;
}

.hsb-guest-counter:hover {
    border-color: #ffb3d9;
    background: #fff5fb;
}

.hsb-guest-btn {
padding: 0px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    margin: 0 !important;
}

.hsb-guest-btn:hover:not(:disabled) {
    background: var(--fs-color-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.3);
}

.hsb-guest-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
}

.hsb-guest-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 20px;
    border-radius: 8px;
    min-width: 120px;
    justify-content: center;
}

.hsb-guest-icon {
    color: #ff69b4;
    flex-shrink: 0;
}

.hsb-guest-number {
    font-size: 20px;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.hsb-guest-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.hsb-guest-surcharge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 15px;
    background: #eff9f2;
    border: 1px solid #28a745;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

.hsb-guest-surcharge svg {
    flex-shrink: 0;
}

.hsb-guest-surcharge strong {
    color: #aa2537;
    font-weight: 700;
}

.hsb-guest-extra-fee {
    text-align: center;
    display: inline;
}

.hsb-guest-extra-fee strong {
    color: #28a745;
    font-weight: 700;
    font-size: 13px;
}