/* Elegant Quote Form — frontend wizard styles */

.eqf-wrap {
	--eqf-bg: #0a0b0d;
	--eqf-card-bg: #131518;
	--eqf-panel-bg: #0d0f12;
	--eqf-border: #2a2d33;
	--eqf-border-light: #3a3e46;
	--eqf-blue: #3b82f6;
	--eqf-blue-dark: #2563eb;
	--eqf-text: #f5f6f7;
	--eqf-text-muted: #9ca3af;
	--eqf-text-dim: #6b7280;
	--eqf-danger: #ef4444;
	--eqf-radius: 10px;
	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	font-family: var(--font-sans);
	color: var(--eqf-text);
}
.eqf-wrap *, .eqf-wrap *::before, .eqf-wrap *::after { box-sizing: border-box; }

.eqf-card {
	background: var(--eqf-panel-bg);
	border: 1px solid var(--eqf-border);
	border-radius: 16px;
	padding: 40px;
}

/* Step indicator */
.eqf-steps { margin-bottom: 32px; }
.eqf-step-labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.eqf-step-label { color: var(--eqf-text-dim); transition: color .25s ease; }
.eqf-step-label.is-active,
.eqf-step-label.is-done { color: var(--eqf-blue); }

.eqf-progress-track {
	height: 4px;
	background: var(--eqf-border);
	border-radius: 4px;
	overflow: hidden;
}
.eqf-progress-fill {
	height: 100%;
	width: 25%;
	background: var(--eqf-blue);
	border-radius: 4px;
	transition: width .35s ease;
}

/* Panels */
.eqf-panel { display: none; animation: eqfFade .3s ease; }
.eqf-panel.is-active { display: block; }
@keyframes eqfFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.eqf-title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 6px;
	color: #fff;
}
.eqf-subtitle {
	color: var(--eqf-text-muted);
	font-size: 14.5px;
	margin: 0 0 28px;
}

/* Step 1: service grid */
.eqf-service-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 640px) {
	.eqf-service-grid { grid-template-columns: 1fr; }
}
.eqf-service-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--eqf-border);
	border-radius: var(--eqf-radius);
	cursor: pointer;
	background: var(--eqf-card-bg);
	transition: border-color .2s ease, background .2s ease;
}
.eqf-service-card:hover { border-color: var(--eqf-border-light); }
.eqf-service-card input { position: absolute; opacity: 0; pointer-events: none; }
.eqf-service-card:has(input:checked) {
	border-color: var(--eqf-blue);
	background: rgba(59, 130, 246, 0.08);
}
.eqf-service-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(255,255,255,0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--eqf-blue);
}
.eqf-service-icon svg { width: 20px; height: 20px; }
.eqf-service-icon.eqf-icon-warn { color: #ef5b5b; }
.eqf-service-text { display: flex; flex-direction: column; gap: 4px; }
.eqf-service-text strong {
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}
.eqf-service-text em {
	font-style: normal;
	font-size: 13px;
	color: var(--eqf-text-muted);
	line-height: 1.4;
}

/* Field groups (steps 2 & 3) */
.eqf-field-group { margin-bottom: 22px; }
.eqf-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 640px) {
	.eqf-field-row { grid-template-columns: 1fr; }
}
.eqf-label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #e5e7eb;
}
.eqf-req { color: var(--eqf-danger); }
.eqf-optional { color: var(--eqf-text-dim); font-weight: 400; }
.eqf-hint { font-size: 12.5px; color: var(--eqf-text-dim); margin: -4px 0 10px; }
.eqf-hint-small { font-size: 11.5px; color: var(--eqf-text-dim); }

.eqf-wrap input[type="text"],
.eqf-wrap input[type="tel"],
.eqf-wrap input[type="email"],
.eqf-wrap textarea {
	width: 100%;
	background: var(--eqf-card-bg);
	border: 1px solid var(--eqf-border);
	border-radius: 8px;
	padding: 12px 14px;
	color: var(--eqf-text);
	font-size: 14.5px;
	font-family: var(--font-sans);
	outline: none;
	transition: border-color .2s ease;
}
.eqf-wrap input::placeholder,
.eqf-wrap textarea::placeholder { color: #5b6068; }
.eqf-wrap input:focus,
.eqf-wrap textarea:focus { border-color: var(--eqf-blue); }
.eqf-wrap textarea { resize: vertical; min-height: 100px; }

/* Choice buttons (urgency / property type) */
.eqf-choice-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 640px) {
	.eqf-choice-row { grid-template-columns: 1fr; }
}
.eqf-choice-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 10px;
	border: 1px solid var(--eqf-border);
	border-radius: 8px;
	background: var(--eqf-card-bg);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.eqf-choice-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.eqf-choice-btn input { position: absolute; opacity: 0; pointer-events: none; }
.eqf-choice-btn:has(input:checked) {
	border-color: var(--eqf-blue);
	background: rgba(59, 130, 246, 0.12);
	color: var(--eqf-blue);
}

/* Photo upload */
.eqf-dropzone {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	padding: 28px 16px;
	border: 1.5px dashed var(--eqf-border-light);
	border-radius: var(--eqf-radius);
	background: var(--eqf-card-bg);
	cursor: pointer;
	color: var(--eqf-text-muted);
	font-size: 13.5px;
	transition: border-color .2s ease, background .2s ease;
}
.eqf-dropzone:hover, .eqf-dropzone.is-dragover {
	border-color: var(--eqf-blue);
	background: rgba(59, 130, 246, 0.06);
}
.eqf-dropzone svg { width: 26px; height: 26px; color: var(--eqf-blue); margin-bottom: 4px; }
.eqf-dropzone strong { color: #e5e7eb; }

.eqf-photo-previews {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.eqf-photo-thumb {
	position: relative;
	width: 74px;
	height: 74px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--eqf-border);
}
.eqf-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eqf-photo-remove {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,0.7);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 12px;
	line-height: 1;
	padding: 0;
}

/* Summary box */
.eqf-summary-box {
	background: var(--eqf-card-bg);
	border: 1px solid var(--eqf-border);
	border-radius: var(--eqf-radius);
	padding: 22px 24px;
	margin-bottom: 24px;
}
.eqf-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--eqf-border);
	font-size: 14px;
}
.eqf-summary-row:last-child, .eqf-summary-row-last { border-bottom: none; }
.eqf-summary-row span { color: var(--eqf-text-muted); flex: 0 0 auto; }
.eqf-summary-row strong { color: #fff; font-weight: 600; text-align: right; }
.eqf-summary-row-block { flex-direction: column; align-items: flex-start; gap: 6px; }
.eqf-summary-row-block em { font-style: normal; color: #e5e7eb; }
.eqf-accent-text { color: var(--eqf-blue) !important; text-transform: uppercase; font-size: 12.5px; letter-spacing: 0.03em; }
.eqf-summary-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.eqf-summary-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--eqf-border); }

/* Buttons */
.eqf-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--eqf-border);
}
.eqf-actions-end { justify-content: flex-end; border-top: 1px solid var(--eqf-border); }
.eqf-actions-start { justify-content: flex-start; border-top: none; padding-top: 12px; margin-top: 4px; }

.eqf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-sans);
	font-size: 14.5px;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.eqf-btn svg { width: 16px; height: 16px; }
.eqf-btn-primary { background: var(--eqf-blue); color: #fff; }
.eqf-btn-primary:hover { background: var(--eqf-blue-dark); }
.eqf-btn-ghost { background: transparent; border-color: var(--eqf-border-light); color: #e5e7eb; }
.eqf-btn-ghost:hover { border-color: #fff; }
.eqf-btn-submit {
	width: 100%;
	justify-content: center;
	background: var(--eqf-blue);
	color: #fff;
	padding: 15px;
	font-size: 15.5px;
}
.eqf-btn-submit:hover { background: var(--eqf-blue-dark); }
.eqf-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.eqf-error {
	display: none;
	color: var(--eqf-danger);
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-top: 8px;
}
.eqf-error.is-visible { display: block; }

/* Success panel */
.eqf-success-panel { text-align: center; padding: 30px 0; }
.eqf-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.12);
	color: #22c55e;
	display: flex;
	align-items: center;
	justify-content: center;
}
.eqf-success-icon svg { width: 32px; height: 32px; }
.eqf-success-panel .eqf-subtitle { margin-bottom: 0; }

@media (max-width: 640px) {
	.eqf-card { padding: 24px 18px; }
	.eqf-step-labels { font-size: 10.5px; }
	.eqf-title { font-size: 22px; }
}
