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

.tbs-widget {
    --tbs-primary: #8a5a63;
    --tbs-primary-light: #a5747d;
    --tbs-primary-dark: #6e4750;
    --tbs-white: #ffffff;
    --tbs-cream: #faf7f6;
    --tbs-border: #e8dde0;
    --tbs-text: #2b1f21;
    --tbs-text-muted: #8a7a7d;
    --tbs-radius: 20px;
    --tbs-radius-sm: 12px;
    --tbs-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --tbs-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    max-width: 1140px;
    margin: 0 auto;
    font-family: var(--tbs-sans) !important;
    color: var(--tbs-text);
    background:
        radial-gradient(circle at 100% 0%, rgba(138, 90, 99, 0.05), transparent 45%),
        var(--tbs-white);
    border: 1px solid rgba(138, 90, 99, 0.08);
    border-radius: var(--tbs-radius);
    box-shadow: 0 12px 40px rgba(138, 90, 99, 0.10), 0 2px 8px rgba(43, 31, 33, 0.04);
    padding: 48px 56px;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}
.tbs-widget *,
.tbs-widget *::before,
.tbs-widget *::after { box-sizing: border-box; font-family: inherit; }
.tbs-widget button { -webkit-appearance: none; appearance: none; }

/* Steps 2-5 (the actual booking form) stay centered and readable even though
   the widget itself is wide enough to show 3 pricing cards edge-to-edge on Step 1 */
.tbs-narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Step 1 Intro / Header ---------- */
.tbs-intro { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.tbs-intro-kicker {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--tbs-primary);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.tbs-intro-title {
    font-family: var(--tbs-serif);
    font-size: 36px;
    font-weight: 700;
    color: var(--tbs-text);
    margin: 0 0 14px;
    line-height: 1.2;
}
.tbs-intro-subtitle {
    font-size: 15px;
    color: var(--tbs-text-muted);
    line-height: 1.6;
    margin: 0;
}

.tbs-hidden { display: none !important; }

.tbs-step {
    animation: tbs-fade-in 0.25s ease;
}
@keyframes tbs-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Progress Bar ---------- */
.tbs-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 36px;
}
.tbs-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 90px;
}
.tbs-progress-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tbs-white);
    border: 2px solid var(--tbs-border);
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}
.tbs-progress-item.active .tbs-progress-dot {
    border-color: var(--tbs-primary);
    background: var(--tbs-primary);
    box-shadow: 0 0 0 4px rgba(138, 90, 99, 0.15);
}
.tbs-progress-item.done .tbs-progress-dot {
    border-color: var(--tbs-primary);
    background: var(--tbs-primary);
}
.tbs-progress-item.done .tbs-progress-dot::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.tbs-progress-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--tbs-text-muted);
    text-align: center;
}
.tbs-progress-item.active .tbs-progress-label,
.tbs-progress-item.done .tbs-progress-label { color: var(--tbs-primary-dark); }
.tbs-progress-line {
    flex: 1 1 auto;
    height: 2px;
    background: var(--tbs-border);
    margin: 10px -22px 0;
}

/* ---------- Session Header (Step 2, matches a dedicated booking-page feel) ---------- */
.tbs-session-header {
    text-align: center;
    margin-bottom: 28px;
}
.tbs-session-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--tbs-primary);
    margin-bottom: 10px;
}
.tbs-session-title {
    font-family: var(--tbs-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--tbs-text);
    margin: 0 0 10px;
}
.tbs-session-subtitle {
    font-size: 14px;
    color: var(--tbs-text-muted);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
}

.tbs-section { margin-bottom: 8px; }

.tbs-date-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 10px;
}
.tbs-timezone-note {
    font-size: 12px;
    color: var(--tbs-text-muted);
}

.tbs-date-scroller-wrap {
    position: relative;
}
.tbs-date-scroller-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 30px; bottom: 8px;
    width: 36px;
    background: linear-gradient(to right, transparent, var(--tbs-white));
    pointer-events: none;
}
.tbs-date-scroll-next {
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: calc(100% - 8px);
    border: none;
    background: var(--tbs-white);
    color: var(--tbs-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 var(--tbs-radius-sm) var(--tbs-radius-sm) 0;
}
.tbs-date-scroll-next:hover { color: var(--tbs-primary-dark); }

/* ---------- Format Cards (Step 2, Audio vs Video with price) ---------- */
.tbs-format-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 24px;
}
.tbs-format-card {
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius-sm);
    padding: 17px 18px;
    cursor: pointer;
    background: var(--tbs-white);
    transition: all 0.2s ease;
}
.tbs-format-card:hover { border-color: var(--tbs-primary-light); transform: translateY(-1px); }
.tbs-format-card.active {
    border-color: var(--tbs-primary);
    background: rgba(138, 90, 99, 0.06);
    box-shadow: 0 0 0 1.5px var(--tbs-primary);
}
.tbs-format-card-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--tbs-text);
    margin-bottom: 4px;
}
.tbs-format-card-price {
    font-size: 12.5px;
    color: var(--tbs-text-muted);
}

.tbs-step-title {
    font-family: var(--tbs-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--tbs-text);
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

.tbs-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tbs-text-muted);
    margin: 20px 0 10px;
}

.tbs-back-btn {
    background: none !important;
    border: none !important;
    color: var(--tbs-primary) !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 !important;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}
.tbs-back-btn:hover { color: var(--tbs-primary-dark) !important; transform: translateX(-2px); }

/* ---------- Pricing Plan Cards (Step 1) ---------- */
.tbs-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}
/* Fall back gracefully when there aren't exactly 3 plans, or the container is narrow */
.tbs-services-grid:has(.tbs-plan-card:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.tbs-services-grid:has(.tbs-plan-card:only-child) { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
.tbs-plan-card {
    position: relative;
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius);
    padding: 30px 24px 26px;
    background: var(--tbs-white);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tbs-plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--tbs-primary-light);
    box-shadow: 0 16px 36px rgba(138, 90, 99, 0.16);
}
.tbs-plan-featured {
    background: linear-gradient(160deg, var(--tbs-primary-dark), #4f2f37);
    border-color: var(--tbs-primary-dark);
    color: var(--tbs-white);
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(78, 47, 55, 0.35);
    padding-top: 34px;
}
.tbs-plan-featured:hover { box-shadow: 0 20px 44px rgba(78, 47, 55, 0.4); }
.tbs-plan-featured:hover { transform: scale(1.03) translateY(-3px); }
.tbs-plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tbs-brand-2, #fff);
    color: var(--tbs-primary-dark);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 18px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
    max-width: none;
}
.tbs-plan-duration {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tbs-primary);
    margin-bottom: 8px;
}
.tbs-plan-featured .tbs-plan-duration { color: rgba(255,255,255,0.75); }
.tbs-plan-name {
    font-family: var(--tbs-serif);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--tbs-text);
}
.tbs-plan-featured .tbs-plan-name { color: var(--tbs-white); }
.tbs-plan-tagline {
    font-size: 13.5px;
    color: var(--tbs-text-muted);
    margin: 0 0 18px;
    line-height: 1.4;
}
.tbs-plan-featured .tbs-plan-tagline { color: rgba(255,255,255,0.75); }
.tbs-plan-toggle {
    display: inline-flex;
    background: var(--tbs-cream);
    border: 1px solid var(--tbs-border);
    border-radius: 100px;
    padding: 3px;
    margin-bottom: 18px;
    align-self: flex-start;
}
.tbs-plan-featured .tbs-plan-toggle {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}
.tbs-plan-toggle-btn {
    border: none !important;
    background: transparent !important;
    padding: 6px 16px !important;
    border-radius: 100px !important;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tbs-text-muted) !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s;
}
.tbs-plan-featured .tbs-plan-toggle-btn { color: rgba(255,255,255,0.85) !important; }
.tbs-plan-toggle-btn.active {
    background: var(--tbs-primary) !important;
    color: var(--tbs-white) !important;
}
.tbs-plan-featured .tbs-plan-toggle-btn.active {
    background: var(--tbs-white) !important;
    color: var(--tbs-primary-dark) !important;
}
.tbs-plan-price {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    color: var(--tbs-primary-dark);
    margin-bottom: 4px;
}
.tbs-plan-featured .tbs-plan-price { color: var(--tbs-white); }
.tbs-plan-currency { font-size: 22px; font-weight: 700; margin-right: 2px; }
.tbs-plan-price-note {
    font-size: 12.5px;
    color: var(--tbs-text-muted);
    text-transform: capitalize;
    margin-bottom: 20px;
}
.tbs-plan-featured .tbs-plan-price-note { color: rgba(255,255,255,0.65); }
.tbs-plan-book-btn {
    margin-top: auto;
    width: 100% !important;
    background: var(--tbs-primary) !important;
    color: var(--tbs-white) !important;
    border: none !important;
    padding: 14px 20px !important;
    border-radius: 100px !important;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(138, 90, 99, 0.24);
    transition: background 0.2s, transform 0.15s ease, box-shadow 0.15s ease;
}
.tbs-plan-book-btn:hover { background: var(--tbs-primary-dark) !important; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(138, 90, 99, 0.32); }
.tbs-plan-featured .tbs-plan-book-btn {
    background: var(--tbs-white) !important;
    color: var(--tbs-primary-dark) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.tbs-plan-featured .tbs-plan-book-btn:hover { background: var(--tbs-cream) !important; }

/* ---------- Date Scroller ---------- */
.tbs-date-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.tbs-date-pill {
    flex: 0 0 auto;
    min-width: 68px;
    text-align: center;
    border: 1.5px solid var(--tbs-border);
    border-radius: 12px;
    padding: 10px 8px;
    cursor: pointer;
    background: var(--tbs-white);
    transition: all 0.2s;
}
.tbs-date-pill:hover { border-color: var(--tbs-primary-light); transform: translateY(-1px); }
.tbs-date-pill.active {
    background: var(--tbs-primary);
    border-color: var(--tbs-primary);
    color: var(--tbs-white);
    box-shadow: 0 6px 14px rgba(138, 90, 99, 0.28);
}
.tbs-date-pill .tbs-date-day {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.75;
}
.tbs-date-pill .tbs-date-num {
    font-size: 16px;
    font-weight: 700;
    margin-top: 2px;
}

/* ---------- Time Slots ---------- */
.tbs-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}
.tbs-time-slot {
    border: 1.5px solid var(--tbs-border);
    border-radius: var(--tbs-radius-sm);
    padding: 10px 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--tbs-white);
    transition: all 0.2s;
}
.tbs-time-slot:hover { border-color: var(--tbs-primary-light); transform: translateY(-1px); }
.tbs-time-slot.active {
    background: var(--tbs-primary);
    border-color: var(--tbs-primary);
    color: var(--tbs-white);
    box-shadow: 0 6px 14px rgba(138, 90, 99, 0.28);
}
.tbs-time-slot-taken {
    cursor: not-allowed;
    background: var(--tbs-cream);
    color: var(--tbs-text-muted);
    text-decoration: line-through;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.tbs-time-slot-taken:hover { border-color: var(--tbs-border); }
.tbs-slot-taken-tag {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--tbs-text-muted);
}
.tbs-muted { color: var(--tbs-text-muted); font-size: 14px; }

/* ---------- Skeleton Loaders ---------- */
@keyframes tbs-shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.tbs-skeleton {
    background: linear-gradient(90deg, var(--tbs-cream) 25%, #f0e7e5 37%, var(--tbs-cream) 63%);
    background-size: 400px 100%;
    animation: tbs-shimmer 1.4s ease infinite;
    border-radius: var(--tbs-radius-sm);
}
.tbs-skeleton-card { height: 260px; }
.tbs-skeleton-slot { height: 44px; }
.tbs-skeleton-payment { height: 220px; }

/* ---------- Form Inputs ----------
   !important is used deliberately here: the widget lives inside page builders
   (Elementor/theme global styles) whose own form/input/button resets otherwise
   override our border, background and focus states with higher specificity —
   that was causing the border to visually disappear on focus. */
.tbs-widget input[type="text"],
.tbs-widget input[type="email"],
.tbs-widget input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid var(--tbs-border) !important;
    border-radius: var(--tbs-radius-sm) !important;
    font-size: 15px !important;
    color: var(--tbs-text) !important;
    background: var(--tbs-white) !important;
    box-shadow: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    margin: 0 0 4px !important;
}
.tbs-widget input:focus {
    outline: none !important;
    border-color: var(--tbs-primary) !important;
    box-shadow: 0 0 0 3px rgba(138, 90, 99, 0.14) !important;
}
.tbs-widget input::placeholder { color: #b7a9ac !important; opacity: 1 !important; }

/* ---------- Buttons ---------- */
.tbs-btn-primary {
    width: 100% !important;
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-primary-dark)) !important;
    color: var(--tbs-white) !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 100px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    margin-top: 24px !important;
    box-shadow: 0 8px 20px rgba(138, 90, 99, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s !important;
}
.tbs-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--tbs-primary-dark), var(--tbs-primary-dark)) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(138, 90, 99, 0.36) !important;
}
.tbs-btn-primary:active:not(:disabled) { transform: translateY(0); }
.tbs-btn-primary:disabled {
    background: #d8c9cc !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.tbs-btn-whatsapp {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366 !important;
    color: #fff !important;
    padding: 13px 28px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: 16px !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.tbs-btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.36) !important;
    color: #fff !important;
}

/* ---------- Summary Box ---------- */
.tbs-summary-box {
    background: var(--tbs-cream);
    border: 1px solid var(--tbs-border);
    border-radius: var(--tbs-radius-sm);
    padding: 18px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.tbs-summary-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--tbs-primary);
}
.tbs-summary-box .tbs-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--tbs-text);
}
.tbs-summary-box .tbs-summary-row span:first-child { color: var(--tbs-text-muted); }
.tbs-summary-box .tbs-summary-total {
    font-weight: 700;
    font-size: 19px;
    color: var(--tbs-primary-dark);
    border-top: 1px solid var(--tbs-border);
    margin-top: 8px;
    padding-top: 12px;
}

/* ---------- Payment Area ---------- */
.tbs-payment-box {
    text-align: center;
    padding: 28px 24px;
    background: var(--tbs-cream);
    border-radius: var(--tbs-radius);
    border: 1px solid var(--tbs-border);
}
.tbs-payment-box img {
    max-width: 220px;
    margin: 18px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(43, 31, 33, 0.1);
}
.tbs-upi-id-box {
    display: inline-block;
    background: var(--tbs-white);
    border: 1.5px dashed var(--tbs-primary);
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    margin: 12px 0;
}

/* ---------- Confirmation ---------- */
.tbs-confirmation { text-align: center; padding: 24px 0 8px; }
.tbs-confirmation h3 {
    font-family: var(--tbs-serif);
    font-size: 26px;
    margin: 0 0 10px;
}
.tbs-confirmation p { color: var(--tbs-text-muted); max-width: 380px; margin: 0 auto; line-height: 1.6; }
.tbs-confirm-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--tbs-primary), var(--tbs-primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(138, 90, 99, 0.32);
    animation: tbs-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes tbs-pop-in {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.tbs-error { color: #c0392b; font-size: 14px; margin-top: 10px; }
.tbs-loading { text-align: center; padding: 20px; color: var(--tbs-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .tbs-widget { padding: 40px 32px; }
    .tbs-services-grid { grid-template-columns: repeat(2, 1fr); }
    .tbs-services-grid:has(.tbs-plan-card:nth-child(3)) .tbs-plan-featured { grid-column: span 2; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .tbs-widget { padding: 28px 20px; border-radius: 0; }
    .tbs-services-grid { grid-template-columns: 1fr; }
    .tbs-plan-featured { transform: none; grid-column: auto !important; max-width: none !important; margin: 0 !important; }
    .tbs-plan-featured:hover { transform: translateY(-3px); }
    .tbs-session-title { font-size: 22px; }
    .tbs-intro-title { font-size: 26px; }
}
@media (max-width: 380px) {
    .tbs-format-cards { grid-template-columns: 1fr; }
}
