/*! Appifany AI · Booking widget · booking.css */
/* Used by index.html (#book section) and booking.html standalone */

  /* Section header */
  .book-head { max-width: 760px; margin: 0 auto 36px; }
  .book-head h2 { color: var(--white); margin-bottom: 14px; }
  .book-head .lead { color: rgba(255,255,255,.75); max-width: 640px; }
  .section.final .center { text-align: center; }

  /* Booking widget container */
  .book-card {
    background: var(--white);
    border-radius: var(--radius-lg, 22px);
    box-shadow: 0 30px 80px rgba(10,15,28,.35), 0 1px 0 rgba(255,255,255,.08) inset;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.06);
  }

  /* Meta strip on top */
  .book-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--midnight), var(--navy-2));
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .book-meta-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--electric), var(--violet));
    display: grid; place-items: center;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(45,127,249,.32);
    flex-shrink: 0;
  }
  .book-meta-text { flex: 1; min-width: 0; }
  .book-meta-text strong {
    display: block; font-family: 'Sora', sans-serif;
    font-size: 1rem; font-weight: 700; color: var(--white);
    margin-bottom: 2px;
  }
  .book-meta-text span { font-size: .85rem; color: rgba(255,255,255,.65); }
  .book-meta-perks {
    display: flex; gap: 14px; flex-shrink: 0;
    font-size: .82rem; color: rgba(255,255,255,.75);
  }
  .book-meta-perks span { white-space: nowrap; }

  /* Body grid */
  .book-body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
  }
  .book-left {
    padding: 28px 28px;
    border-right: 1px solid var(--line-2, #EEF1F5);
    background: linear-gradient(180deg, #FAFBFD 0%, var(--white) 100%);
  }
  .book-right { padding: 28px 28px; background: var(--white); }

  /* Step labels */
  .book-step {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px;
  }
  .book-step:not(:first-child) { margin-top: 24px; }
  .step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric), var(--violet));
    color: var(--white);
    font-family: 'Sora', sans-serif; font-weight: 700; font-size: .82rem;
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(45,127,249,.30);
  }
  .step-title {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: 1.05rem; color: var(--ink);
  }
  .step-sub {
    font-size: .82rem; color: var(--muted); margin-left: auto;
  }

  /* Mini calendar */
  .mini-cal {
    background: var(--white);
    border: 1px solid var(--line, #E5E9EF);
    border-radius: var(--radius, 14px);
    padding: 16px 14px;
  }
  .mc-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
  }
  .mc-month {
    font-family: 'Sora', sans-serif; font-weight: 700;
    font-size: 1rem; color: var(--ink);
  }
  .mc-nav { display: flex; gap: 6px; }
  .mc-nav button {
    width: 30px; height: 30px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 7px;
    cursor: pointer; color: var(--muted);
    display: grid; place-items: center;
    transition: all 0.15s;
  }
  .mc-nav button:hover { border-color: var(--electric); color: var(--electric); }
  .mc-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
  .mc-weekdays, .mc-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 3px;
  }
  .mc-weekdays { margin-bottom: 4px; }
  .mc-weekdays div {
    text-align: center;
    font-size: .66rem; font-weight: 700; letter-spacing: 1px;
    color: var(--muted); text-transform: uppercase;
    padding: 4px 0;
  }
  .mc-day {
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: .85rem; font-weight: 500;
    color: var(--body);
    cursor: pointer;
    display: grid; place-items: center;
    position: relative;
    transition: all 0.12s;
  }
  .mc-day:not(.disabled):not(.empty):hover {
    background: rgba(45,127,249,.10);
    color: var(--electric);
  }
  .mc-day.empty, .mc-day.disabled, .mc-day.weekend {
    color: #C2C9D2; cursor: not-allowed;
  }
  .mc-day.today {
    font-weight: 700; color: var(--electric);
  }
  .mc-day.today::after {
    content: ""; position: absolute; bottom: 3px;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--electric);
  }
  .mc-day.selected {
    background: linear-gradient(135deg, var(--electric), var(--violet));
    color: var(--white); font-weight: 700;
    box-shadow: 0 4px 10px rgba(45,127,249,.30);
  }
  .mc-day.selected.today::after { background: var(--white); }
  .mc-day.available::before {
    content: ""; position: absolute; top: 4px; right: 4px;
    width: 4px; height: 4px; border-radius: 50%;
    background: #10B981;
  }
  .mc-day.selected.available::before { background: var(--white); }
  .mc-foot {
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--line-2, #EEF1F5);
    display: flex; align-items: center; justify-content: space-between;
    font-size: .72rem; color: var(--muted);
  }
  .mc-legend { display: inline-flex; align-items: center; gap: 5px; }
  .mc-legend .dot { width: 5px; height: 5px; border-radius: 50%; background: #10B981; }

  /* Mini time slots */
  .mini-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    min-height: 60px;
  }
  .mt-slot {
    background: var(--white);
    border: 1px solid var(--line, #E5E9EF);
    border-radius: 8px;
    padding: 10px 6px;
    font-family: inherit;
    font-size: .84rem; font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: center;
    transition: all 0.12s;
  }
  .mt-slot:hover {
    border-color: var(--electric); color: var(--electric);
    transform: translateY(-1px);
  }
  .mt-slot.selected {
    background: var(--ink); color: var(--white);
    border-color: var(--ink);
  }
  .mt-slot.selected::after { content: " ✓"; opacity: .8; }
  .mt-empty {
    grid-column: 1 / -1;
    padding: 24px 14px;
    text-align: center;
    color: var(--muted); font-size: .85rem;
    background: rgba(45,127,249,.04);
    border: 1px dashed var(--line);
    border-radius: var(--radius, 14px);
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
  }
  .mt-empty svg { color: #C2C9D2; }

  /* Form fields (inherits from .field/.row2 in main stylesheet but we tighten) */
  .book-right .field { margin-bottom: 14px; }
  .book-right label {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: .76rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .book-right input,
  .book-right select,
  .book-right textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line, #E5E9EF);
    background: var(--white);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .book-right input:focus,
  .book-right select:focus,
  .book-right textarea:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 3px rgba(45,127,249,.12);
  }
  .book-right textarea { resize: vertical; min-height: 70px; }

  .book-trust {
    margin-top: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #F8FAFC, #F4F6FA);
    border: 1px solid var(--line-2, #EEF1F5);
    border-radius: 10px;
    display: flex; flex-direction: column; gap: 6px;
    font-size: .85rem; color: var(--body);
  }
  .book-trust > div {
    display: flex; align-items: center; gap: 8px;
  }
  .book-trust .check {
    color: #10B981; font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%; background: rgba(16,185,129,.12);
    display: grid; place-items: center;
    font-size: .68rem;
    flex-shrink: 0;
  }

  /* Bottom submit bar */
  .book-foot {
    background: linear-gradient(180deg, #F8FAFC, var(--white));
    padding: 18px 28px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    border-top: 1px solid var(--line-2, #EEF1F5);
  }
  .book-summary {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 240px;
  }
  .book-summary-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cyan), var(--electric));
    color: var(--white);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .book-summary-text .when {
    font-family: 'Sora', sans-serif; font-weight: 700;
    color: var(--ink); font-size: 1rem;
  }
  .book-summary-text .when.empty { color: var(--muted); font-weight: 500; }
  .book-summary-text .when-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }

  #bSubmit {
    min-width: 220px;
    background: linear-gradient(135deg, var(--electric), var(--violet));
    border: 0; cursor: pointer; color: var(--white);
    box-shadow: 0 10px 24px rgba(45,127,249,.32);
    transition: transform 0.12s, box-shadow 0.18s, opacity 0.2s;
  }
  #bSubmit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(45,127,249,.40);
  }
  #bSubmit:disabled {
    opacity: .55; cursor: not-allowed;
    background: var(--silver-2, #6B7787);
    box-shadow: none; transform: none;
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .book-body { grid-template-columns: 1fr; }
    .book-left { border-right: 0; border-bottom: 1px solid var(--line-2, #EEF1F5); }
    .book-meta { flex-wrap: wrap; }
    .book-meta-perks { width: 100%; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); justify-content: flex-start; gap: 16px; }
  }
  @media (max-width: 640px) {
    .book-card { border-radius: 14px; }
    .book-meta { padding: 18px 18px; }
    .book-meta-text strong { font-size: .92rem; }
    .book-meta-text span { font-size: .8rem; }
    .book-left, .book-right { padding: 22px 18px; }
    .book-foot { padding: 16px 18px; flex-direction: column; align-items: stretch; }
    #bSubmit { width: 100%; justify-content: center; }
    .mini-times { grid-template-columns: repeat(2, 1fr); }
    .mc-day { font-size: .8rem; }
    .mc-weekdays div { font-size: .6rem; }
    .step-sub { display: none; }
  }
  @media (max-width: 380px) {
    .mini-times { grid-template-columns: 1fr 1fr; }
    .book-meta-perks { gap: 10px; font-size: .76rem; }
  }
