/* wizard */
.amb-wizard { display: grid; gap: 22px; }
.amb-progress { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: amb; }
.amb-progress li { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: .8rem; text-align: center; line-height: 1.3; counter-increment: amb; }
.amb-progress li::before { content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 20px); width: calc(100% - 34px); height: 1px; background: var(--line); }
.amb-progress li:last-child::before { display: none; }
.amb-progress i { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--black); color: var(--muted); font: 700 .85rem var(--font-body); font-style: normal; }
.amb-progress i::before { content: counter(amb); }
.amb-progress .is-current i { border-color: var(--gold); color: var(--gold-highlight); box-shadow: 0 0 0 4px rgba(213, 157, 67, .14); }
.amb-progress .is-current { color: var(--gold-soft); }
.amb-progress .is-done { cursor: pointer; color: var(--ivory); }
.amb-progress .is-done i { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.amb-progress .is-done i::before { content: "✓"; }
.amb-progress .is-done::before { background: var(--gold); }

.amb-panel { display: grid; gap: 16px; animation: amb-in .3s ease-out; }
.amb-panel[hidden] { display: none; }
@keyframes amb-in { from { opacity: 0; transform: translateY(6px); } }
.amb-q { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ivory); }

.amb-cards { display: grid; gap: 12px; }
.amb-cards-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amb-cards-platforms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.amb-cards-durations { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.am-form label.amb-card { position: relative; display: block; cursor: pointer; color: var(--ivory); }
.amb-card input { position: absolute; opacity: 0; pointer-events: none; }
.amb-card-in { display: grid; justify-items: center; align-content: center; gap: 10px; height: 100%; min-height: 112px; padding: 18px 12px; text-align: center; background: var(--charcoal); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, background-color .2s, transform .2s; }
.amb-card-in > .icon { width: 30px; height: 30px; color: var(--gold); }
.amb-card-in strong { font-weight: 500; font-size: .95rem; line-height: 1.45; }
.amb-card:hover .amb-card-in { border-color: var(--gold); transform: translateY(-2px); }
.amb-card input:checked + .amb-card-in { border-color: var(--gold); background: rgba(213, 157, 67, .1); box-shadow: inset 0 0 0 1px var(--gold); }
.amb-card input:focus-visible + .amb-card-in { outline: 2px solid var(--gold-highlight); outline-offset: 2px; }

.amb-badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; }
.amb-badge .icon { width: 26px; height: 26px; }
.amb-badge-whatsapp { background: #25d366; }
.amb-badge-zoom { background: #2d8cff; }
.amb-badge-meet { background: #00897b; }
.amb-badge-teams { background: #5059c9; }

.amb-mins { font-size: .95rem; color: var(--muted); }
.amb-mins b { font: 700 2rem/1 var(--font-head); color: var(--ivory); }
.amb-cards-durations small { margin-top: -6px; color: var(--muted); font-size: .8rem; }
.amb-cards-durations .amb-price { padding-top: 10px; width: 100%; border-top: 1px solid var(--line); color: var(--gold-highlight); font-weight: 700; }

.amb-upload { display: grid; gap: 8px; }
.am-form label.amb-drop { position: relative; display: block; cursor: pointer; }
.amb-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.amb-drop-in { display: grid; justify-items: center; gap: 4px; padding: 20px; border: 1px dashed var(--gold); border-radius: 10px; color: var(--gold); text-align: center; transition: background-color .2s; }
.amb-drop-in strong { color: var(--gold-soft); }
.amb-drop-in small { color: var(--muted); font-size: .82rem; }
.amb-drop:hover .amb-drop-in, .amb-drop input:focus-visible + .amb-drop-in { background: rgba(213, 157, 67, .07); }
.amb-file-list { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.amb-file-list li::before { content: "📎 "; }

.amb-review .amb-total { background: rgba(213, 157, 67, .08); }
.amb-review .amb-total dd { color: var(--gold-highlight); font-weight: 700; font-size: 1.1rem; }
.amb-secure { display: flex; gap: 8px; margin: 0; color: var(--muted); font-size: .88rem; }
.amb-secure svg { flex: none; margin-top: .3em; color: var(--gold); }

.amb-nav { display: flex; gap: 12px; }
.amb-nav .amb-next-step { flex: 1; }
.amb-nav .amb-back { flex: none; }
.amb-nav [hidden] { display: none; }
:dir(rtl) .amb-back-icon { transform: scaleX(-1); }
.amb-submit:disabled { opacity: .6; cursor: wait; }

/* calendar */
.amb-cal-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.amb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ivory); }
.amb-cal-head button { display: grid; place-items: center; width: 38px; height: 38px; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--gold); cursor: pointer; }
.amb-cal-head button:disabled { opacity: .3; cursor: default; }
:dir(rtl) .amb-cal-head button { transform: scaleX(-1); }
.amb-dow, .amb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.amb-dow span { text-align: center; color: var(--muted); font-size: .74rem; }
.amb-day { aspect-ratio: 1; min-height: 36px; padding: 0; background: var(--charcoal); border: 1px solid var(--line); border-radius: 8px; color: var(--ivory); font: inherit; font-size: .95rem; cursor: pointer; }
.amb-day:hover:not(:disabled) { border-color: var(--gold); }
.amb-day:disabled { background: none; border-color: transparent; color: #746e62; cursor: default; }
.amb-day.is-selected, .amb-slot.is-selected { background: var(--gradient); border-color: transparent; color: #0a0a0a; font-weight: 700; }
.amb-slot-title { margin: 0 0 8px; color: var(--muted); }
.amb-slot-title:empty { display: none; }
.amb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; max-height: 330px; overflow-y: auto; }
.amb-slot { padding: 9px 4px; background: var(--charcoal); border: 1px solid var(--line); border-radius: 8px; color: var(--ivory); font: inherit; font-size: .92rem; cursor: pointer; }
.amb-slot:hover { border-color: var(--gold); }

/* reschedule form on the manage page */
.amb-step { margin: 0 0 20px; padding: 24px; min-width: 0; background: var(--warm-dark); border: 1px solid var(--line); border-radius: 10px; }
.amb-step legend { padding: 0 8px; font: 700 1.2rem var(--font-head); color: var(--gold-soft); }

/* popup */
html.amb-locked { overflow: hidden; }
.amb-modal { width: min(880px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; background: var(--black); color: var(--ivory); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
.amb-modal[open] { animation: amb-pop .28s ease-out; }
.amb-modal::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes amb-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.amb-modal-box { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.amb-modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--warm-dark), var(--black)); }
.amb-modal-head .eyebrow { margin: 0; font-size: .82rem; }
.amb-modal-head h2 { margin: 0; font-size: 1.35rem; color: var(--gold-soft); }
.amb-modal-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); cursor: pointer; }
.amb-modal-close:hover { border-color: var(--gold); }
.amb-modal-body { padding: 22px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
/* The step buttons stay reachable while a long step scrolls. */
.amb-modal .amb-nav { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 14px 24px 18px; background: linear-gradient(transparent, var(--black) 28%); }

/* result pages */
.amb-result { display: grid; gap: 20px; }
.amb-result h2 { margin: 0; font-size: 1.8rem; color: var(--gold-soft); }
.amb-result p { margin: 0; }
.amb-summary { margin: 0; background: var(--warm-dark); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.amb-summary > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.amb-summary > div:last-child { border-bottom: 0; }
.amb-summary dt { color: var(--gold); }
.amb-summary dd { margin: 0; }

@media (max-width: 900px) {
	.amb-cards-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-cards-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-cal-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.amb-modal { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
	.amb-modal-box { max-height: 100dvh; height: 100%; }
	.amb-modal-head { padding: 12px 16px; }
	.amb-modal-head h2 { font-size: 1.15rem; }
	.amb-modal-body { flex: 1; padding: 16px 16px 20px; }
	.amb-modal .amb-nav { bottom: -20px; margin: 0 -16px -20px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
	.amb-progress span { display: none; }
	.amb-progress li::before { inset-inline-start: calc(50% + 17px); width: calc(100% - 28px); }
	.amb-card-in { min-height: 96px; padding: 14px 10px; }
	.amb-card-in strong { font-size: .9rem; }
	.amb-cards-durations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amb-step { padding: 18px 14px; }
	.amb-summary > div { grid-template-columns: 1fr; gap: 0; }
}
