* { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold: #C9A84C;
      --gold-light: #F5ECD7;
      --gold-dark: #8B6914;
      --brown: #4A2C0A;
      --text: #2D2D2D;
      --gray: #6B6B6B;
      --light: #F8F5F0;
      --white: #FFFFFF;
      --border: #E5DDD0;
      --green: #2E7D32;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--light);
      color: var(--text);
      min-height: 100vh;
    }

    /* ─── HEADER ─── */
    .header {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 0 24px;
      display: flex;
      align-items: center;
      height: 76px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    }
    .header-logo {
      width: 64px; height: 64px;
      background: none;
      border-radius: 0;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .header-name {
      margin-left: 12px;
      font-weight: 700;
      font-size: 18px;
      color: var(--brown);
      letter-spacing: -0.3px;
    }
    .header-tagline {
      margin-left: 8px;
      font-size: 13px;
      color: var(--gray);
      border-left: 1px solid var(--border);
      padding-left: 10px;
    }
    .header-right {
      margin-left: auto;
      font-size: 13px;
      color: var(--gray);
    }

    /* ─── LAYOUT ─── */
    .container {
      max-width: 820px;
      margin: 0 auto;
      padding: 32px 16px 80px;
    }

    /* ─── STEPS ─── */
    .steps {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 32px;
    }
    .step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--gray);
      font-weight: 500;
    }
    .step-num {
      width: 26px; height: 26px;
      border-radius: 50%;
      background: var(--border);
      color: var(--gray);
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; font-weight: 700;
    }
    .step.active .step-num {
      background: var(--gold);
      color: white;
    }
    .step.active { color: var(--brown); }
    .step.done .step-num {
      background: var(--green);
      color: white;
    }
    .step.done { color: var(--green); }
    .step-divider {
      flex: 1; height: 2px;
      background: var(--border);
      margin: 0 8px;
    }
    .step-divider.done { background: var(--green); }

    /* ─── SCREENS ─── */
    .screen { display: none; }
    .screen.active { display: block; }

    /* ─── SERVICE SELECT ─── */
    .section-title {
      font-size: 22px; font-weight: 700;
      color: var(--brown); margin-bottom: 6px;
    }
    .section-sub {
      font-size: 14px; color: var(--gray); margin-bottom: 24px;
    }

    .service-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 18px 20px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 16px;
      cursor: pointer;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .service-card:hover {
      border-color: var(--gold);
      box-shadow: 0 2px 12px rgba(201,168,76,0.12);
    }
    .service-card.selected {
      border-color: var(--gold);
      background: var(--gold-light);
    }
    .service-icon {
      width: 44px; height: 44px;
      background: var(--gold-light);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; flex-shrink: 0;
    }
    .service-info { flex: 1; }
    .service-name { font-weight: 600; font-size: 15px; color: var(--text); }
    .service-meta { font-size: 13px; color: var(--gray); margin-top: 3px; }
    .service-price {
      font-weight: 700;
      font-size: 15px;
      color: var(--gold-dark);
      white-space: nowrap;
    }
    .service-book-btn {
      background: var(--gold);
      color: white;
      border: none;
      padding: 9px 20px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s;
    }
    .service-book-btn:hover { background: var(--gold-dark); }

    /* ─── CALENDAR ─── */
    .calendar-layout {
      display: grid;
      grid-template-columns: 1fr 280px;
      gap: 20px;
    }
    @media (max-width: 620px) {
      .calendar-layout { grid-template-columns: 1fr; }
    }
    .calendar-box {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
    }
    .cal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .cal-nav {
      background: none; border: 1px solid var(--border);
      border-radius: 6px; width: 32px; height: 32px;
      cursor: pointer; font-size: 16px;
      display: flex; align-items: center; justify-content: center;
      color: var(--gray);
    }
    .cal-nav:hover { background: var(--gold-light); color: var(--gold-dark); border-color: var(--gold); }
    .cal-month { font-weight: 700; font-size: 16px; color: var(--brown); }
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
    .cal-dow {
      text-align: center; font-size: 11px; font-weight: 600;
      color: var(--gray); padding: 4px 0 8px;
      text-transform: uppercase; letter-spacing: 0.5px;
    }
    .cal-day {
      text-align: center; padding: 7px 4px;
      font-size: 14px; border-radius: 8px;
      cursor: pointer; color: var(--text);
      transition: background 0.1s;
    }
    .cal-day:hover:not(.empty):not(.past):not(.closed) {
      background: var(--gold-light);
      color: var(--gold-dark);
    }
    .cal-day.today { font-weight: 700; color: var(--gold-dark); }
    .cal-day.selected {
      background: var(--gold) !important;
      color: white !important;
      font-weight: 700;
    }
    .cal-day.past, .cal-day.closed {
      color: #CCC; cursor: default;
    }
    .cal-day.empty { cursor: default; }
    .cal-day.has-slots { position: relative; }
    .cal-day.has-slots::after {
      content: '';
      width: 5px; height: 5px;
      background: var(--gold);
      border-radius: 50%;
      position: absolute;
      bottom: 2px; left: 50%; transform: translateX(-50%);
    }
    .cal-day.selected::after { background: rgba(255,255,255,0.7); }

    .time-box {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
    }
    .time-box-title {
      font-weight: 600; font-size: 14px;
      color: var(--brown); margin-bottom: 14px;
    }
    .time-slot {
      display: block; width: 100%;
      text-align: center;
      background: var(--gold-light);
      border: 1.5px solid var(--gold);
      border-radius: 8px;
      padding: 10px;
      margin-bottom: 8px;
      font-size: 14px; font-weight: 600;
      color: var(--gold-dark);
      cursor: pointer;
      transition: background 0.15s;
    }
    .time-slot:hover, .time-slot.selected {
      background: var(--gold);
      color: white;
    }
    .time-slot.selected { border-color: var(--gold-dark); }
    .time-slot.unavailable {
      background: #F5F5F5;
      border-color: #DDD;
      color: #BBB;
      cursor: not-allowed;
      text-decoration: line-through;
    }
    .time-slot.unavailable:hover { background: #F5F5F5; color: #BBB; }
    .time-slot.in-use {
      background: #FFF3E0;
      border-color: #FFB74D;
      color: #E65100;
      cursor: not-allowed;
      font-size: 12px;
    }
    .time-slot.in-use:hover { background: #FFF3E0; color: #E65100; }

    .no-times { font-size: 13px; color: var(--gray); text-align: center; padding: 20px 0; }

    /* ─── BOOKING SUMMARY SIDEBAR ─── */
    .booking-summary {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
    }
    .summary-title { font-weight: 700; font-size: 15px; color: var(--brown); margin-bottom: 14px; }
    .summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; }
    .summary-label { color: var(--gray); }
    .summary-val { font-weight: 600; color: var(--text); text-align: right; }
    .summary-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
    .summary-deposit {
      background: var(--gold-light);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 13px;
      color: var(--gold-dark);
      margin-top: 12px;
    }

    /* ─── FORM ─── */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    @media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }
    .form-full { grid-column: 1 / -1; }
    .form-group { display: flex; flex-direction: column; }
    .form-label {
      font-size: 13px; font-weight: 600;
      color: var(--brown); margin-bottom: 6px;
    }
    .form-label span { color: var(--gold); margin-left: 2px; }
    .form-input, .form-select, .form-textarea {
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      font-size: 14px;
      color: var(--text);
      background: var(--white);
      font-family: inherit;
      transition: border-color 0.15s;
      outline: none;
    }
    .form-input:focus, .form-select:focus, .form-textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    }
    .form-textarea { resize: vertical; min-height: 80px; }
    .policy-box {
      background: var(--gold-light);
      border: 1px solid var(--gold);
      border-radius: 10px;
      padding: 14px 16px;
      font-size: 13px;
      color: var(--brown);
      line-height: 1.6;
      margin-top: 4px;
    }
    .policy-box strong { display: block; margin-bottom: 4px; font-size: 13px; }

    /* ─── BUTTONS ─── */
    .btn-row {
      display: flex;
      gap: 12px;
      margin-top: 24px;
      justify-content: flex-end;
    }
    .btn-back {
      background: none;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 11px 24px;
      font-size: 14px; font-weight: 600;
      color: var(--gray);
      cursor: pointer;
    }
    .btn-back:hover { border-color: var(--gray); color: var(--text); }
    .btn-next {
      background: var(--gold);
      border: none;
      border-radius: 8px;
      padding: 11px 28px;
      font-size: 14px; font-weight: 700;
      color: white;
      cursor: pointer;
      transition: background 0.15s;
    }
    .btn-next:hover { background: var(--gold-dark); }
    .btn-next:disabled { background: #CCC; cursor: not-allowed; }

    /* ─── CONFIRMATION ─── */
    .confirm-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 40px 32px;
      text-align: center;
      max-width: 520px;
      margin: 0 auto;
    }
    .confirm-icon {
      width: 72px; height: 72px;
      background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 36px;
      margin: 0 auto 20px;
    }
    .confirm-title {
      font-size: 24px; font-weight: 800;
      color: var(--brown); margin-bottom: 8px;
    }
    .confirm-sub {
      font-size: 15px; color: var(--gray); margin-bottom: 28px;
      line-height: 1.5;
    }
    .confirm-details {
      background: var(--light);
      border-radius: 12px;
      padding: 18px 20px;
      text-align: left;
      margin-bottom: 20px;
    }
    .confirm-row {
      display: flex;
      gap: 10px;
      font-size: 14px;
      margin-bottom: 10px;
    }
    .confirm-row:last-child { margin-bottom: 0; }
    .confirm-key { color: var(--gray); min-width: 90px; }
    .confirm-val { font-weight: 600; color: var(--text); }
    .confirm-deposit-note {
      background: #FFF3E0;
      border: 1px solid #FFB74D;
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 13px;
      color: #E65100;
      margin-bottom: 20px;
      text-align: left;
    }
    .btn-new {
      background: var(--gold);
      border: none; border-radius: 8px;
      padding: 12px 28px;
      font-size: 14px; font-weight: 700;
      color: white; cursor: pointer;
    }
    .btn-new:hover { background: var(--gold-dark); }

    /* ─── FOOTER ─── */
    .footer {
      text-align: center;
      padding: 20px;
      font-size: 12px;
      color: #AAA;
      border-top: 1px solid var(--border);
      margin-top: 40px;
    }

    /* ─── PROMO BADGE ─── */
    .promo-badge {
      display: inline-block;
      background: var(--gold-light);
      border: 1px solid var(--gold);
      color: var(--gold-dark);
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      margin-left: 8px;
      vertical-align: middle;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    /* ─── INFO BANNER ─── */
    .info-banner {
      background: var(--gold-light);
      border: 1px solid var(--gold);
      border-radius: 10px;
      padding: 12px 16px;
      font-size: 13px;
      color: var(--gold-dark);
      margin-bottom: 24px;
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .info-banner-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

    /* ─── MODAL ─── */
    .modal-overlay {
      display: none;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 200;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-overlay.open { display: flex; }
    .modal-box {
      background: var(--white);
      border-radius: 16px;
      padding: 28px 24px;
      width: 100%;
      max-width: 480px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.25);
      max-height: 90vh;
      overflow-y: auto;
    }
    .modal-header {
      display: flex; align-items: center;
      justify-content: space-between;
      margin-bottom: 6px;
    }
    .modal-title { font-size: 19px; font-weight: 800; color: var(--brown); }
    .modal-close {
      background: none; border: none;
      font-size: 22px; color: var(--gray);
      cursor: pointer; line-height: 1;
      padding: 4px 8px; border-radius: 6px;
    }
    .modal-close:hover { background: var(--light); color: var(--text); }
    .modal-sub { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
    .size-option {
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 10px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      transition: border-color 0.15s, background 0.15s;
    }
    .size-option:hover { border-color: var(--gold); background: var(--gold-light); }
    .size-option-left { flex: 1; }
    .size-option-name { font-weight: 700; font-size: 15px; color: var(--text); }
    .size-option-meta { font-size: 13px; color: var(--gray); margin-top: 3px; }
    .size-option-price { font-weight: 800; font-size: 16px; color: var(--gold-dark); white-space: nowrap; }

    /* category */
    .category-label {
      font-size: 11px; font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--gray);
      margin: 20px 0 10px;
    }
    .category-label:first-child { margin-top: 0; }
  
    /* ─── ATTACHMENT BAR ─── */
    .attach-bar {
      border: 2px dashed var(--gold);
      border-radius: 10px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      background: var(--gold-light);
      margin-top: 8px;
      transition: background 0.15s, border-color 0.15s;
    }
    .attach-bar:hover { background: #EFD99A; border-color: var(--gold-dark); }
    .attach-bar-icon { font-size: 20px; flex-shrink: 0; }
    .attach-bar-text { flex: 1; }
    .attach-bar-title { font-size: 13px; font-weight: 700; color: var(--gold-dark); }
    .attach-bar-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
    .attach-bar-btn {
      background: var(--gold);
      color: white;
      border: none;
      border-radius: 7px;
      padding: 7px 14px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
      pointer-events: none;
    }
    .attach-file-list {
      margin-top: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .attach-file-chip {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 5px 12px;
      font-size: 12px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .attach-file-chip span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .attach-remove {
      cursor: pointer;
      color: var(--gray);
      font-size: 14px;
      line-height: 1;
      font-weight: 700;
    }
    .attach-remove:hover { color: #c0392b; }

    .service-icon img,
    .header-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    @media (max-width: 768px) {
      .header {
        height: auto;
        min-height: 64px;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 6px 10px;
      }
      .header-tagline {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
      }
      .header-right {
        margin-left: 0;
        width: 100%;
      }
      .container {
        padding: 24px 12px 60px;
      }
      .steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 24px;
      }
      .step-divider {
        display: none;
      }
      .step {
        padding: 6px 10px;
        border-radius: 999px;
        background: var(--white);
        border: 1px solid var(--border);
      }
      .service-card {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
      }
      .service-icon {
        width: 72px !important;
        height: 72px !important;
      }
      .service-info {
        flex: 1 1 100%;
      }
      .service-book-btn {
        width: 100%;
      }
      .calendar-layout {
        grid-template-columns: 1fr;
      }
      .btn-row {
        flex-direction: column-reverse;
      }
      .btn-back,
      .btn-next {
        width: 100%;
      }
      .confirm-card {
        padding: 28px 20px;
      }
      .confirm-row {
        flex-direction: column;
        gap: 4px;
      }
      .confirm-key {
        min-width: 0;
      }
      .modal-box {
        padding: 22px 18px;
      }
      .size-option {
        flex-direction: column;
        align-items: flex-start;
      }
      .size-option-price {
        align-self: flex-start;
      }
      .attach-bar {
        flex-direction: column;
        align-items: flex-start;
      }
      .attach-bar-btn {
        width: 100%;
      }
    }

    @media (max-width: 560px) {
      .header-name {
        font-size: 16px;
      }
      .header-tagline,
      .header-right {
        font-size: 12px;
      }
      .section-title {
        font-size: 20px;
      }
      .section-sub {
        font-size: 13px;
      }
      .step {
        font-size: 12px;
        padding: 5px 8px;
      }
      .step-num {
        width: 22px;
        height: 22px;
        font-size: 11px;
      }
      .service-name {
        font-size: 14px;
      }
      .service-meta {
        font-size: 12px;
      }
      .service-price {
        font-size: 14px;
      }
      .calendar-box,
      .time-box,
      .booking-summary {
        padding: 16px;
      }
      .cal-day {
        padding: 6px 2px;
        font-size: 13px;
      }
      .form-grid {
        grid-template-columns: 1fr;
      }
      .policy-box,
      .summary-deposit {
        font-size: 12px;
      }
      .modal-title {
        font-size: 18px;
      }
      .modal-sub {
        font-size: 12px;
      }
    }

/* ─── PHP-CONVERSION ADDITIONS ─── */
.info-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}
@media (max-width: 860px) {
  .info-layout { grid-template-columns: 1fr; }
}

.slots-loading {
  font-size: 13px;
  color: var(--gray);
  padding: 8px 2px;
}



button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── HEADER: phone link + mobile alignment ─── */
.tagline-text { margin-right: 8px; }
.header-phone {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .header {
    height: auto;
    min-height: 60px;
    padding: 8px 14px;
  }
  .header-logo { width: 44px; height: 44px; }
  .header-name { font-size: 16px; margin-left: 10px; }
  .header-right,
  .tagline-text { display: none; }        /* keep it to logo · name · phone */
  .header-tagline {
    margin-left: auto;
    border-left: none;
    padding-left: 0;
  }
  .header-phone {
    display: inline-block;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
  }
}
