.sb-form-shell,
.sb-form-shell * {
	box-sizing: border-box;
}

/* The shell fills whatever height its container (.sb-panel, set in the theme's global.css)
   gives it via flex-grow — deliberately NOT height:100%, which needs a "definite" ancestor
   height and is unreliable across browsers here; flex-grow works without that requirement
   and is what actually keeps the header fixed / body scrolling / footer fixed. */
.sb-form-shell {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	position: relative;
}

.sb-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0.25rem 0.25rem 1.5rem;
}

.sb-grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	min-width: 0;
}
@media (min-width: 640px) {
	.sb-grid-2 {
		grid-template-columns: 1fr 1fr;
	}
}
.sb-field { min-width: 0; }
.sb-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--sb-label, #c9a24b);
}
.sb-field input,
.sb-field textarea {
	width: 100%;
	max-width: 100%;
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	padding: 0.6rem 0.8rem;
	color: inherit;
	font: inherit;
}
.sb-field input:focus,
.sb-field textarea:focus {
	outline: none;
	border-color: rgba(201, 162, 75, 0.6);
}
.sb-note {
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.05);
	padding: 1rem;
	font-style: italic;
	font-size: 0.9rem;
}

/* ---------- Selectable option cards (call length / number of questions / channel) ---------- */
.sb-price-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}
.sb-price-option {
	position: relative;
	cursor: pointer;
	border-radius: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	padding: 1rem 0.75rem;
	text-align: center;
	transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
	min-width: 0;
}
.sb-price-option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.sb-price-option:hover {
	border-color: rgba(201, 162, 75, 0.4);
}
.sb-price-option.is-checked {
	border-color: #c9a24b;
	background: rgba(201, 162, 75, 0.16);
	box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.35), 0 0 24px rgba(201, 162, 75, 0.15);
	transform: translateY(-1px);
}
.sb-price-option-check {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	background: transparent;
}
.sb-price-option.is-checked .sb-price-option-check,
.sb-channel-option.is-checked .sb-price-option-check {
	border-color: #c9a24b;
	background: #c9a24b;
	box-shadow: inset 0 0 0 3px rgba(20, 15, 5, 0.85);
}
.sb-price-option-title {
	display: block;
	font-weight: 600;
}
.sb-price-option-price {
	display: block;
	font-size: 0.85rem;
	color: var(--sb-label, #c9a24b);
}

.sb-channel-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}
.sb-channel-option {
	position: relative;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border-radius: 1rem;
	border: 2px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	padding: 1rem 2.25rem 1rem 1rem;
	transition: border-color 0.15s, background-color 0.15s;
	min-width: 0;
}
.sb-channel-option input {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}
.sb-channel-option:hover {
	border-color: rgba(201, 162, 75, 0.4);
}
.sb-channel-option.is-checked {
	border-color: #c9a24b;
	background: rgba(201, 162, 75, 0.16);
	box-shadow: 0 0 0 1px rgba(201, 162, 75, 0.35);
}

/* ---------- Sticky footer: price summary + submit ---------- */
.sb-form-footer {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0.25rem 0.25rem;
	flex-wrap: wrap;
}
.sb-summary {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
}
.sb-amount {
	font-size: 1.4rem;
	color: var(--sb-label, #c9a24b);
	letter-spacing: 0;
	text-transform: none;
}
.sb-submit {
	border: none;
	border-radius: 999px;
	padding: 0.9rem 1.6rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #f0d488, #c9862f);
	color: #1a1408;
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 12rem;
	transition: box-shadow 0.2s, transform 0.2s, filter 0.2s;
}
.sb-submit:hover:not(:disabled) {
	box-shadow: 0 0 40px rgba(201, 162, 75, 0.45), 0 0 80px rgba(201, 162, 75, 0.2);
	filter: brightness(1.05);
}
.sb-submit:active:not(:disabled) {
	transform: translateY(1px);
}
.sb-submit:disabled,
.sb-submit.is-loading {
	opacity: 0.6;
	cursor: not-allowed;
}
.sb-toast {
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	background: rgba(220, 90, 90, 0.15);
	font-size: 0.85rem;
}

/* ---------- Success view (replaces the form after a verified payment) ---------- */
.sb-success {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.75rem;
	padding: 2rem 1rem;
}
.sb-success-icon {
	width: 4rem;
	height: 4rem;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: rgba(76, 175, 120, 0.18);
	color: #7fd8a3;
	box-shadow: 0 0 30px rgba(76, 175, 120, 0.25);
}
.sb-success-icon svg {
	width: 2.25rem;
	height: 2.25rem;
}
.sb-success-title {
	font-size: 1.4rem;
	margin: 0;
}
.sb-success-message {
	max-width: 28rem;
	opacity: 0.85;
	font-style: italic;
	margin: 0;
}
.sb-success-close {
	margin-top: 0.5rem;
	border: none;
	border-radius: 999px;
	padding: 0.75rem 2rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #f0d488, #c9862f);
	color: #1a1408;
	cursor: pointer;
	transition: box-shadow 0.2s, filter 0.2s;
}
.sb-success-close:hover {
	box-shadow: 0 0 40px rgba(201, 162, 75, 0.45);
	filter: brightness(1.05);
}
