.booking-page {
    background: #081d20;
    color: #f2f5ee;
    min-height: 100vh;
    font-family: Manrope, Arial, sans-serif
}

.booking-shell {
    max-width: 960px;
    margin: auto;
    padding: 36px 20px 90px
}

.booking-shell .back {
    color: #8be9dc;
    text-decoration: none
}

.booking-shell .eyebrow {
    margin-top: 55px;
    color: #8be9dc;
    letter-spacing: .18em;
    font-size: 12px
}

.booking-shell h1 {
    font-size: clamp(36px, 7vw, 76px);
    line-height: 1.05;
    margin: 15px 0 26px
}

.booking-shell h1 em {
    color: #8be9dc
}

.demo-banner {
    background: #244447;
    border: 1px solid #6da9a4;
    padding: 16px 20px;
    border-radius: 12px;
    line-height: 1.8
}

.booking-form-card {
    background: #f2f0e9;
    color: #10292b;
    border-radius: 22px;
    padding: clamp(20px, 4vw, 42px);
    margin-top: 24px
}

.booking-form-card h2 {
    font-size: 19px;
    margin: 30px 0 16px;
    border-bottom: 1px solid #c5d1cc;
    padding-bottom: 12px
}

.plan-options {
    display: grid;
    gap: 10px
}

.plan-options label {
    padding: 15px;
    border: 1px solid #b8c8c4;
    border-radius: 12px;
    cursor: pointer
}

.plan-options small {
    color: #66787a;
    margin-left: 6px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
    font-weight: 700
}

.field input,
.field select {
    padding: 14px;
    border: 1px solid #b8c8c4;
    border-radius: 9px;
    font: inherit;
    width: 100%;
    background: #fff;
    color: #10292b
}

.time-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px
}

.time-options button {
    padding: 13px 4px;
    background: #fff;
    border: 1px solid #a5bbb6;
    border-radius: 10px;
    font: inherit;
    cursor: pointer
}

.time-options button[aria-pressed=true] {
    background: #006e73;
    color: white
}

.time-options button:disabled {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through
}

.time-summary {
    background: #e2ece7;
    padding: 13px;
    border-radius: 10px;
    line-height: 1.6
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px
}

.checkout {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #c5d1cc
}

.checkout button {
    width: 100%;
    padding: 18px;
    border: 0;
    border-radius: 12px;
    background: #aab9b6;
    color: #fff;
    font-weight: 800;
    cursor: not-allowed
}

.checkout small {
    display: block;
    margin-top: 12px;
    line-height: 1.6
}

@media(max-width:650px) {
    .time-options {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .customer-grid {
        grid-template-columns: 1fr
    }

    .booking-shell {
        padding-top: 20px
    }
}

/* 予約ボタン: 認証前・処理中・仮押さえ済みはグレー */
#create-hold-btn,
#create-hold-btn:disabled {
  background: #a9bab8;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
  border: none;
  transition: background .2s ease, transform .2s ease;
}
/* 日時選択とTurnstile認証が両方完了したときだけ緑 */
#create-hold-btn.hold-ready:not(:disabled) {
  background: #006e73;
  color: #fff;
  cursor: pointer;
}
#create-hold-btn.hold-ready:not(:disabled):hover {
  background: #00575c;
  transform: translateY(-2px);
}

/* 仮押さえキャンセルボタン */
#cancel-hold-btn:not([hidden]) { display: block; margin-top: 10px; background: #f0f4f3; color: #00575c; border: 1px solid #94b9b6; cursor: pointer; }
#cancel-hold-btn:disabled { opacity: .6; cursor: wait; }
#cancel-hold-btn[hidden] { display: none !important; }

/* Booking pricing controls */
.booking-extra {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.booking-extra [hidden]{display:none!important}
.price-row{font-size:1.1rem}.price-row strong{font-size:1.6rem;color:#006e73}
.price-breakdown{font-size:.88rem;color:#506765;line-height:1.6}
@media(max-width:650px){.booking-extra{grid-template-columns:1fr}}

/* Square payment controls: override the generic disabled-looking checkout button. */
#square-pay-btn:not([hidden]):not(:disabled),
#check-payment-btn:not([hidden]):not(:disabled) {
  display: block; margin-top: 10px; background: #006e73;
  color: #fff; cursor: pointer; opacity: 1; pointer-events: auto;
}
#square-pay-btn:not([hidden]):not(:disabled):hover,
#check-payment-btn:not([hidden]):not(:disabled):hover { background: #00575c; }
#square-pay-btn:disabled, #check-payment-btn:disabled {
  opacity: .55; cursor: wait;
}
#square-pay-btn[hidden], #check-payment-btn[hidden] { display: none !important; }
