/* Booking Page Styles */

/* ==================== Stripe Modal/Popup z-index Fix ==================== */
/* Stripe Link 验证码弹窗和其他 Stripe 弹窗的 z-index 修复 */
/* 确保 Stripe 的所有 iframe 和弹窗都能显示在页面最上层 */
iframe[name^="__privateStripeFrame"],
iframe[name^="__stripeJSLinkAccountSessionsClient"],
iframe[src*="stripe.com"],
div[class*="__PrivateStripeElement"],
.p-Dialog,
.p-Overlay,
.StripeElement iframe,
#stripe-link-popup,
[data-stripe-buybutton-portal] {
    z-index: 2147483647 !important;
}

/* Stripe 弹窗背景遮罩 */
.p-Overlay-backdrop,
.StripeCheckout-backdrop,
[data-testid="modal-backdrop"] {
    z-index: 2147483646 !important;
}

/* ==================== Stripe Link 官方按钮样式 ==================== */
.stripe-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 24px;
    background-color: #00D924;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Ubuntu, sans-serif;
    margin-bottom: 12px;
}

.stripe-link-button:hover {
    background-color: #00C220;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.13);
}

.stripe-link-button:active {
    background-color: #00B01D;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.14);
    transform: translateY(1px);
}

.stripe-link-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 217, 36, 0.4), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.stripe-link-button svg {
    height: 14px;
    width: auto;
}

.stripe-link-button.active {
    background-color: #00B01D;
    box-shadow: 0 0 0 3px rgba(0, 217, 36, 0.4), 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* 支付方式分隔线 */
.payment-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.payment-divider span {
    padding: 0 16px;
    background: #fff;
    color: #9ca3af;
    font-size: 13px;
}

/* Header Navigation Override for Booking Page */
body .header-top-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body .header-top-container .main-navigation a {
    color: #333 !important;
    text-shadow: none !important;
}

body .header-top-container .main-navigation a:hover {
    color: #D2691E !important;
    text-shadow: none !important;
}

body .header-top-container .main-navigation a.active {
    color: #D2691E !important;
    text-shadow: none !important;
}

/* Breadcrumb Navigation - Consistent with facilities page */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #D2691E;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #D2691E;
    font-weight: 500;
}

/* Hero Banner - Completely Transparent */
.universal-hero-banner {
    background: none !important;
}

.universal-hero-banner .hero-background,
.universal-hero-banner .hero-overlay {
    background: none !important;
    display: none !important;
}

.universal-hero-banner .hero-bg-image {
    display: none !important;
}

/* Hero Banner Text - Black Color without shadow */
.universal-hero-banner .hero-title {
    color: #333 !important;
    text-shadow: none !important;
}

.universal-hero-banner .hero-subtitle {
    color: #666 !important;
    text-shadow: none !important;
}

/* Basic Reset */
* {
    box-sizing: border-box;
}

/* Main Section */
.booking-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-title p {
    font-size: 16px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Expiration Timer */
.expiration-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 8px;
    max-width: 400px;
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
}

.expiration-timer i {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #d84315;
}

.expiration-timer.warning {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

.expiration-timer.warning .timer-display {
    color: #c62828;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 80px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.step.active .step-number {
    background: #D2691E;
    color: white;
}

.step.active .step-label {
    color: #D2691E;
    font-weight: 600;
}

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

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 20px;
    margin-top: -35px;
    z-index: 1;
}

.step.active ~ .step-line {
    background: #D2691E;
}

/* Main Container */
.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Form Side */
.booking-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-step {
    display: none;
}

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

.form-card {
    padding: 40px;
}

.form-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 3px solid #D2691E;
    padding-bottom: 15px;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #D2691E;
    border-radius: 2px;
}

/* Form Subsections */
.form-subsection {
    margin-bottom: 30px;
}

.subsection-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    padding-left: 15px;
    border-left: 3px solid #D2691E;
    background: rgba(210, 105, 30, 0.05);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Form Elements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #dc3545;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

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

/* Phone Input Group with Country Code */
.phone-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.country-code-select {
    padding: 12px 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    flex-shrink: 0;
}

/* Country Code Select - Allow typing to search */
.country-code-select option {
    padding: 8px;
}

.country-code-select:focus {
    outline: none;
    border-color: #D2691E;
}

/* Email Verification */
.email-verification-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.email-verification-group input {
    flex: 1;
}

.btn-send-code {
    padding: 12px 20px;
    background: #D2691E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.btn-send-code:hover {
    background: #B8621E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

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

.verification-code-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verification-code-group input {
    flex: 1;
    text-align: center;
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 600;
}

.btn-verify-code {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.btn-verify-code:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

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

.verification-status {
    margin-top: 8px;
    font-size: 14px;
    min-height: 20px;
}

.verification-status.success {
    color: #28a745;
    font-weight: 500;
}

.verification-status.success::before {
    content: '✓ ';
}

.verification-status.error {
    color: #dc3545;
    font-weight: 500;
}

.verification-status.error::before {
    content: '✗ ';
}

.verification-status.info {
    color: #17a2b8;
}

.verification-status.info::before {
    content: 'ℹ ';
}
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.phone-input-group input[type="tel"] {
    flex: 1;
}

/* Service Options */
.service-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #D2691E;
    background: rgba(210, 105, 30, 0.05);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #D2691E;
    border-color: #D2691E;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.service-info {
    flex: 1;
}

.service-info strong {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.service-price {
    color: #D2691E;
    font-weight: bold;
    font-size: 16px;
    margin-left: 10px;
}

.service-info p {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.payment-option:hover {
    border-color: #D2691E;
    background: rgba(210, 105, 30, 0.05);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-option input[type="radio"]:checked + .payment-radio {
    border-color: #D2691E;
}

.payment-option input[type="radio"]:checked + .payment-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #D2691E;
    border-radius: 50%;
}

/* Highlight selected payment option - modern browsers */
.payment-option:has(input[type="radio"]:checked) {
    border-color: #D2691E;
    background: rgba(210, 105, 30, 0.08);
    box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.2);
}

/* Fallback for browsers without :has() support */
.payment-option.selected {
    border-color: #D2691E !important;
    background: rgba(210, 105, 30, 0.08) !important;
    box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.2) !important;
}

.payment-info strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.payment-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.payment-icon {
    font-size: 18px;
    margin-left: 8px;
}

/* Payment Method Buttons */
.payment-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Express Checkout Element 容器 - 移除默认高亮 */
#express-checkout-element {
    outline: none !important;
    border: none;
    background: transparent;
    position: relative;
    z-index: 1;
}

#express-checkout-element:focus,
#express-checkout-element:focus-within,
#express-checkout-element *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Stripe Payment Element 容器 */
#stripe-payment-element {
    position: relative;
    z-index: 1;
    outline: none !important;
}

#stripe-payment-element:focus,
#stripe-payment-element:focus-within,
#stripe-payment-element *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Stripe 3D Secure 验证弹窗 - 确保显示在最上层 */
body > iframe[src*="stripe"],
body > iframe[name*="__privateStripe"],
body > div[class*="__PrivateStripe"],
iframe[name="__stripeJSChallengeFrame"],
iframe[name*="stripe"],
div[class*="StripeElement"] iframe {
    z-index: 2147483647 !important;
}

/* Stripe 3DS 验证遮罩层 */
body > div[style*="z-index"]:has(iframe[src*="stripe"]) {
    z-index: 2147483647 !important;
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 44px;
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.payment-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.payment-btn.active {
    border-color: #D2691E;
    background: #D2691E;
    color: white;
}

.payment-btn-icon {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.payment-btn-icon i {
    font-size: 18px;
}

/* Brand-specific colors */
.payment-btn[data-payment="wechat"]:hover,
.payment-btn[data-payment="wechat"].active {
    border-color: #00d611;
    background: #00d611;
}

.payment-btn[data-payment="alipay"]:hover,
.payment-btn[data-payment="alipay"].active {
    border-color: #1677ff;
    background: #1677ff;
}

.payment-btn[data-payment="paypay"]:hover,
.payment-btn[data-payment="paypay"].active {
    border-color: #ff4040;
    background: #ff4040;
}

.payment-btn[data-payment="paypal"]:hover,
.payment-btn[data-payment="paypal"].active {
    border-color: #0070ba;
    background: #0070ba;
}

.payment-btn[data-payment="creditcard"]:hover,
.payment-btn[data-payment="creditcard"].active {
    border-color: #6c757d;
    background: #6c757d;
}

/* Override text color for active buttons */
.payment-btn.active {
    color: white;
}

/* Hover effects with brand colors */
.payment-btn[data-payment="wechat"]:hover:not(.active) {
    background: rgba(0, 214, 17, 0.1);
}

.payment-btn[data-payment="alipay"]:hover:not(.active) {
    background: rgba(22, 119, 255, 0.1);
}

.payment-btn[data-payment="paypay"]:hover:not(.active) {
    background: rgba(255, 64, 64, 0.1);
}

.payment-btn[data-payment="paypal"]:hover:not(.active) {
    background: rgba(0, 112, 186, 0.1);
}

.payment-btn[data-payment="creditcard"]:hover:not(.active) {
    background: rgba(108, 117, 125, 0.1);
}

/* Credit Card Fields */
.card-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card-fields-grid .form-group.full-width {
    grid-column: span 2;
}

.card-element-input {
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.card-element-input.StripeElement--focus,
.card-element-input:focus {
    border-color: #D2691E;
    box-shadow: 0 0 0 3px rgba(210,105,30,.1);
}

.card-element-input.StripeElement--invalid {
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .card-fields-grid {
        grid-template-columns: 1fr;
    }
    .card-fields-grid .form-group.full-width {
        grid-column: span 1;
    }
}

/* Step 4: Confirmation Styles */
.btn-confirm {
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-confirm:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Step 5: Payment Processing Styles */
.payment-processing {
    text-align: center;
    padding: 60px 20px;
}

.processing-icon {
    font-size: 48px;
    color: #D2691E;
    margin-bottom: 20px;
}

.payment-processing h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.payment-processing p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

#paymentMethodContent {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

/* Step 6: Booking Complete Styles */
.booking-complete {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.booking-complete h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.booking-complete p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.reservation-number {
    background: linear-gradient(135deg, #D2691E, #B8621E);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    font-size: 18px;
}

.next-steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.next-steps h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.next-steps li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: #D2691E;
    color: white;
}

.btn-primary:hover {
    background: #B8621E;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #D2691E;
}

.payment-btn-text {
    font-weight: 500;
    white-space: nowrap;
}

.online-payment-container .payment-method-buttons {
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.3s ease;
}

.online-payment-container input[type="radio"]:checked ~ .payment-radio ~ .payment-info .payment-method-buttons {
    opacity: 1;
    pointer-events: auto;
}

/* Confirmation Summary */
.confirmation-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #666;
}

.summary-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    flex: 1;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: #D2691E;
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: #B8621E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.3);
}

/* Info Cards Side */
.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.info-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(210, 105, 30, 0.1);
}

.card-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #D2691E;
    padding-bottom: 10px;
}

.card-title i {
    color: #D2691E;
    font-size: 20px;
}

/* Reservation Details */
.reservation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.total {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.1), rgba(205, 133, 63, 0.1));
    padding: 15px;
    border-radius: 10px;
    border: none;
    margin-top: 10px;
}

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

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.detail-item.total .detail-label {
    color: #D2691E;
    font-weight: 600;
    font-size: 16px;
}

.detail-item.total .detail-value {
    color: #D2691E;
    font-size: 20px;
    font-weight: bold;
}

.detail-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #D2691E, transparent);
    margin: 10px 0;
}

/* Services Summary */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.service-name {
    color: #333;
    font-weight: 500;
}

.service-cost {
    color: #D2691E;
    font-weight: 600;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    color: #D2691E;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 2px;
}

.contact-item span {
    color: #666;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reservation-info {
        position: static;
        order: -1;
    }

    .step-indicator {
        margin-bottom: 30px;
    }

    .step-line {
        margin: 0 10px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    /* Payment buttons keep full width on medium screens */
}

@media (max-width: 768px) {
    .booking-section {
        padding: 40px 0;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .form-card {
        padding: 25px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .step-indicator {
        overflow-x: auto;
        padding: 0 10px;
    }

    .step-label {
        font-size: 12px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-line {
        margin: 0 5px;
        margin-top: -30px;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
        margin: 0;
    }

    .booking-container {
        padding: 0 15px;
        gap: 20px;
    }

    /* Payment buttons - already full width in flex column */
    .payment-method-buttons {
        gap: 10px;
    }
}

/* Tax Included Text */
.tax-included-text {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
    font-weight: 400;
    white-space: nowrap;
}

.price-amount,
.total-amount {
    white-space: nowrap;
}

/* ==================== Loading Overlay ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid #e0e0e0;
    border-top-color: #8a7a5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

/* ==================== Page Content Transition ==================== */
.page-content-wrapper {
    transition: opacity 0.6s ease;
}

.page-content-wrapper.fade-in {
    opacity: 1 !important;
}