/* HomePujan shared booking dialogs (consult + pay). Extracted from services.html. */
    /* ── PAY WIZARD ── */
    .pay-stepper { display: flex; align-items: center; justify-content: center; gap: 0.55rem; margin: 0.5rem 0 1.4rem; flex-wrap: wrap; }
    .pay-step-dot {
      width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
      font-family: 'Cinzel', serif; font-size: 0.72rem; font-weight: 700;
      background: #F5EFE6; color: #7A6A6A; border: 1px solid rgba(212,175,55,0.35); transition: all 0.25s;
    }
    .pay-step-dot.active { background: #4A0E0E; color: #D4AF37; border-color: #4A0E0E; }
    .pay-step-dot.done { background: #D4AF37; color: #4A0E0E; border-color: #D4AF37; }
    .pay-step-line { width: 22px; height: 1px; background: rgba(212,175,55,0.35); }
    .pay-step { display: none; }
    .pay-step.active { display: block; animation: payFade 0.28s ease; }
    @keyframes payFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    .pay-cal-wrap { border: 1px solid rgba(212,175,55,0.25); border-radius: 8px; padding: 1rem; background: #FFFEFB; }
    .pay-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
    .pay-cal-nav button { background: none; border: 1px solid rgba(212,175,55,0.4); cursor: pointer; padding: 0.35rem 0.6rem; font-size: 0.95rem; color: #4A0E0E; border-radius: 4px; line-height: 1; }
    .pay-cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
    .pay-cal-nav-title { font-family: 'Cinzel', serif; font-weight: 700; color: #4A0E0E; font-size: 0.95rem; }
    .pay-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .pay-cal-head { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #7A6A6A; text-align: center; padding: 4px 0; }
    .pay-cal-day {
      aspect-ratio: 1 / 1; border: 1px solid transparent; background: transparent; cursor: pointer;
      font-family: 'Inter', sans-serif; font-size: 0.85rem; color: #2D2D2D; border-radius: 6px; transition: all 0.18s;
      display: flex; align-items: center; justify-content: center;
    }
    .pay-cal-day:hover:not(:disabled):not(.selected) { background: rgba(212,175,55,0.15); border-color: rgba(212,175,55,0.4); }
    .pay-cal-day.selected { background: #4A0E0E; color: #D4AF37; border-color: #4A0E0E; font-weight: 700; }
    .pay-cal-day:disabled { color: #C7BFB2; cursor: not-allowed; }
    .pay-cal-day.empty { visibility: hidden; cursor: default; }
    .pay-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 0.5rem; margin-top: 1rem; }
    .pay-slot-pill {
      padding: 0.55rem 0.5rem; border: 1px solid rgba(74,14,14,0.25); background: #FFFEFB; border-radius: 999px;
      font-family: 'Inter', sans-serif; font-size: 0.78rem; color: #4A0E0E; cursor: pointer; text-align: center; transition: all 0.18s;
    }
    .pay-slot-pill:hover:not(.selected) { background: rgba(212,175,55,0.12); }
    .pay-slot-pill.selected { background: #4A0E0E; color: #D4AF37; border-color: #4A0E0E; font-weight: 700; }
    .pay-form-row { margin-bottom: 0.85rem; }
    .pay-form-row label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5A4A4A; margin-bottom: 0.35rem; }
    .pay-summary { background: #F9F4EC; border: 1px solid rgba(212,175,55,0.25); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
    .pay-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; font-size: 0.85rem; }
    .pay-summary-row + .pay-summary-row { border-top: 1px dashed rgba(212,175,55,0.25); }
    .pay-summary-row .lbl { color: #7A6A6A; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
    .pay-summary-row .val { color: #2D2D2D; font-weight: 600; text-align: right; }
    .pay-summary-total { font-family: 'Cinzel', serif; font-size: 1.1rem; color: #4A0E0E; font-weight: 700; }
    .pay-actions { display: flex; gap: 0.6rem; margin-top: 1rem; }
    .pay-actions .btn-discuss, .pay-actions .btn-align { flex: 1; padding: 0.85rem 0.75rem; font-size: 0.74rem; }
    .pay-error { display: none; background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C2C2; padding: 0.7rem 0.9rem; border-radius: 6px; font-size: 0.82rem; margin-bottom: 0.85rem; line-height: 1.5; }
    .pay-error.visible { display: block; }
    .pay-confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(212,175,55,0.18); color: #4A0E0E; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.8rem; }
    .pay-confirm-icon.upi { background: #FFEDD5; color: #9A3412; font-size: 1.5rem; }
    .pay-confirm-detail { font-size: 0.85rem; color: #5A4A4A; line-height: 1.7; margin: 0.3rem 0; }
    .pay-confirm-id { font-family: 'Inter', monospace, monospace; font-size: 0.78rem; color: #4A0E0E; background: #F9F4EC; padding: 4px 8px; border-radius: 4px; display: inline-block; }
    .pay-upi-qr-wrap { display: flex; justify-content: center; padding: 0.6rem; background: white; border: 1px solid #E5DED0; border-radius: 10px; margin: 0.6rem auto; width: fit-content; }
    .pay-upi-qr-wrap canvas, .pay-upi-qr-wrap img { display: block; width: 220px; height: 220px; }
    .pay-upi-field { font-family: 'Inter', monospace, monospace; font-size: 0.82rem; background: #F9F4EC; padding: 6px 10px; border-radius: 4px; word-break: break-all; user-select: all; }
    .pay-upi-ref { display: block; font-family: 'Cinzel', Georgia, serif; font-size: 1.35rem; font-weight: 700; color: #9A3412; letter-spacing: 0.08em; text-align: center; padding: 0.4rem; background: #FFEDD5; border-radius: 6px; margin: 0.5rem 0; }
    .pay-upi-steps { background: #F9F4EC; border: 1px solid #E5DED0; border-radius: 8px; padding: 0.7rem 1rem; margin: 0.6rem 0; }
    .pay-upi-steps ol { margin: 0; padding-left: 1.2rem; font-size: 0.82rem; color: #5A4A4A; line-height: 1.7; }
    .pay-upi-steps strong { color: #4A0E0E; }
    .pay-copy-row { display: flex; align-items: center; gap: 0.4rem; margin: 0.3rem 0; }
    .pay-copy-row .pay-upi-field { flex: 1; }
    .pay-copy-btn { background: #4A0E0E; color: #D4AF37; border: none; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
    .pay-copy-btn:hover { background: #2D2D2D; }
    .pay-copy-btn.copied { background: #1E7F3E; color: white; }

    /* ── MODAL SYSTEM ── */
    .modal-overlay {
      display: none; position: fixed; inset: 0; z-index: 800;
      background: rgba(20,5,5,0.72); backdrop-filter: blur(6px);
      align-items: center; justify-content: center; padding: 1rem;
      overflow-y: auto;
    }
    .modal-overlay.visible { display: flex; }
    .modal-drop { filter: drop-shadow(0 24px 50px rgba(74,14,14,0.3)); max-width: 620px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; }
    .modal-paper {
      background: #FDFBF7;
      clip-path: polygon(0% 2%, 2.5% 0.4%, 5% 1.6%, 7.5% 0%, 10% 1.8%, 12.5% 0.3%, 15% 1.5%, 17.5% 0%, 20% 1.8%, 22.5% 0.4%, 25% 1.6%, 27.5% 0%, 30% 1.8%, 32.5% 0.4%, 35% 1.5%, 37.5% 0%, 40% 1.8%, 42.5% 0.3%, 45% 1.6%, 47.5% 0%, 50% 1.8%, 52.5% 0.4%, 55% 1.5%, 57.5% 0%, 60% 1.8%, 62.5% 0.3%, 65% 1.6%, 67.5% 0%, 70% 1.8%, 72.5% 0.4%, 75% 1.5%, 77.5% 0%, 80% 1.8%, 82.5% 0.3%, 85% 1.6%, 87.5% 0%, 90% 1.8%, 92.5% 0.4%, 95% 1.5%, 97.5% 0%, 100% 1.5%, 100% 98.5%, 97.5% 100%, 95% 98.4%, 92.5% 99.8%, 90% 98.2%, 87.5% 100%, 85% 98.5%, 82.5% 99.7%, 80% 98.2%, 77.5% 100%, 75% 98.5%, 72.5% 99.6%, 70% 98.2%, 67.5% 100%, 65% 98.4%, 62.5% 99.7%, 60% 98.2%, 57.5% 100%, 55% 98.5%, 52.5% 99.6%, 50% 98.2%, 47.5% 100%, 45% 98.4%, 42.5% 99.7%, 40% 98.2%, 37.5% 100%, 35% 98.5%, 32.5% 99.6%, 30% 98.2%, 27.5% 100%, 25% 98.4%, 22.5% 99.7%, 20% 98.2%, 17.5% 100%, 15% 98.5%, 12.5% 99.6%, 10% 98.2%, 7.5% 100%, 5% 98.4%, 2.5% 99.7%, 0% 98%);
      position: relative; overflow: hidden;
      transform: translateY(24px); transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
      flex: 1; display: flex; flex-direction: column; min-height: 0;
    }
    .modal-overlay.visible .modal-paper { transform: translateY(0); }
    .modal-inner { padding: 2.25rem 2.5rem 2.5rem; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(212,175,55,0.3) transparent; }
    .modal-inner::-webkit-scrollbar { width: 4px; }
    .modal-inner::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.35); border-radius: 2px; }
    .modal-close {
      position: absolute; top: 1.25rem; right: 1.5rem; z-index: 10;
      background: none; border: none; font-size: 1.6rem; color: #4A0E0E;
      cursor: pointer; line-height: 1; opacity: 0.6; transition: opacity 0.2s;
    }
    .modal-close:hover { opacity: 1; }
    .modal-section { margin-bottom: 1.15rem; }
    .modal-section-lbl {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
      color: #D4AF37; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.55rem;
    }
    .modal-section-lbl::after { content: ''; flex: 1; height: 1px; background: rgba(212,175,55,0.2); }
    .modal-section-body { font-size: 0.875rem; color: #5A4A4A; line-height: 1.78; }
    .modal-invoc-title { font-family: 'Cinzel', serif; font-size: 1.45rem; font-weight: 700; color: #4A0E0E; line-height: 1.1; }
    .modal-invoc-sub { font-family: 'Playfair Display', serif; font-size: 0.98rem; color: #D4AF37; font-weight: 500; font-style: italic; margin-top: 0.3rem; }
    .modal-tag { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(212,175,55,0.12); color: #4A0E0E; padding: 3px 10px; margin-right: 6px; margin-bottom: 4px; }
    .modal-edge-block {
      font-size: 0.865rem; color: #4A0E0E; line-height: 1.78;
      background: rgba(74,14,14,0.04); border-left: 2px solid rgba(212,175,55,0.5);
      padding: 0.8rem 1rem; font-style: italic;
    }
    .modal-detail-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.6rem; }
    .modal-detail-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5A4A4A; min-width: 90px; padding-top: 2px; }
    .modal-detail-val { font-size: 0.88rem; color: #2D2D2D; line-height: 1.5; }
    .btn-discuss {
      display: flex; align-items: center; justify-content: center; gap: 0.6rem; width: 100%;
      background: #4A0E0E; color: #D4AF37; padding: 1rem 1.5rem;
      font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
      font-family: 'Inter', sans-serif; border: none; cursor: pointer; text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }
    .btn-discuss:hover { background: #6A1E1E; }

    .consult-input {
      width: 100%; border: 1px solid #E5DED0; padding: 0.72rem 0.9rem;
      font-size: 0.88rem; background: #FFFEFB; color: #2D2D2D; outline: none;
      font-family: 'Inter', sans-serif; transition: border-color 0.25s, box-shadow 0.25s;
      appearance: none; -webkit-appearance: none;
    }
    .consult-input:focus { border-color: rgba(212,175,55,0.65); box-shadow: 0 0 0 3px rgba(212,175,55,0.08); }
    .consult-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #5A4A4A; margin-bottom: 0.45rem; }
    .consult-field { margin-bottom: 1rem; position: relative; }
    .consult-select-wrap { position: relative; }
    .consult-select-wrap::after { content: ''; position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); border: 4px solid transparent; border-top-color: #D4AF37; pointer-events: none; }
    @media (max-width: 767px) {
      /* Full-screen modal on phones — no side gap, no torn-paper zigzag, no shadow. */
      .modal-overlay { padding: 0; align-items: stretch; justify-content: stretch; overscroll-behavior: contain; }
      .modal-drop { max-width: 100%; max-height: 100vh; max-height: 100dvh; width: 100%; height: 100vh; height: 100dvh; filter: none; }
      .modal-paper { clip-path: none; border-radius: 0; }
      .modal-inner { padding: 1.25rem 1.25rem 2rem; overscroll-behavior: contain; }
      .modal-close { top: 0.875rem; right: 1rem; }
      /* Consult modal only: let the Cal.com inline embed stretch to fill the
         full-screen modal instead of leaving an empty cream tail under it. */
      #modal-consult .modal-inner { display: flex; flex-direction: column; }
      #modal-consult #my-cal-inline-15min { flex: 1; min-height: 480px; height: auto !important; }
      .modal-detail-row { flex-direction: column; gap: 0.25rem; }
      .modal-detail-label { min-width: auto; }
    }
