/* ══════════════════════════════════════════════════
   Revive Estimator Styles
   Matches IWC estimator layout with yellow theme
   ══════════════════════════════════════════════════ */

/* ── Container ──────────────────────────────── */
.revive-estimator-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a1a;
	box-sizing: border-box;
}

/* ── Reset theme overrides ── */
.revive-estimator-wrap *,
.revive-estimator-wrap *::before,
.revive-estimator-wrap *::after { box-sizing: border-box; }

.revive-estimator-wrap h1,
.revive-estimator-wrap h2,
.revive-estimator-wrap h3,
.revive-estimator-wrap h4 { margin: 0; padding: 0; line-height: 1.25; }

.revive-estimator-wrap p { margin: 0; padding: 0; }

.revive-estimator-wrap button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.revive-estimator-wrap input[type="text"],
.revive-estimator-wrap input[type="email"],
.revive-estimator-wrap input[type="tel"],
.revive-estimator-wrap input[type="number"] {
	box-sizing: border-box;
	max-width: 100%;
}

/* ── Header ─────────────────────────────────── */
.revive-estimator-header {
	text-align: center;
	margin-bottom: 24px;
}

.revive-badge {
	display: inline-block;
	background: #FFF9E0;
	color: #333;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	padding: 4px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.revive-estimator-header h1 {
	font-size: 28px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 8px;
	line-height: 1.2;
}

.revive-subtitle {
	color: #666;
	font-size: 15px;
	margin: 0;
	line-height: 1.5;
}

/* ── Step Indicator ─────────────────────────── */
.revive-step-indicator {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 13px;
}
.revive-step-label { color: #888; font-weight: 500; }
.revive-step-pct  { color: #333; font-weight: 600; }

/* ── Progress Bar ───────────────────────────── */
.revive-progress-bar {
	width: 100%;
	height: 3px;
	background: #eee;
	border-radius: 2px;
	margin-bottom: 24px;
	overflow: hidden;
}
.revive-progress-fill {
	height: 100%;
	background: #FFDE59;
	border-radius: 2px;
	width: 0%;
	transition: width 0.4s ease;
}

/* ── Form ───────────────────────────────────── */
.revive-form {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.revive-step { animation: reviveFadeIn 0.3s ease; }

@keyframes reviveFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Headings ──────────────────────────── */
.revive-step-heading { margin-bottom: 18px; }

.revive-step-num {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #999;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.revive-step h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a1a;
}

.revive-step-desc {
	color: #666;
	font-size: 14px;
	margin: 0 0 18px;
	line-height: 1.5;
}

.revive-color-link {
	color: #333;
	font-size: 13px;
	text-decoration: underline;
	font-weight: 500;
}

/* ── Fields ─────────────────────────────────── */
.revive-field { margin-bottom: 20px; }
.revive-field label {
	display: block;
	font-weight: 500;
	font-size: 14px;
	color: #444;
	margin-bottom: 8px;
}
.revive-field small {
	display: block;
	color: #999;
	font-size: 12px;
	margin-top: 4px;
	line-height: 1.4;
}
.revive-required { color: #e53935; }

.revive-field input[type="text"],
.revive-field input[type="email"],
.revive-field input[type="tel"],
.revive-field input[type="number"] {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid #e0e0e0;
	border-radius: 12px;
	font-size: 15px;
	transition: border-color 0.2s;
	box-sizing: border-box;
	font-family: inherit;
	background: #fff;
}
.revive-field input:focus {
	outline: none;
	border-color: #FFDE59;
	box-shadow: 0 0 0 3px rgba(255,222,89,0.2);
}

/* ── Button Groups ──────────────────────────── */
.revive-btn-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 8px;
}

/* Stacked = full-width vertical (pitch buttons) */
.revive-btn-group-stacked {
	grid-template-columns: 1fr;
	gap: 8px;
}

/* ── Option Buttons (Story, Layer) ──────────── */
.revive-btn-option {
	display: block;
	padding: 15px 18px;
	border: 1.5px solid #e0e0e0;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	transition: all 0.2s;
	font-family: inherit;
	line-height: 1.3;
}
.revive-btn-option:hover {
	border-color: #FFDE59;
	background: #FFFDF0;
}

/* Active: light tint like IWC (bg-primary/5) */
.revive-btn-option.active {
	border-color: #FFDE59;
	background: #ffde59!important;
	color: #333;
}

/* Pitch buttons: stacked, left-aligned, bigger */
.revive-btn-group-stacked .revive-btn-option {
	text-align: left;
	padding: 20px 22px;
	font-weight: 600;
	font-size: 15px;
}

.revive-btn-option .revive-opt-label { display: block; font-weight: 700; margin-bottom: 4px; font-size: 16px; }
.revive-btn-option .revive-opt-desc  { display: block; font-size: 13px; font-weight: 400; color: #777; word-wrap: break-word; overflow-wrap: break-word; }

/* ── Primary Button (Next/Submit) ───────────── */
.revive-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 9999px;
	font-size: 30px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	font-family: inherit;
	text-align: center;
}

.revive-btn-primary {
	background: #FFDE59;
	color: #000;
	width: 100%;
	padding: 20px;
	font-size: 20px;
	font-weight: 700;
}
.revive-btn-primary:hover { background: #E6C840; opacity: 1; }
.revive-btn-primary:disabled {
	background: #FFF3B0;
	color: #aaa;
	cursor: not-allowed;
	opacity: 0.7;
}

.revive-btn-back {
	background: none;
	color: #888;
	font-size: 20px;
	font-weight: 500;
	padding: 10px 0;
}
.revive-btn-back:hover { color: #333; }

.revive-btn-link {
	display: block;
	background: none;
	border: none;
	color: #333;
	font-size: 14px;
	cursor: pointer;
	padding: 12px 0;
	text-align: center;
	width: 100%;
	text-decoration: underline;
}

.revive-step-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 24px;
}
.revive-step-actions .revive-btn-back { flex: 0 0 auto; }
.revive-step-actions .revive-btn-primary { flex: 2; }

/* ── Shingle Cards ──────────────────────────── */
.revive-shingles-grid {
	display: grid;
	gap: 12px;
	margin-bottom: 16px;
}

.revive-shingle-card {
	border: 1.5px solid #e0e0e0;
	border-radius: 12px;
	padding: 18px;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.revive-shingle-card:hover {
	border-color: #FFE899;
}
.revive-shingle-card.selected {
	border-color: #FFDE59;
	background: rgba(255,222,89, 0.08);
}

.revive-shingle-check {
	flex-shrink: 0;
	padding-top: 2px;
}
.revive-shingle-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: #FFDE59;
	cursor: pointer;
}

.revive-shingle-body { flex: 1; min-width: 0; }
.revive-shingle-body h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
	color: #1a1a1a;
}
.revive-shingle-grade {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}
.revive-shingle-specs {
	font-size: 12px;
	color: #888;
	margin-bottom: 8px;
	display: flex;
	gap: 12px;
}
.revive-shingle-desc {
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	margin: 0 0 10px;
}
.revive-shingle-features { list-style: none; padding: 0; margin: 0; }
.revive-shingle-features li {
	font-size: 12px;
	color: #666;
	padding: 3px 0;
	padding-left: 16px;
	position: relative;
}
.revive-shingle-features li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: #CCB000;
	font-weight: 700;
	font-size: 11px;
}

.revive-shingle-count {
	text-align: center;
	font-size: 13px;
	color: #888;
	font-weight: 500;
	margin-bottom: 8px;
}

/* ── Comparison Cards (Step 3) ──────────────── */
.revive-compare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.revive-compare-card {
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 18px 16px;
	text-align: center;
	background: #fff;
	position: relative;
}
.revive-compare-best {
	border-color: #FFDE59;
	background: rgba(255,222,89,0.06);
}

.revive-compare-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: #FFDE59;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 10px;
	white-space: nowrap;
}

.revive-compare-name {
	font-size: 15px;
	font-weight: 700;
	margin: 6px 0 4px;
	color: #1a1a1a;
}
.revive-compare-grade {
	font-size: 12px;
	color: #888;
	margin-bottom: 10px;
}
.revive-compare-price {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	margin-bottom: 2px;
}
.revive-compare-rate {
	font-size: 12px;
	color: #999;
}

/* ── Estimate Display (Step 3) ──────────────── */
.revive-estimate-box {
	text-align: center;
	padding: 32px 20px;
	background: rgba(255,222,89, 0.08);
	border-radius: 12px;
	border: 1px solid rgba(255,222,89, 0.25);
	margin-bottom: 20px;
}
.revive-estimate-box h2 {
	font-size: 18px;
	color: #444;
	font-weight: 600;
	margin: 0 0 14px;
}
.revive-price-range {
	font-size: 36px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.1;
	margin-bottom: 8px;
}
.revive-estimate-summary {
	font-size: 14px;
	color: #666;
	margin: 0 0 12px;
}
.revive-badge-sm {
	display: inline-block;
	background: #fff;
	border: 1px solid rgba(255,222,89, 0.3);
	color: #333;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 14px;
}
.revive-estimate-detail {
	text-align: center;
	padding: 4px 0;
}
.revive-estimate-detail p {
	font-size: 14px;
	color: #777;
	line-height: 1.5;
	margin: 0 0 14px;
}

/* ── Sticky Estimate (Step 5) ───────────────── */
.revive-estimate-sticky {
	background: rgba(255,222,89, 0.08);
	border: 1px solid rgba(255,222,89, 0.25);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.revive-estimate-sticky-label { font-size: 14px; color: #666; font-weight: 500; }
.revive-estimate-sticky-price { font-size: 20px; font-weight: 800; color: #1a1a1a; }

/* ── Confirmation ───────────────────────────── */
.revive-confirmation { text-align: center; padding: 10px 0; }
.revive-confirm-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255,222,89, 0.2);
	color: #333;
	font-size: 26px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}
.revive-confirmation h2 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.revive-confirmation > p {
	font-size: 15px;
	color: #555;
	line-height: 1.5;
	margin: 0 0 20px;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
}
.revive-confirm-details {
	text-align: left;
	background: #f9f9f9;
	border-radius: 10px;
	padding: 18px 20px;
	max-width: 400px;
	margin: 0 auto 16px;
}
.revive-confirm-details h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #333; }
.revive-confirm-details ol { margin: 0; padding-left: 18px; list-style: decimal; }
.revive-confirm-details li { font-size: 14px; color: #555; line-height: 1.6; padding: 2px 0; }
.revive-confirm-phone { font-size: 14px; color: #777; }
.revive-confirm-phone a { color: #333; font-weight: 600; }

/* ── Error ──────────────────────────────────── */
.revive-error {
	background: #fff5f5;
	border: 1px solid #fcc;
	border-left: 3px solid #e53935;
	color: #c62828;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 500;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 600px) {
	.revive-form { padding: 20px 16px; }
	.revive-estimator-header h1 { font-size: 22px; }
	.revive-price-range { font-size: 28px; }
	.revive-btn-group { grid-template-columns: 1fr; }
	.revive-shingle-card { flex-direction: column; gap: 8px; }
	.revive-step-actions { flex-direction: column; }
	.revive-step-actions .revive-btn-back { order: 2; }
	.revive-step-actions .revive-btn-primary { order: 1; }
	.revive-estimate-sticky { flex-direction: column; align-items: flex-start; }
}
