/* ── Booking Pro — Frontend Form Styles ──────────────────────────── */

:root {
	--bp-primary:     #2563eb;
	--bp-primary-dk:  #1d4ed8;
	--bp-success:     #16a34a;
	--bp-danger:      #dc2626;
	--bp-border:      #e5e7eb;
	--bp-muted:       #6b7280;
	--bp-bg:          #f9fafb;
	--bp-white:       #ffffff;
	--bp-radius:      12px;
	--bp-radius-sm:   8px;
	--bp-shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
	--bp-shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
	--bp-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bp-transition:  all .2s ease;
}

/* ── Wrapper ── */
.bp-booking {
	font-family: var(--bp-font);
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px 40px;
	color: #1f2937;
	line-height: 1.6;
}

/* ── Notices ── */
.bp-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 20px;
	border-radius: var(--bp-radius-sm);
	margin-bottom: 24px;
	font-size: 14px;
}
.bp-notice--success { background: #dcfce7; border: 1px solid #86efac; color: #14532d; }
.bp-notice--error   { background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d; }
.bp-notice__icon    { font-size: 20px; flex-shrink: 0; font-weight: 700; }

/* ── Step Progress ── */
.bp-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 0 24px;
	gap: 0;
	overflow-x: auto;
}
.bp-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.bp-step__dot {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--bp-bg);
	border: 2px solid var(--bp-border);
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 600;
	color: var(--bp-muted);
	transition: var(--bp-transition);
}
.bp-step.active .bp-step__dot {
	background: var(--bp-primary);
	border-color: var(--bp-primary);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.bp-step.done .bp-step__dot {
	background: var(--bp-success);
	border-color: var(--bp-success);
	color: #fff;
}
.bp-step__label {
	font-size: 11px;
	color: var(--bp-muted);
	white-space: nowrap;
}
.bp-step.active .bp-step__label { color: var(--bp-primary); font-weight: 600; }
.bp-step-line {
	flex: 1;
	height: 2px;
	background: var(--bp-border);
	min-width: 20px;
	max-width: 60px;
	margin-bottom: 20px;
}

/* ── Price Bar ── */
.bp-price-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: var(--bp-radius-sm);
	padding: 12px 18px;
	margin-bottom: 20px;
	font-size: 15px;
}
.bp-price-bar__label { color: var(--bp-muted); }
.bp-price-bar__amount { font-weight: 700; color: var(--bp-primary); font-size: 20px; }

/* ── Error / Spinner ── */
.bp-error {
	background: #fee2e2;
	border: 1px solid #fca5a5;
	border-radius: var(--bp-radius-sm);
	padding: 12px 16px;
	color: #7f1d1d;
	font-size: 14px;
	margin-bottom: 16px;
}
.bp-spinner {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	padding: 24px;
	color: var(--bp-muted);
	font-size: 14px;
}
.bp-spinner__inner {
	width: 22px; height: 22px;
	border: 3px solid var(--bp-border);
	border-top-color: var(--bp-primary);
	border-radius: 50%;
	animation: bp-spin .7s linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* ── Panels ── */
.bp-panel { display: none; }
.bp-panel.active { display: block; animation: bp-fade .2s ease; }
@keyframes bp-fade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.bp-panel__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}
.bp-panel__sub { color: var(--bp-muted); font-size: 14px; margin: 0 0 20px; }
.bp-panel__footer { margin-top: 24px; display: flex; gap: 12px; }
.bp-back {
	background: none; border: none; cursor: pointer;
	color: var(--bp-muted); font-size: 14px; padding: 0;
	display: flex; align-items: center; gap: 4px;
	margin-bottom: 16px;
	padding: 5px 7px;
	transition: color .15s;
}
.bp-back:hover { color: #111;}

/* ── Card Grid ── */
.bp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 8px;
}
.bp-card {
	background: var(--bp-white);
	border: 2px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 20px 16px;
	text-align: left;
	cursor: pointer;
	transition: var(--bp-transition);
	box-shadow: var(--bp-shadow);
	width: 100%;
}
.bp-card:hover, .bp-card.active {
	border-color: var(--bp-primary);
	box-shadow: var(--bp-shadow-md);
	transform: translateY(-2px);
}
.bp-card__icon { font-size: 28px; margin-bottom: 10px; }
.bp-card__name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.bp-card__desc { font-size: 13px; color: var(--bp-muted); }
.bp-card__meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bp-price  { font-weight: 700; color: var(--bp-primary); font-size: 16px; }
.bp-duration { font-size: 12px; color: var(--bp-muted); }

/* ── Add-ons ── */
.bp-addons-list { display: flex; flex-direction: column; gap: 10px; }
.bp-addon {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--bp-white);
	border: 2px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 14px 16px;
	cursor: pointer;
	transition: var(--bp-transition);
}
.bp-addon:hover { border-color: #93c5fd; }
.bp-addon.selected { border-color: var(--bp-primary); background: #eff6ff; }
.bp-addon input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--bp-primary); }
.bp-addon__body { flex: 1; }
.bp-addon__name { font-weight: 600; font-size: 14px; }
.bp-addon__desc { font-size: 13px; color: var(--bp-muted); }
.bp-addon__price { font-weight: 700; color: var(--bp-primary); white-space: nowrap; }

/* ── Date & Time ── */
.bp-datetime-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 600px) { .bp-datetime-layout { grid-template-columns: 1fr; } }

.bp-label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; color: #374151; }
.bp-input {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	font-size: 15px;
	font-family: var(--bp-font);
	background: var(--bp-white);
	transition: border-color .15s;
	box-sizing: border-box;
}
.bp-input:focus { outline: none; border-color: var(--bp-primary); }
.bp-textarea { resize: vertical; min-height: 80px; }

.bp-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
	gap: 8px;
}
.bp-slot {
	padding: 10px 6px;
	border: 2px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	background: var(--bp-white);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: var(--bp-transition);
	text-align: center;
}
.bp-slot:hover { border-color: var(--bp-primary); color: var(--bp-primary); }
.bp-slot.active { background: var(--bp-primary); border-color: var(--bp-primary); color: #fff; }

/* ── Customer form ── */
.bp-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.bp-form-group--full { grid-column: 1 / -1; }
@media (max-width: 540px) { .bp-form-grid { grid-template-columns: 1fr; } }
.bp-req     { color: var(--bp-danger); }
.bp-optional{ color: var(--bp-muted); font-size: 12px; font-weight: 400; }
.bp-muted   { color: var(--bp-muted); font-size: 14px; }

/* ── Summary ── */
.bp-summary {
	background: var(--bp-bg);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 20px;
	margin-bottom: 20px;
}
.bp-summary__section { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--bp-border); }
.bp-summary__section:last-child { border: none; padding: 0; margin: 0; }
.bp-summary__row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 3px 0;
}
.bp-summary__row--label { color: var(--bp-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.bp-summary__total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 18px;
	padding-top: 12px;
	border-top: 2px solid #111;
	margin-top: 12px;
}
.bp-summary__total-amount { color: var(--bp-primary); }

.bp-payment-info { margin-bottom: 20px; }

/* ── Buttons ── */
.bp-btn {
	padding: 12px 24px;
	border: none;
	border-radius: var(--bp-radius-sm);
	font-size: 15px;
	font-weight: 600;
	font-family: var(--bp-font);
	cursor: pointer;
	transition: var(--bp-transition);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.bp-btn--primary { background: var(--bp-primary); color: #fff; }
.bp-btn--primary:hover { background: var(--bp-primary-dk); }
.bp-btn--secondary { background: var(--bp-bg); color: #374151; border: 2px solid var(--bp-border); }
.bp-btn--secondary:hover { border-color: #9ca3af; }
.bp-btn--pay { background: #16a34a; color: #fff; font-size: 16px; padding: 16px 24px; }
.bp-btn--pay:hover { background: #15803d; }
.bp-btn--pay:disabled { opacity: .6; cursor: not-allowed; }
.bp-btn--full { width: 100%; justify-content: center; }
.bp-btn__icon { font-size: 18px; }


/* ── Stripe card element ── */
.bp-stripe-wrap {
	background: var(--bp-bg);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 18px 16px;
	margin-bottom: 20px;
}
.bp-stripe-label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.bp-stripe-label::before {
	content: '💳';
	font-size: 16px;
}
.bp-stripe-card {
	background: var(--bp-white);
	border: 2px solid var(--bp-border);
	border-radius: var(--bp-radius-sm);
	padding: 12px 14px;
	transition: border-color .15s;
}
.bp-stripe-card.StripeElement--focus   { border-color: var(--bp-primary); }
.bp-stripe-card.StripeElement--invalid { border-color: var(--bp-danger); }
.bp-stripe-error {
	color: var(--bp-danger);
	font-size: 13px;
	margin-top: 8px;
	min-height: 18px;
}

/* ── Inline success state ── */
.bp-success-wrap {
	text-align: center;
	padding: 48px 24px;
}
.bp-success-icon {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--bp-success);
	color: #fff;
	font-size: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
}
.bp-success-ref {
	font-size: 16px;
	font-weight: 600;
	color: var(--bp-primary);
	margin: 8px 0 16px;
}

/* ── Success Modal ────────────────────────────────────────────── */
.bp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bp-modal-overlay.active {
	display: flex;
	animation: bp-overlay-in .25s ease;
}
@keyframes bp-overlay-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.bp-modal {
	background: #fff;
	border-radius: 20px;
	padding: 48px 40px 40px;
	max-width: 460px;
	width: 100%;
	text-align: center;
	position: relative;
	box-shadow: 0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
	animation: bp-modal-in .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bp-modal-in {
	from { opacity: 0; transform: scale(.88) translateY(20px); }
	to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.bp-modal__icon-wrap {
	position: relative;
	width: 80px; height: 80px;
	margin: 0 auto 24px;
}
.bp-modal__icon {
	width: 80px; height: 80px;
	border-radius: 50%;
	background: var(--bp-success);
	color: #fff;
	font-size: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	animation: bp-icon-pop .4s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes bp-icon-pop {
	from { transform: scale(0); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}
.bp-modal__icon-ring {
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 3px solid var(--bp-success);
	opacity: 0;
	animation: bp-ring-pulse 1.2s ease .5s infinite;
}
@keyframes bp-ring-pulse {
	0%   { transform: scale(.9); opacity: .6; }
	100% { transform: scale(1.3); opacity: 0; }
}

.bp-modal__title {
	font-size: 24px;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 12px;
	line-height: 1.2;
}
.bp-modal__ref {
	display: inline-block;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: var(--bp-primary);
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 100px;
	margin-bottom: 16px;
	letter-spacing: .03em;
}
.bp-modal__message {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.7;
	margin-bottom: 24px;
}
.bp-modal__details {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 28px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.bp-modal__detail-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #374151;
}
.bp-modal__detail-icon { font-size: 18px; flex-shrink: 0; }

.bp-modal__close-btn {
	display: block;
	width: 100%;
	background: var(--bp-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	font-family: var(--bp-font);
	cursor: pointer;
	transition: background .2s, transform .15s;
}
.bp-modal__close-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

@media (max-width: 480px) {
	.bp-modal { padding: 36px 24px 28px; }
	.bp-modal__title { font-size: 20px; }
}

/* ── Deposit notice ────────────────────────────────────────────── */
.bp-deposit-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--bp-radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}
.bp-deposit-notice__icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.bp-deposit-notice__label {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bp-deposit-notice__amount {
    font-size: 14px;
    color: #78350f;
    line-height: 1.6;
}

/* ── Deposit summary rows ──────────────────────────────────────── */
.bp-summary__deposit-section {
    border-top: 2px dashed #fde68a;
    margin-top: 8px;
    padding-top: 12px;
}
.bp-summary__row--deposit {
    font-weight: 700;
    color: #92400e;
}
.bp-summary__deposit-label { color: #92400e; }
.bp-summary__deposit-amount {
    color: #92400e;
    font-size: 16px;
    font-weight: 700;
}
.bp-summary__row--balance {
    font-size: 13px;
    color: var(--bp-muted);
    padding-top: 4px;
}
