/* Client portal pages. Uses the theme's colour and font presets, with fallbacks. */
.mtcp-builder, .mtcp-dashboard, .mtcp-auth {
	--c-red: var(--wp--preset--color--red, #A51C24);
	--c-red-dark: var(--wp--preset--color--red-dark, #7E141B);
	--c-ink: var(--wp--preset--color--ink, #2B2522);
	--c-muted: var(--wp--preset--color--muted, #6B615A);
	--c-cream: var(--wp--preset--color--cream, #F7F1E6);
	--c-line: var(--wp--preset--color--cream-deep, #EADFCB);
	--f-script: var(--wp--preset--font-family--script, cursive);
	--f-caps: var(--wp--preset--font-family--caps, serif);
	font-size: 17px;
}
.mtcp-builder *, .mtcp-dashboard *, .mtcp-auth * { box-sizing: border-box; }

.mtcp-lead { font-size: 20px; color: var(--c-muted); }
.mtcp-small { font-size: 14px; color: var(--c-muted); }
.mtcp-optional { font-weight: 400; color: var(--c-muted); font-size: 14px; }
.mtcp-eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-red); margin: 0 0 6px; }
.mtcp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mtcp-card { background: #fff; border: 1px solid var(--c-line); border-radius: 16px; padding: 28px; margin: 0 0 24px; }
.mtcp-auth { max-width: 680px; }

/* Forms */
.mtcp-form label, .mtcp-auth form p label { display: block; font-weight: 500; margin: 0 0 16px; }
.mtcp-form input[type=text], .mtcp-form input[type=email], .mtcp-form input[type=tel], .mtcp-form input[type=password],
.mtcp-form input[type=date], .mtcp-form textarea, .mtcp-form select, .mtcp-auth input[type=text], .mtcp-auth input[type=password] {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
	border: 1px solid var(--c-line); border-radius: 10px; background: #fff;
	font: inherit; font-weight: 400; color: var(--c-ink);
}
.mtcp-form input:focus, .mtcp-form textarea:focus, .mtcp-auth input:focus { outline: 2px solid var(--c-red); outline-offset: 1px; border-color: transparent; }
.mtcp-form fieldset { border: 0; padding: 0; margin: 8px 0 16px; }
.mtcp-form legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.mtcp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mtcp-check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 15px; }
.mtcp-check input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--c-red); }
.mtcp-radios label, .mtcp-checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 0 0 8px; }
.mtcp-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.mtcp-radios input, .mtcp-checks input { accent-color: var(--c-red); width: 18px; height: 18px; }
.mtcp-form button[disabled] { opacity: .45; cursor: not-allowed; }
.mtcp-auth .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.mtcp-auth .login-submit input { background: var(--c-red); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: 500 15px/1 var(--wp--preset--font-family--sans, sans-serif); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.mtcp-button-quiet, .mtcp-link { background: none; border: 0; padding: 8px 12px; font: inherit; color: var(--c-muted); text-decoration: underline; cursor: pointer; }
.mtcp-link { color: var(--c-red); padding: 0 0 0 6px; }
.mtcp-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Notices */
.mtcp-notice { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; font-size: 15px; }
.mtcp-notice--success { background: #EAF4EA; color: #1E4620; }
.mtcp-notice--error { background: #FBEAEA; color: #7E141B; }
.mtcp-notice--info { background: var(--c-cream); color: var(--c-ink); border: 1px solid var(--c-line); }

/* Request builder */
.mtcp-step { display: flex; align-items: center; gap: 12px; font-size: 28px; margin: 40px 0 8px; }
.mtcp-step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-red); color: #fff; font: 500 16px/1 var(--wp--preset--font-family--sans, sans-serif); }
.mtcp-packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.mtcp-form .mtcp-package { position: relative; display: grid; gap: 4px; padding: 24px 24px 22px 76px !important; margin: 0 !important; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 400 !important; transition: border-color .15s, box-shadow .15s; }
.mtcp-package:hover { border-color: var(--c-red); }
.mtcp-package:has(input:checked) { border-color: var(--c-red); box-shadow: 0 0 0 2px var(--c-red); }
.mtcp-package input { position: absolute; top: 26px; right: 22px; width: 20px; height: 20px; accent-color: var(--c-red); }
.mtcp-package__num { position: absolute; left: 22px; top: 18px; font-family: var(--f-caps); font-size: 22px; letter-spacing: .1em; color: var(--c-red); }
.mtcp-package__name { font-family: var(--wp--preset--font-family--serif, serif); font-size: 24px; font-weight: 600; padding-right: 28px; line-height: 1.15; }
.mtcp-package__service { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.mtcp-package__price { font-size: 20px; font-weight: 500; margin-top: 6px; }
.mtcp-package__price small { font-size: 14px; font-weight: 400; color: var(--c-muted); }
.mtcp-package__summary { font-size: 15px; color: var(--c-muted); }
.mtcp-package--all { grid-column: 1 / -1; background: var(--c-cream); }
.mtcp-summary { margin-top: 32px; padding: 24px; border-radius: 16px; background: var(--c-ink); color: #fff; box-shadow: 0 10px 30px rgba(43, 37, 34, .18); }
.mtcp-summary .mtcp-small { color: #CFC5BA; margin: 8px 0 0; }
.mtcp-summary__line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 4px 0; color: #E8E0D6; }
.mtcp-summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255,255,255,.2); margin-top: 8px; padding-top: 12px; }
.mtcp-summary__total strong { font-size: 30px; font-weight: 500; }
.mtcp-summary .wp-element-button { margin-top: 16px; background: #fff; color: var(--c-red); }
.mtcp-summary .wp-element-button:hover:not([disabled]) { background: var(--c-cream); color: var(--c-red-dark); }

/* Dashboard */
.mtcp-engagement__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.mtcp-engagement__head h2 { font-size: 26px; margin: 0; }
.mtcp-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; background: var(--c-cream); color: var(--c-ink); }
.mtcp-badge--active, .mtcp-badge--paid { background: #EAF4EA; color: #1E4620; }
.mtcp-badge--pending_payment, .mtcp-badge--unpaid { background: #FFF4D6; color: #6A4A00; }
.mtcp-badge--cancelled, .mtcp-badge--expired, .mtcp-badge--void { background: #EEE; color: #555; }
.mtcp-pay { display: grid; gap: 16px; background: var(--c-cream); border-radius: 12px; padding: 20px; margin: 0 0 16px; }
.mtcp-pay > div > strong { display: block; font-size: 19px; }
.mtcp-bank { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.mtcp-bank dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.mtcp-bank dd { margin: 2px 0 0; }
.mtcp-pay .wp-element-button { justify-self: start; }

.mtcp-progress { margin: 8px 0 16px; }
.mtcp-progress__label { display: flex; justify-content: space-between; font-size: 14px; color: var(--c-muted); margin-bottom: 6px; }
.mtcp-bar { height: 10px; border-radius: 999px; background: var(--c-line); overflow: hidden; }
.mtcp-bar span { display: block; height: 100%; background: var(--c-red); border-radius: inherit; }
.mtcp-bar--over span { background: var(--c-red-dark); }

.mtcp-timeline { list-style: none; padding: 0; margin: 0; }
.mtcp-timeline__item { position: relative; display: grid; gap: 2px; padding: 0 0 18px 32px; }
.mtcp-timeline__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c-line); background: #fff; }
.mtcp-timeline__item::after { content: ""; position: absolute; left: 8px; top: 24px; bottom: 0; width: 2px; background: var(--c-line); }
.mtcp-timeline__item:last-child::after { display: none; }
.mtcp-timeline__item--scheduled::before { border-color: var(--c-red); }
.mtcp-timeline__item--done::before { border-color: var(--c-red); background: var(--c-red); }
.mtcp-timeline__title { font-weight: 500; }
.mtcp-timeline__notes { font-size: 14px; }

.mtcp-retainer { border-top: 1px solid var(--c-line); margin-top: 16px; padding-top: 20px; }
.mtcp-retainer h3 { font-size: 22px; margin: 0 0 8px; }
.mtcp-quote { border: 1px solid var(--c-red); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.mtcp-quote p { margin: 0 0 10px; }
.mtcp-extra { margin-top: 16px; }
.mtcp-extra summary, #details summary { cursor: pointer; color: var(--c-red); }
#details summary h2 { display: inline; font-size: 24px; color: var(--c-ink); }
#details form { margin-top: 20px; }

.mtcp-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.mtcp-table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 500; border-bottom: 1px solid var(--c-ink); padding: 8px 6px; }
.mtcp-table td { border-bottom: 1px solid var(--c-line); padding: 10px 6px; vertical-align: top; }
.mtcp-num { text-align: right; white-space: nowrap; }

@media (max-width: 700px) {
	.mtcp-row, .mtcp-packages { grid-template-columns: 1fr; }
	.mtcp-card { padding: 20px; }
	.mtcp-engagement__head { flex-direction: column; }
	.mtcp-table { font-size: 14px; }
}
.mtcp-card h2 { font-size: 26px; margin: 0 0 16px; }

/* ---------- Get started wizard ---------- */
.mtcp-progress-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 8px; counter-reset: mtcp-step; font-size: 14px; color: var(--c-muted); }
.mtcp-progress-steps li { counter-increment: mtcp-step; display: flex; align-items: center; gap: 8px; }
.mtcp-progress-steps li::before { content: counter(mtcp-step); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--c-line); font-size: 12px; }
.mtcp-progress-steps li.is-current { color: var(--c-ink); font-weight: 500; }
.mtcp-progress-steps li.is-current::before { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.mtcp-progress-steps li.is-done::before { content: "✓"; background: var(--c-cream); border-color: var(--c-red); color: var(--c-red); }
.mtcp-step-panel[hidden] { display: none; }

.mtcp-schedule { margin-top: 24px; padding: 24px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; }
.mtcp-schedule__intro { margin: 0 0 8px; font-size: 16px; }
.mtcp-schedule__label { font-size: 20px; margin: 24px 0 12px; }
.mtcp-days, .mtcp-hours { display: flex; flex-wrap: wrap; gap: 10px; }
.mtcp-day, .mtcp-hour { border: 1px solid var(--c-line); border-radius: 12px; background: #fff; padding: 10px 14px; font: inherit; color: var(--c-ink); cursor: pointer; text-align: left; transition: border-color .15s, background-color .15s; }
.mtcp-day strong { display: block; font-weight: 500; }
.mtcp-day span { display: block; font-size: 12px; color: var(--c-muted); }
.mtcp-day:hover, .mtcp-hour:hover { border-color: var(--c-red); }
.mtcp-day[aria-pressed="true"], .mtcp-hour[aria-pressed="true"] { border-color: var(--c-red); background: var(--c-red); color: #fff; }
.mtcp-day[aria-pressed="true"] span { color: #F2D7D9; }
.mtcp-series { margin-top: 20px; padding: 16px 20px; border-radius: 12px; background: var(--c-cream); }
.mtcp-series ol { margin: 0 0 8px; padding-left: 22px; }
.mtcp-series li { padding: 2px 0; }

.mtcp-commitments { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: mtcp-commit; }
.mtcp-commitment { counter-increment: mtcp-commit; position: relative; border: 1px solid var(--c-line); border-radius: 16px; padding: 22px 24px 18px 64px; margin-bottom: 14px; background: #fff; transition: opacity .2s, border-color .2s; }
.mtcp-commitment::before { content: counter(mtcp-commit); position: absolute; left: 22px; top: 22px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c-cream); color: var(--c-red); font-weight: 500; }
.mtcp-commitment h3 { font-size: 22px; margin: 0 0 6px; }
.mtcp-commitment p { margin: 0 0 12px; color: var(--c-muted); font-size: 16px; }
.mtcp-commitment.is-locked { opacity: .45; }
.mtcp-commitment.is-accepted { border-color: var(--c-red); }
.mtcp-commitment.is-accepted::before { content: "✓"; background: var(--c-red); color: #fff; }

.mtcp-review { display: grid; gap: 0; margin: 0; }
.mtcp-review__row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.mtcp-review__row dt { color: var(--c-muted); font-size: 14px; }
.mtcp-review__row dd { margin: 0; white-space: pre-line; }

.mtcp-wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.mtcp-wizard-nav .mtcp-button-quiet { color: #CFC5BA; }
.mtcp-wizard-nav [data-mtcp-next], .mtcp-wizard-nav [data-mtcp-submit] { margin-left: auto; }
.mtcp-summary__note:empty { display: none; }
.mtcp-summary .mtcp-summary__note { color: #F2B8BC; }

/* Reserved sessions on the dashboard */
.mtcp-reserved { margin: 0 0 16px; padding: 16px 20px; border: 1px dashed var(--c-red); border-radius: 12px; }
.mtcp-reserved ol { margin: 8px 0 0; padding-left: 22px; }

@media (max-width: 700px) {
	.mtcp-commitment { padding: 20px 18px 16px 56px; }
	.mtcp-commitment::before { left: 16px; }
	.mtcp-review__row { grid-template-columns: 1fr; gap: 2px; }
}

/* Labels and sections are display:block above; keep hidden ones hidden. */
.mtcp-builder [hidden], .mtcp-dashboard [hidden], .mtcp-auth [hidden] { display: none !important; }
