/**
 * Simple Booking - Booking Form Styles
 * Komorebi theme compatible.
 */

/* Form Container */
.sb-booking-form {
    max-width: 640px;
    margin: 0 auto;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
    color: #2d2d2d;
    position: relative;
}

/* Progress Indicator */
.sb-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.sb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.sb-progress-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0dcd7;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sb-progress-label {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.sb-progress-step.active .sb-progress-number {
    background: #c4a265;
    color: #fff;
}

.sb-progress-step.active .sb-progress-label {
    color: #c4a265;
    font-weight: 600;
}

.sb-progress-step.completed .sb-progress-number {
    background: #7fa886;
    color: #fff;
}

.sb-progress-step.completed .sb-progress-number::after {
    content: "\2713";
}

.sb-progress-step.completed .sb-progress-label {
    color: #7fa886;
}

.sb-progress-line {
    flex: 1;
    height: 2px;
    background: #e0dcd7;
    margin: 0 12px;
    margin-bottom: 24px;
    min-width: 40px;
}

/* Steps */
.sb-step {
    display: none;
    animation: sb-fadeIn 0.4s ease;
}

.sb-step.active {
    display: block;
}

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

.sb-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #2d2d2d;
    text-align: center;
}

/* Selected Dates Display */
.sb-selected-dates {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.sb-date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #faf8f5;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e0dcd7;
}

.sb-date-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.sb-date-value {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.sb-date-value.sb-date-selected {
    color: #c4a265;
    font-weight: 600;
}

/* Step Actions */
.sb-step-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0ede8;
}

/* Buttons */
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.03em;
}

.sb-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sb-btn-primary {
    background: #c4a265;
    color: #fff;
}

.sb-btn-primary:hover:not(:disabled) {
    background: #b3914f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 162, 101, 0.3);
}

.sb-btn-secondary {
    background: transparent;
    color: #999;
    border: 1px solid #e0dcd7;
}

.sb-btn-secondary:hover {
    background: #faf8f5;
    color: #2d2d2d;
    border-color: #ccc;
}

.sb-btn-outline {
    background: transparent;
    color: #c4a265;
    border: 2px solid #c4a265;
}

.sb-btn-outline:hover:not(:disabled) {
    background: #c4a265;
    color: #fff;
}

.sb-btn-outline:disabled {
    border-color: #ccc;
    color: #ccc;
}

/* Room List */
.sb-room-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sb-room-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border: 2px solid #e0dcd7;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.sb-room-card:hover {
    border-color: #c4a265;
    box-shadow: 0 2px 12px rgba(196, 162, 101, 0.1);
}

.sb-room-card.sb-room-selected {
    border-color: #c4a265;
    background: rgba(196, 162, 101, 0.05);
    box-shadow: 0 2px 12px rgba(196, 162, 101, 0.15);
}

.sb-room-card.sb-room-unavailable {
    opacity: 0.5;
    border-color: #e0dcd7;
}

.sb-room-card.sb-room-unavailable:hover {
    border-color: #e0dcd7;
    box-shadow: none;
}

.sb-room-info {
    flex: 1;
}

.sb-room-name {
    font-size: 17px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 6px;
}

.sb-room-capacity {
    font-size: 13px;
    color: #999;
    margin: 0 0 4px;
}

.sb-room-price {
    margin: 8px 0 0;
}

.sb-price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #c4a265;
}

.sb-price-unit {
    font-size: 13px;
    color: #999;
}

.sb-room-description {
    font-size: 13px;
    color: #777;
    margin: 8px 0 0;
    line-height: 1.6;
}

.sb-room-select {
    margin-left: 20px;
    flex-shrink: 0;
}

/* Guest Count */
/* Check-in time selector */
.sb-checkin-time-section {
    margin-top: 24px;
    text-align: center;
}

.sb-checkin-time-section label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-right: 8px;
}

.sb-checkin-time-note {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.sb-guest-count-section {
    margin-top: 20px;
    text-align: center;
}

.sb-guest-count-section label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-right: 8px;
}

.sb-select {
    padding: 8px 16px;
    border: 1px solid #e0dcd7;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fff;
    cursor: pointer;
}

.sb-select:focus {
    outline: none;
    border-color: #c4a265;
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

/* Price Summary */
.sb-price-summary {
    margin-top: 20px;
    background: #faf8f5;
    padding: 20px 24px;
    border-radius: 10px;
}

.sb-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.sb-price-row-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.sb-price-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: #2d2d2d;
    padding-top: 12px;
    border-top: 1px solid #e0dcd7;
}

/* Form Fields */
.sb-form-group {
    margin-bottom: 20px;
}

.sb-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    margin-bottom: 6px;
}

.sb-required {
    color: #d46b6b;
    font-weight: 700;
}

.sb-form-group input[type="text"],
.sb-form-group input[type="email"],
.sb-form-group input[type="tel"],
.sb-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0dcd7;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #2d2d2d;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sb-form-group input:focus,
.sb-form-group textarea:focus {
    outline: none;
    border-color: #c4a265;
    box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

.sb-form-group input.sb-field-error,
.sb-form-group textarea.sb-field-error {
    border-color: #d46b6b;
    box-shadow: 0 0 0 3px rgba(212, 107, 107, 0.1);
}

.sb-error-message {
    display: none;
    font-size: 12px;
    color: #d46b6b;
    margin-top: 4px;
}

.sb-form-group textarea {
    resize: vertical;
}

/* Booking Summary */
.sb-booking-summary {
    background: #faf8f5;
    padding: 20px 24px;
    border-radius: 10px;
    margin: 24px 0;
}

.sb-booking-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 12px;
}

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

.sb-summary-table th {
    text-align: left;
    font-weight: 500;
    color: #999;
    padding: 6px 0;
    width: 120px;
    font-size: 13px;
}

.sb-summary-table td {
    padding: 6px 0;
    font-size: 14px;
    color: #2d2d2d;
}

.sb-summary-total-row th,
.sb-summary-total-row td {
    padding-top: 10px;
    border-top: 1px solid #e0dcd7;
    font-weight: 700;
    font-size: 15px;
    color: #2d2d2d;
}

/* Submit Button */
.sb-submit-btn {
    min-width: 200px;
}

/* Success Message */
.sb-success {
    text-align: center;
    padding: 40px 20px;
    animation: sb-fadeIn 0.5s ease;
}

.sb-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #7fa886;
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.sb-success h3 {
    font-size: 22px;
    color: #2d2d2d;
    margin-bottom: 12px;
}

.sb-success p {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
    margin: 0 0 8px;
}

.sb-spam-notice {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 8px !important;
}

.sb-success-details {
    margin-top: 24px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: #faf8f5;
    padding: 20px 24px;
    border-radius: 10px;
}

/* Loading Overlay */
.sb-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    gap: 12px;
}

.sb-loading p {
    font-size: 14px;
    color: #999;
}

/* Calendar Container in Form */
.sb-calendar-container .sb-calendar {
    box-shadow: none;
    padding: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .sb-booking-form {
        padding: 0 4px;
    }

    .sb-progress {
        padding: 0;
    }

    .sb-progress-line {
        min-width: 20px;
        margin: 0 8px;
    }

    .sb-progress-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .sb-progress-label {
        font-size: 11px;
    }

    .sb-step h3 {
        font-size: 18px;
    }

    .sb-room-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 20px;
    }

    .sb-room-select {
        margin-left: 0;
        width: 100%;
    }

    .sb-room-select .sb-btn {
        width: 100%;
    }

    .sb-selected-dates {
        flex-direction: column;
        gap: 8px;
    }

    .sb-date-display {
        justify-content: center;
    }

    .sb-step-actions {
        flex-direction: column-reverse;
    }

    .sb-btn {
        width: 100%;
    }
}

/* Room info banner (single room) */
.sb-room-info-banner {
    text-align: center;
    padding: 14px 20px;
    background: rgba(196, 162, 101, 0.08);
    border: 1px solid rgba(196, 162, 101, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.sb-room-name-label {
    font-size: 18px;
    font-weight: 700;
    color: #2d2d2d;
}

.sb-room-cap-label {
    font-size: 14px;
    color: #888;
    margin-left: 6px;
}

/* Price tiers info */
.sb-price-tiers-info {
    background: #faf8f5;
    border: 1px solid #e8e4de;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sb-price-tiers-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px;
}

.sb-price-tiers-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.sb-price-tiers-info li {
    font-size: 15px;
    color: #2d2d2d;
    padding: 8px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0dcd7;
}

.sb-price-tiers-info li strong {
    color: #c4a265;
}

/* Privacy Consent Checkbox */
.sb-privacy-consent {
    margin: 20px 0;
    padding: 16px;
    background: #faf8f5;
    border-radius: 8px;
    border: 1px solid #e0dcd7;
}

.sb-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}

.sb-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #c4a265;
}

.sb-consent-label a {
    color: #c4a265;
    text-decoration: underline;
}

.sb-consent-label a:hover {
    color: #b3934f;
}

/* Guest Row (Adults + Children side by side) */
.sb-guest-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.sb-guest-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-guest-field label {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
    white-space: nowrap;
}

/* BBQ Option Section */
.sb-option-section {
    margin-top: 24px;
    padding: 16px 20px;
    background: #faf8f5;
    border: 1px solid #e8e4de;
    border-radius: 10px;
}

.sb-option-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.sb-option-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #c4a265;
}

.sb-option-text {
    flex: 1;
}

.sb-option-text strong {
    font-size: 15px;
    color: #2d2d2d;
    display: block;
    margin-bottom: 2px;
}

.sb-option-price {
    font-size: 16px;
    font-weight: 700;
    color: #c4a265;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 16px;
    align-self: center;
}

.sb-option-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Capacity Warning */
.sb-capacity-warning {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff3f3;
    border: 1px solid #e8b4b4;
    border-radius: 8px;
    color: #b44;
    font-size: 13px;
    text-align: center;
}

.sb-capacity-warning.visible {
    display: block;
}

/* Children free note */
.sb-children-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .sb-guest-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .sb-option-label {
        flex-wrap: wrap;
    }

    .sb-option-price {
        margin-left: 28px;
        padding-left: 0;
    }
}
