/*
 * Styling for the interactive pieces this plugin adds to the booking
 * and contact pages. Deliberately written to sit on top of the
 * Qur'an Cures Clinic theme's existing design tokens (the CSS custom
 * properties theme.json generates) so it matches whatever palette is
 * active there, rather than hardcoding colors here — but it degrades
 * to sane fallback colors if a different theme is active.
 */

.qc-type-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.qc-type-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	cursor: pointer;
	border-radius: 14px;
	border: 2px solid var(--wp--preset--color--sand, #f1ead9);
	background: var(--wp--preset--color--white, #fff);
	padding: 1.25rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qc-type-card:hover {
	border-color: var(--wp--preset--color--gold, #b8914a);
}

.qc-type-card.is-selected,
.qc-type-card:has(input[type="radio"]:checked) {
	border-color: var(--wp--preset--color--emerald, #13503f);
	box-shadow: 0 0 0 2px var(--wp--preset--color--emerald, #13503f) inset;
}

.qc-type-card input[type="radio"] {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--wp--preset--color--emerald, #13503f);
	opacity: 1;
	pointer-events: auto;
}

.qc-type-card:has(input:focus-visible) {
	outline: 3px solid var(--wp--preset--color--gold, #b8914a);
	outline-offset: 2px;
}

.qc-type-card__icon {
	font-size: 1.5rem;
}

.qc-type-card__label {
	font-weight: 600;
	color: var(--wp--preset--color--emerald-deep, #0b332a);
}

.qc-type-card__desc {
	font-size: 0.9rem;
	color: var(--wp--preset--color--stone, #6b6a60);
}

.qc-fee-notice {
	display: inline-block;
	background: var(--wp--preset--color--gold-light, #e3c382);
	color: var(--wp--preset--color--emerald-deep, #0b332a);
	font-weight: 600;
	border-radius: 10px;
	padding: 0.75rem 1.25rem;
	margin: 1rem 0 2rem;
}

.qc-slot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.5rem 0 0;
}

.qc-slot-hint {
	color: var(--wp--preset--color--stone, #6b6a60);
	font-size: 0.9rem;
	margin: 0.5rem 0 0;
}

.qc-slot-btn {
	border: 2px solid var(--wp--preset--color--sand, #f1ead9);
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--emerald-deep, #0b332a);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.qc-slot-btn:hover {
	border-color: var(--wp--preset--color--emerald, #13503f);
}

.qc-slot-btn.is-selected {
	background: var(--wp--preset--color--emerald, #13503f);
	border-color: var(--wp--preset--color--emerald, #13503f);
	color: var(--wp--preset--color--white, #fff);
}

.qc-form-message {
	min-height: 1.5em;
	margin: 1rem 0;
	font-weight: 600;
}

.qc-form-message--ok {
	color: var(--wp--preset--color--emerald, #13503f);
}

.qc-form-message--error {
	color: #a1332a;
}

#qc-submit-btn[aria-busy="true"],
#qc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.qc-status-box {
	background: var(--wp--preset--color--sand, #f1ead9);
	border-radius: 14px;
	padding: 2rem;
}

.qc-status-table {
	margin-top: 1rem;
	border-collapse: collapse;
}

.qc-status-table td {
	padding: 0.4rem 1rem 0.4rem 0;
	vertical-align: top;
}

.qc-status-table td:first-child {
	color: var(--wp--preset--color--stone, #6b6a60);
	font-weight: 600;
}

.qc-status-checking {
	display: block;
	font-size: 0.85rem;
	color: var(--wp--preset--color--stone, #6b6a60);
	margin-top: 0.35rem;
}
