/*
 * PostMyDoc Business — application form (signup rebuild P2).
 *
 * Renders inside the theme via the [pmd_business_application] shortcode, so
 * everything is scoped under .pmd-application and leans on plugin-base.css for
 * tokens, buttons and the .pmd-input/.pmd-select/.pmd-textarea field system.
 */

.pmd-application {
	max-width: 46rem;
	margin: 0 auto;
	font-family: var(--pmd-font-body);
	color: var(--pmd-text);
	text-align: left;
}

.pmd-application * { box-sizing: border-box; }

/* ---- Sections ----------------------------------------------------------- */
.pmd-app-section {
	border: 0;
	margin: 0 0 30px;
	padding: 0;
}
.pmd-app-legend {
	display: block;
	width: 100%;
	font-family: var(--pmd-font-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--pmd-navy);
	padding: 0 0 12px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--pmd-border);
}

.pmd-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}
.pmd-grid-2 > .pmd-field { min-width: 0; }

.pmd-req      { color: var(--pmd-danger); font-weight: 600; }
.pmd-optional { color: var(--pmd-text-soft); font-weight: 400; font-size: 12px; }

/* ---- Mode selector (two cards) ----------------------------------------- */
.pmd-mode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.pmd-mode-opt {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: start;
	padding: 14px 16px;
	background: var(--pmd-white);
	border: 1.5px solid var(--pmd-border-strong);
	border-radius: var(--pmd-radius-md);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.pmd-mode-opt:hover { border-color: var(--pmd-cyan-dark); }
.pmd-mode-opt input {
	grid-row: 1 / span 2;
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--pmd-navy);
}
.pmd-mode-opt:has(input:checked) {
	border-color: var(--pmd-navy);
	background: var(--pmd-surface);
	box-shadow: inset 0 0 0 1px var(--pmd-navy);
}
.pmd-mode-title { font-weight: 600; font-size: 14.5px; color: var(--pmd-navy); }
.pmd-mode-sub   { grid-column: 2; font-size: 12.5px; color: var(--pmd-text-muted); line-height: 1.4; }

/* ---- Inline radios (Account Admin yes/no) ------------------------------- */
.pmd-radio-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 4px;
}
.pmd-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--pmd-text);
	cursor: pointer;
}
.pmd-radio input { width: 17px; height: 17px; accent-color: var(--pmd-navy); }

/* ---- Notes / fineprint / success --------------------------------------- */
.pmd-app-note {
	margin: -10px 0 26px;
	padding: 12px 16px;
	background: var(--pmd-info-bg);
	color: var(--pmd-info);
	border-radius: var(--pmd-radius-md);
	font-size: 13.5px;
	line-height: 1.5;
}
.pmd-application-note {
	font-size: 15px;
	color: var(--pmd-text-muted);
}
.pmd-application-note a { color: var(--pmd-navy); font-weight: 500; }
/* AUD-01 link-state guard (2026-07-13): same GP Customizer `a:hover, a:focus,
 * a:active { color: var(--contrast-3) }` (0,1,1) tie-break as the auth pages
 * (see login.css) — win it at (0,2,1) so application-form links keep their
 * navy in hover/focus states. Colour only. */
.pmd-application a:hover,
.pmd-application a:focus,
.pmd-application a:active {
	color: var(--pmd-navy);
}

.pmd-app-actions { margin-top: 6px; }
.pmd-app-actions .pmd-btn { width: 100%; padding: 14px 24px; font-size: 15px; }
.pmd-app-fineprint {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--pmd-text-soft);
	text-align: center;
}

.pmd-app-consent { margin: 22px 0; }
.pmd-turnstile { margin: 18px 0 22px; }

.pmd-application-success {
	padding: 28px 30px;
	background: var(--pmd-success-bg);
	border: 1px solid #b7e3c9;
	border-radius: var(--pmd-radius-lg);
}
.pmd-application-success h2 {
	font-family: var(--pmd-font-display);
	font-weight: 600;
	color: var(--pmd-success);
	margin: 0 0 10px;
	font-size: 22px;
}
.pmd-application-success p { margin: 0; color: var(--pmd-text); line-height: 1.6; }

/* ---- Alert (submit error banner) --------------------------------------- */
.pmd-application .pmd-alert {
	padding: 12px 16px;
	border-radius: var(--pmd-radius-md);
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
}
.pmd-application .pmd-alert-error {
	background: var(--pmd-danger-bg);
	color: var(--pmd-danger);
	border: 1px solid #f0c2c2;
}

/* ---- Honeypot (off-screen, never shown to humans) ---------------------- */
.pmd-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 560px) {
	.pmd-grid-2 { grid-template-columns: 1fr; }
	.pmd-mode   { grid-template-columns: 1fr; }
}
