/* Trademark Seva — Quote module styles (Module 8) */

/* ── Plan selector ──────────────────────────────────────────────────────── */
.tmq-plan-row {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 12px;
	margin-bottom: 4px;
}

.tmq-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 2px solid #d0d5dd;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
	overflow: hidden;
}

.tmq-plan-card:hover {
	border-color: #1a3c8f;
}

.tmq-plan-card.selected {
	border-color: #1a3c8f;
	box-shadow: 0 0 0 3px rgba( 26, 60, 143, .12 );
}

.tmq-plan-card.tmq-plan-popular {
	border-color: #1a3c8f;
}

.tmq-plan-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tmq-plan-badge {
	display: block;
	background: #e8edf8;
	color: #1a3c8f;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
	padding: 4px 10px;
}

.tmq-plan-popular .tmq-plan-badge {
	background: #1a3c8f;
	color: #fff;
}

.tmq-plan-body {
	flex: 1;
	padding: 14px 14px 12px;
}

.tmq-plan-name {
	font-weight: 700;
	font-size: .95rem;
	color: #1a3c8f;
	margin-bottom: 2px;
}

.tmq-plan-fee {
	font-size: 1.2rem;
	font-weight: 800;
	color: #111;
	margin-bottom: 10px;
}

.tmq-plan-fee span {
	font-size: .8rem;
	font-weight: 400;
	color: #666;
}

.tmq-plan-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tmq-plan-check-list li {
	font-size: .78rem;
	color: #444;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	line-height: 1.3;
}

.tmq-plan-check-list li .tmq-chk-icon {
	flex-shrink: 0;
	font-style: normal;
	width: 14px;
	text-align: center;
}

.tmq-plan-check-list li.included .tmq-chk-icon {
	color: #2e7d32;
	font-weight: 700;
}

.tmq-plan-check-list li.excluded {
	color: #999;
}

.tmq-plan-check-list li.excluded .tmq-chk-icon {
	color: #bbb;
}

.tmq-plan-note {
	font-size: .72rem;
	color: #888;
	margin-top: 8px;
	line-height: 1.4;
	font-style: italic;
}

@media ( max-width: 600px ) {
	.tmq-plan-row {
		grid-template-columns: 1fr;
	}
	.tmq-plan-body {
		padding: 12px;
	}
	.tmq-plan-check-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3px 8px;
	}
}

/* ── Applicant type buttons ─────────────────────────────────────────────── */
.tmq-type-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.tmq-type-btn {
	display: flex;
	flex-direction: column;
	flex: 1 1 180px;
	padding: 12px 16px;
	border: 2px solid #d0d5dd;
	border-radius: 8px;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, background .15s;
	user-select: none;
}

.tmq-type-btn input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tmq-type-btn:hover {
	border-color: #1a3c8f;
	background: #f0f4ff;
}

.tmq-type-btn.active {
	border-color: #1a3c8f;
	background: #eef2fb;
}

.tmq-type-label {
	font-weight: 600;
	font-size: .95rem;
	color: #1a3c8f;
}

.tmq-type-hint {
	font-size: .8rem;
	color: #666;
	margin-top: 3px;
}

/* ── Class grid ─────────────────────────────────────────────────────────── */
.tmq-classes-wrap {
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid #e0e4ec;
	border-radius: 8px;
	padding: 10px;
	background: #fafbfd;
	margin-bottom: 4px;
}

.tmq-class-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 148px, 1fr ) );
	gap: 7px;
}

.tmq-class-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	cursor: pointer;
	background: #fff;
	transition: border-color .12s, background .12s;
	font-size: .82rem;
	line-height: 1.3;
}

.tmq-class-chip input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tmq-class-chip:hover {
	border-color: #1a3c8f;
	background: #f4f7ff;
}

.tmq-class-chip.checked {
	border-color: #1a3c8f;
	background: #eef2fb;
}

.tmq-cn {
	font-weight: 700;
	min-width: 22px;
	color: #1a3c8f;
}

.tmq-ct {
	color: #444;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Class count bar (above estimate) ───────────────────────────────────── */
.tmq-class-count-bar {
	margin-top: 10px;
	padding: 10px 14px;
	background: #f0f4ff;
	border: 1px solid #c9d4ef;
	border-radius: 8px;
	font-size: .88rem;
}

.tmq-count-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.tmq-count-row strong {
	font-size: .95rem;
	color: #1a3c8f;
}

.tmq-class-nums {
	color: #555;
	font-size: .85rem;
}

.tmq-per-class-hint {
	margin: 5px 0 0;
	font-size: .8rem;
	color: #666;
	line-height: 1.4;
}

/* ── Estimate table ─────────────────────────────────────────────────────── */
.tmq-estimate-wrap {
	background: #f8fafe;
	border: 1px solid #c9d4ef;
	border-radius: 8px;
	padding: 14px 16px;
	margin-top: 14px;
}

.tmq-estimate-head {
	font-weight: 700;
	font-size: .95rem;
	color: #1a3c8f;
	margin-bottom: 8px;
}

.tmq-estimate-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9rem;
}

.tmq-estimate-table td {
	padding: 5px 6px;
	vertical-align: middle;
}

.tmq-estimate-table tbody tr:not(:last-child) td {
	border-bottom: 1px solid #e4eaf5;
}

.tmq-amount {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	font-weight: 600;
}

.tmq-total-row td {
	border-top: 2px solid #c9d4ef;
	font-weight: 700;
	font-size: 1rem;
	color: #1a3c8f;
	padding-top: 8px;
}

.tmq-estimate-note {
	font-size: .78rem;
	color: #777;
	margin: 8px 0 0;
	line-height: 1.5;
}

/* ── Included-services checklist (inside estimate wrap) ──────────────────── */
.tmq-included-list {
	margin-top: 10px;
	padding: 10px 12px;
	background: #f0f7f0;
	border: 1px solid #b8ddb8;
	border-radius: 6px;
	font-size: .82rem;
}

.tmq-included-title {
	display: block;
	font-size: .85rem;
	color: #1a4a1a;
	margin-bottom: 6px;
}

.tmq-included-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px 12px;
}

.tmq-included-items li::before {
	content: '✓';
	color: #2e7d32;
	font-weight: 700;
	margin-right: 5px;
}

@media ( max-width: 420px ) {
	.tmq-included-items {
		grid-template-columns: 1fr;
	}
}

/* ── Field label ─────────────────────────────────────────────────────────── */
.tmq-field-label {
	font-weight: 600;
	font-size: .9rem;
	color: #333;
	margin-bottom: 7px;
}

/* ── Button row ──────────────────────────────────────────────────────────── */
.tmq-btn-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* ── Standalone card ─────────────────────────────────────────────────────── */
.tmseva-quote-standalone .tmseva-card {
	max-width: 680px;
	margin: 0 auto;
}

.tmseva-quote-standalone .tmseva-quote-brand-input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.tmseva-quote-standalone .tmseva-quote-brand-input:focus {
	outline: none;
	border-color: #1a3c8f;
}

/* ── Admin Quotes view ───────────────────────────────────────────────────── */
.tmseva-quotes-table .column-amount {
	text-align: right;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 520px ) {
	.tmq-type-row {
		flex-direction: column;
	}
	.tmq-class-grid {
		grid-template-columns: repeat( auto-fill, minmax( 120px, 1fr ) );
	}
	.tmq-btn-row {
		flex-direction: column;
		align-items: stretch;
	}
	.tmq-btn-row .tmseva-btn-secondary {
		margin-left: 0;
	}
}
