/* ==========================================================================
   book-room.css — Booking Form
   West Home Hotel — matches result.css / availability-form.css tokens
   ========================================================================== */

   @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

   #book-room-page {
     --wh-ink: #1B2430;
     --wh-ink-soft: #384254;
     --wh-cream: #FAF7F2;
     --wh-cream-dark: #F0EAE0;
     --wh-gold: #B8860B;
     --wh-gold-soft: #E8D8A8;
     --wh-green: #2F6F4E;
     --wh-green-bg: #EAF4EE;
     --wh-red: #B3423A;
     --wh-red-bg: #FBEAE8;
     --wh-muted: #6B7280;
     --wh-border: #E4DFD5;
     --wh-radius: 14px;
     --wh-shadow: 0 6px 24px rgba(27, 36, 48, 0.08);
   
     font-family: 'Inter', sans-serif;
     background: var(--wh-cream);
     padding: 3rem 1.25rem 4rem;
     width: 100%;
     float: left;
   }
   
   #book-room-page * {
     box-sizing: border-box;
   }
   
   .book-wrap {
     max-width: 960px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: 1.5fr 1fr;
     gap: 2rem;
     align-items: start;
   }
   
   /* ---------- Form card ---------- */
   .book-form-card {
     background: #fff;
     border: 1px solid var(--wh-border);
     border-radius: var(--wh-radius);
     box-shadow: var(--wh-shadow);
     padding: 2.25rem;
   }
   
   .book-eyebrow {
     font-size: 0.75rem;
     letter-spacing: 0.14em;
     text-transform: uppercase;
     color: var(--wh-gold);
     font-weight: 700;
     margin: 0 0 0.5rem;
   }
   
   .book-form-card h1 {
     font-family: 'Playfair Display', serif;
     font-size: clamp(1.5rem, 3vw, 1.9rem);
     color: var(--wh-ink);
     margin: 0 0 1.75rem;
   }
      
   span#guest-error {
    margin-top: -47px;
    float: left;
    color: #B3423A;
}

   .book-field-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1rem;
     margin-bottom: 1.25rem;
   }
   
   .book-field {
     display: flex;
     flex-direction: column;
     gap: 0.4rem;
     margin-bottom: 1.25rem;
   }
   .book-field #room {
    width: 100%;
    float: left;
    padding: 0.75rem 0.9rem;
}

   
   .book-field label {
     font-size: 0.78rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     color: var(--wh-ink-soft);
   }
   
   .book-field input,
   .book-field select,
   .book-field textarea {
     font-family: 'Inter', sans-serif;
     font-size: 0.95rem;
     color: var(--wh-ink);
     background: var(--wh-cream);
     border: 1.5px solid var(--wh-border);
     border-radius: 9px;
     padding: 0.75rem 0.9rem;
     width: 100%;
     transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
   }
   
   .book-field textarea {
     resize: vertical;
     min-height: 90px;
   }
   
   .book-field input:focus,
   .book-field select:focus,
   .book-field textarea:focus {
     outline: none;
     border-color: var(--wh-gold);
     background: #fff;
     box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
   }
   
   .book-field .field-error {
     font-size: 0.78rem;
     color: var(--wh-red);
     min-height: 1em;
   }
   
   .book-field .field-success i {
     color: var(--wh-green);
   }
   
   /* ---------- Submit banner (replaces alert()) ---------- */
   .book-form-banner {
     display: flex;
     align-items: flex-start;
     gap: 0.6rem;
     font-size: 0.88rem;
     font-weight: 500;
     border-radius: 9px;
     padding: 0.85rem 1rem;
     margin-bottom: 1.25rem;
   }
   
   .book-form-banner.error {
     background: var(--wh-red-bg);
     border: 1px solid rgba(179, 66, 58, 0.25);
     color: var(--wh-red);
   }
   
   .book-form-banner.success {
     background: var(--wh-green-bg);
     border: 1px solid rgba(47, 111, 78, 0.25);
     color: var(--wh-green);
   }
   
   .book-form-banner[hidden] {
     display: none;
   }
   
    /* Prevent iOS date input auto-shrinking, scaling, and default browser styles */
    input[type="date"] {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      width: 100%;
      box-sizing: border-box;
      min-height: 48px;
      font-size: 16px !important;
      font-family: inherit;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 4px;
      padding: 10px 12px;
      line-height: normal;
  }
  
  input[type="date"]::-webkit-date-and-time-value {
      text-align: left;
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator {
      cursor: pointer;
      opacity: 0.8;
  }

/* Fix iOS alignment for date pickers */
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 1.2em;
}
   /* ---------- Submit button ---------- */
   .book-submit {
     width: 100%;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.6rem;
     background: var(--wh-ink);
     color: #fff;
     border: none;
     font-family: 'Inter', sans-serif;
     font-size: 0.95rem;
     font-weight: 600;
     padding: 0.9rem 1.5rem;
     border-radius: 9px;
     cursor: pointer;
     transition: background 0.2s ease, transform 0.15s ease;
   }
   
   .book-submit:hover:not(:disabled) {
     background: var(--wh-gold);
     transform: translateY(-1px);
   }
   
   .book-submit:disabled {
     opacity: 0.7;
     cursor: not-allowed;
   }


small.child-policy-note {
  font-size: 12px !important;
  line-height: 1.5;
  margin-top: -18px !important;
  margin-bottom: -31px !important;
  color: #875f22 !important;
}
   
   .book-spinner {
     width: 16px;
     height: 16px;
     border: 2px solid rgba(255,255,255,0.4);
     border-top-color: #fff;
     border-radius: 50%;
     animation: book-spin 0.7s linear infinite;
   }
   
   @keyframes book-spin {
     to { transform: rotate(360deg); }
   }
   
   /* ---------- Summary sidebar ---------- */
   .book-summary-card {
     background: linear-gradient(135deg, var(--wh-ink) 0%, #2A3547 100%);
     color: #fff;
     border-radius: var(--wh-radius);
     padding: 1.75rem;
     position: sticky;
     top: 20%;
   }

   .book-summary-card h3 {
     font-family: 'Playfair Display', serif;
     font-size: 2rem;
     margin: 0 0 1.25rem;
     color: #e8d8a9;
   }
   
   .book-summary-row {
     display: flex;
     justify-content: space-between;
     font-size: 0.88rem;
     padding: 0.55rem 0;
     border-bottom: 1px solid rgba(255,255,255,0.12);
   }
   
   .book-summary-row span:first-child {
     color: rgba(255,255,255,0.65);
   }
   
   .book-summary-total {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     margin-top: 1rem;
     padding-top: 1rem;
     border-top: 1px solid rgba(255,255,255,0.2);
   }
   
   .book-summary-total span:first-child {
     font-size: 0.85rem;
     color: rgba(255,255,255,0.7);
   }
   
   .book-summary-total span:last-child {
     font-family: 'Playfair Display', serif;
     font-size: 1.6rem;
     font-weight: 700;
     color: var(--wh-gold-soft);
   }
   
   /* ---------- Responsive ---------- */
   @media (max-width: 780px) {
     .book-wrap {
       grid-template-columns: 1fr;
     }
     .book-summary-card {
       position: static;
       order: -1;
     }
   }
   
   @media (max-width: 480px) {
     .book-field-row {
       grid-template-columns: 1fr;
     }
     .book-form-card {
       padding: 1.5rem;
     }
   }