/**
 * Pest Tech Research — AI Receptionist ROI Calculator Styles
 *
 * @package PTR_Research
 */

/* Form Section Titles */
.ptr-form-section-title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ptr-color-accent, #b45309);
	margin: 0.75rem 0 0.25rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid #fef3c7;
}

/* Form Grouping */
.ptr-calc-group {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: #f8fafc;
	padding: 1.25rem;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
}

/* Net Opportunity Metric Cards */
.ptr-metric-card--net {
	background: var(--ptr-color-primary, #0f2942);
	color: #ffffff;
	border-color: var(--ptr-color-primary, #0f2942);
}

.ptr-metric-card--net .ptr-metric-label {
	color: #94a3b8;
}

.ptr-metric-card--net.is-positive .ptr-metric-value {
	color: var(--ptr-ochre-light, #fde68a);
	font-variant-numeric: tabular-nums;
}

.ptr-metric-card--net.is-negative {
	background: #450a0a;
	border-color: #7f1d1d;
}

.ptr-metric-card--net.is-negative .ptr-metric-label {
	color: #fca5a5;
}

.ptr-metric-card--net.is-negative .ptr-metric-value {
	color: #ef4444;
}

/* Secondary Annual Card */
.ptr-metric-card--annual-net {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.ptr-metric-card--annual-net.is-negative {
	background: #fef2f2;
	border-color: #fecaca;
}

.ptr-metric-card--annual-net .ptr-metric-label {
	color: #166534;
}

.ptr-metric-card--annual-net .ptr-metric-value {
	color: #15803d;
}

.ptr-metric-card--annual-net.is-negative .ptr-metric-label {
	color: #991b1b;
}

.ptr-metric-card--annual-net.is-negative .ptr-metric-value {
	color: #dc2626;
}

/* Break-Even Intelligence Card */
.ptr-breakeven-card {
	background: var(--ptr-color-surface-subtle, #f1f5f9);
	border: 1px solid var(--ptr-color-border, #e2e8f0);
	border-radius: 6px;
	padding: 1.25rem;
	margin-top: 0.5rem;
}

.ptr-breakeven-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--ptr-color-border, #e2e8f0);
}

.ptr-breakeven-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ptr-navy, #0f2942);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.ptr-breakeven-badge {
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--ptr-ochre-subtle, #fef3c7);
	color: var(--ptr-ochre, #b45309);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
}

.ptr-breakeven-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 600px) {
	.ptr-breakeven-stats {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}

.ptr-breakeven-stat-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.ptr-breakeven-stat-label {
	font-size: 0.8rem;
	color: #475569;
	line-height: 1.3;
}

.ptr-breakeven-stat-val {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--ptr-navy, #0f2942);
}

.ptr-breakeven-stat-unit {
	font-size: 0.8rem;
	font-weight: 500;
	color: #64748b;
}

.ptr-breakeven-explainer {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: #3b82f6;
	line-height: 1.45;
}

/* Relative Opportunity ROI-style badge */
.ptr-roi-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 700;
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.ptr-roi-pill.is-negative {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}

/* Comparison Section */
.ptr-comparison-section {
	margin-top: 2rem;
	padding: 0 1.75rem;
}

.ptr-comparison-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.35rem 0;
}

.ptr-comparison-desc {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 1rem 0;
	line-height: 1.5;
}

.ptr-comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: #ffffff;
}

.ptr-comparison-table th,
.ptr-comparison-table td {
	padding: 0.75rem 1rem;
	text-align: right;
	border-bottom: 1px solid #e2e8f0;
}

.ptr-comparison-table th:first-child,
.ptr-comparison-table td:first-child {
	text-align: left;
}

.ptr-comparison-table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #1e293b;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ptr-comparison-table tr:hover {
	background: #f8fafc;
}

.ptr-comparison-metric-name {
	font-weight: 600;
	color: #1e293b;
}

.ptr-comparison-col-ai {
	font-weight: 700;
	color: #0369a1;
	background: #f0f9ff;
}

.ptr-comparison-col-current {
	color: #475569;
}

.ptr-comparison-note {
	font-size: 0.8rem;
	color: #64748b;
	font-style: italic;
	margin-top: 0.75rem;
	line-height: 1.4;
}

/* Sensitivity Section */
.ptr-sensitivity-section {
	margin-top: 2rem;
	padding: 0 1.75rem;
}

.ptr-sensitivity-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.35rem 0;
}

.ptr-sensitivity-desc {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 1rem 0;
	line-height: 1.5;
}

.ptr-sensitivity-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	background: #ffffff;
}

.ptr-sensitivity-table th,
.ptr-sensitivity-table td {
	padding: 0.75rem 1rem;
	text-align: right;
	border-bottom: 1px solid #e2e8f0;
}

.ptr-sensitivity-table th:first-child,
.ptr-sensitivity-table td:first-child {
	text-align: left;
}

.ptr-sensitivity-table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #1e293b;
	font-size: 0.85rem;
}

.ptr-sensitivity-row--default {
	background: #f0fdf4;
	font-weight: 600;
}

.ptr-sensitivity-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	background: #bbf7d0;
	color: #166534;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	margin-left: 0.4rem;
}

/* Actions Bar */
.ptr-calc-actions {
	display: flex;
	justify-content: flex-end;
	padding-top: 0.5rem;
}

.ptr-btn-reset {
	background: none;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	color: #475569;
	font-size: 0.825rem;
	font-weight: 600;
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ptr-btn-reset:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
}
