/* MyMusic Center – формата за записване.
 * Шрифтът и цветът на текста идват от темата; плъгинът задава само
 * структура, акцентен цвят и състояния. */

.mmc-booking {
	--mmc-line: #d6dbe2;
	--mmc-panel: #f4f6f9;
	--mmc-muted: #646c7a;
	--mmc-ok: #2f6b3f;
	--mmc-err: #a3302a;
	--mmc-radius: 10px;
	margin: 1.25em 0;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.5;
}

.mmc-booking *,
.mmc-booking *::before,
.mmc-booking *::after { box-sizing: border-box; }

.mmc-booking [hidden] { display: none !important; }

/* Двата пътя: нов ученик / редовен ученик */
.mmc-paths {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 18px;
}

.mmc-booking .mmc-path {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--mmc-line);
	border-radius: var(--mmc-radius);
	background: #fff;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.3;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.mmc-booking .mmc-path:hover { border-color: var(--mmc-accent); background: #fff; color: inherit; }

.mmc-booking .mmc-path[aria-selected="true"] {
	border-color: var(--mmc-accent);
	background: var(--mmc-panel);
	box-shadow: inset 0 0 0 1px var(--mmc-accent);
}

.mmc-path__who { font-size: 13px; color: var(--mmc-muted); }
.mmc-path__what { font-weight: 600; font-size: 15px; }
.mmc-path__price {
	margin-top: 6px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--mmc-accent);
	font-variant-numeric: tabular-nums;
}
.mmc-path__price small { font-size: 13px; font-weight: 500; color: var(--mmc-muted); margin-right: 3px; }

/* Форма */
.mmc-form { display: block; margin: 0; }
.mmc-intro { margin-bottom: 14px; }
.mmc-booking .mmc-title { margin: 0 0 4px; font-size: 19px; line-height: 1.3; }
.mmc-intro p { margin: 0; color: var(--mmc-muted); }

.mmc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.mmc-grid .mmc-field--short { max-width: none; }
.mmc-grid:has(.mmc-field--short) { grid-template-columns: 1fr 110px; }

.mmc-field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.mmc-booking fieldset.mmc-field { margin-left: 0; margin-right: 0; }

.mmc-field > label,
.mmc-field > legend {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
}
.mmc-opt { font-weight: 400; color: var(--mmc-muted); font-size: 13px; }

.mmc-booking input[type="text"],
.mmc-booking input[type="tel"],
.mmc-booking input[type="email"],
.mmc-booking input[type="number"],
.mmc-booking select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid var(--mmc-line);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px; /* без автоматично зумване в iOS */
	box-shadow: none;
}

.mmc-booking input:focus,
.mmc-booking select:focus { border-color: var(--mmc-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--mmc-accent) 18%, transparent); }

.mmc-booking [aria-invalid="true"] { border-color: var(--mmc-err) !important; }

/* Чипове (опит, начин на плащане) */
.mmc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mmc-chips > legend { width: 100%; }
.mmc-chip { position: relative; margin: 0; cursor: pointer; }
.mmc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mmc-chip span {
	display: inline-block;
	padding: 8px 13px;
	border: 1.5px solid var(--mmc-line);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.2;
	background: #fff;
}
.mmc-chip input:checked + span { border-color: var(--mmc-accent); background: var(--mmc-panel); font-weight: 600; }
.mmc-chip input:focus-visible + span { outline: 2px solid var(--mmc-accent); outline-offset: 2px; }

/* Планове */
.mmc-plans { display: grid; gap: 8px; }
.mmc-plan {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 13px 14px;
	border: 1.5px solid var(--mmc-line);
	border-radius: var(--mmc-radius);
	background: #fff;
	cursor: pointer;
}
.mmc-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mmc-plan__dot {
	flex: 0 0 18px;
	height: 18px;
	border: 1.5px solid var(--mmc-line);
	border-radius: 50%;
	background: #fff;
}
.mmc-plan__text { flex: 1; min-width: 0; }
.mmc-plan__label { display: block; font-weight: 600; }
.mmc-plan__note { display: block; font-size: 13px; color: var(--mmc-muted); }
.mmc-plan__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mmc-plan:has(input:checked) { border-color: var(--mmc-accent); background: var(--mmc-panel); }
.mmc-plan:has(input:checked) .mmc-plan__dot { border-color: var(--mmc-accent); box-shadow: inset 0 0 0 4px #fff; background: var(--mmc-accent); }
.mmc-plan:has(input:focus-visible) { outline: 2px solid var(--mmc-accent); outline-offset: 2px; }

/* Съгласие */
.mmc-consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; color: var(--mmc-muted); cursor: pointer; }
.mmc-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mmc-accent); }
.mmc-consent a { color: inherit; text-decoration: underline; }

/* Обща сума */
.mmc-total {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 4px 0 14px;
	padding: 12px 0 0;
	border-top: 1px solid var(--mmc-line);
}
.mmc-total > span:first-child { color: var(--mmc-muted); }
.mmc-total__amount { font-size: 22px; font-variant-numeric: tabular-nums; }
.mmc-total__bgn { font-size: 13px; color: var(--mmc-muted); }

/* Грешка и бутон */
.mmc-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-left: 3px solid var(--mmc-err);
	background: #fbf0ef;
	color: var(--mmc-err);
	font-size: 14px;
}

.mmc-booking .mmc-submit {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--mmc-accent);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: filter .15s ease;
}
.mmc-booking .mmc-submit:hover { filter: brightness(1.1); color: #fff; }
.mmc-booking .mmc-submit:focus-visible { outline: 3px solid var(--mmc-accent); outline-offset: 3px; }
.mmc-booking .mmc-submit[disabled] { opacity: .65; cursor: progress; }

/* Успех */
.mmc-done {
	padding: 22px 20px;
	border-radius: var(--mmc-radius);
	background: var(--mmc-panel);
	border-left: 4px solid var(--mmc-ok);
	outline: none;
}
.mmc-done__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--mmc-ok); }
.mmc-done__text { margin: 0; }

/* Скрито поле против ботове */
.mmc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mmc-service-pick { margin-bottom: 16px; }

@media (max-width: 520px) {
	.mmc-grid,
	.mmc-grid:has(.mmc-field--short) { grid-template-columns: 1fr; }
	.mmc-booking .mmc-path { padding: 12px; }
	.mmc-path__price { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.mmc-booking * { transition: none !important; }
}

/* Кога се провежда урокът */
.mmc-schedule { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--mmc-panel); border-left: 3px solid var(--mmc-accent); font-size: 15px; line-height: 1.4; }
.mmc-schedule strong { color: var(--mmc-accent); }

/* Избор на група / час */
.mmc-slots__list { display: grid; gap: 8px; }
.mmc-slot { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--mmc-line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1.35; }
.mmc-slot input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--mmc-accent); }
.mmc-slot:has(input:checked) { border-color: var(--mmc-accent); background: var(--mmc-panel); font-weight: 600; }
.mmc-slots__note { margin: 8px 0 0; font-size: 14px; color: var(--mmc-muted); }
