/* Smart Website Estimator — dark theme, AI-Studio-inspired */

.swe-root {
	--swe-bg: #131314;
	--swe-surface: #1e1f20;
	--swe-surface-2: #26282a;
	--swe-surface-hover: #2d2f31;
	--swe-border: #3c4043;
	--swe-border-soft: #303134;
	--swe-text: #e8eaed;
	--swe-text-muted: #9aa0a6;
	--swe-text-faint: #757980;
	--swe-accent: #8ab4f8;
	--swe-accent-strong: #aecbfa;
	--swe-accent-contrast: #062e6f;
	--swe-warn-bg: #2c2410;
	--swe-warn-text: #fcd34d;
	--swe-info-bg: #12232f;
	--swe-info-text: #8ab4f8;
	--swe-success: #81c995;
	--swe-radius-lg: 16px;
	--swe-radius-md: 12px;

	all: initial;
	display: block;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--swe-text);
	background: var(--swe-bg);
	border-radius: var(--swe-radius-lg);
	overflow: hidden;
	line-height: 1.5;
}

.swe-root,
.swe-root *,
.swe-root *::before,
.swe-root *::after {
	box-sizing: border-box;
}

.swe-root button { font-family: inherit; }

.swe-root svg {
	display: block;
	overflow: visible;
}

.swe-app {
	display: flex;
	flex-direction: column;
	min-height: 560px;
}

.swe-header {
	background: var(--swe-surface);
	border-bottom: 1px solid var(--swe-border-soft);
	padding: 18px 28px;
}

.swe-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
}

.swe-logo {
	font-weight: 600;
	font-size: 16px;
	color: var(--swe-text);
	letter-spacing: 0.2px;
}

.swe-step-label {
	font-size: 13px;
	color: var(--swe-text-muted);
}

.swe-main {
	flex: 1;
	display: flex;
	gap: 40px;
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
	padding: 32px 28px 100px;
	align-items: flex-start;
}

.swe-col-left {
	flex: 1;
	min-width: 0;
}

.swe-col-right {
	width: 320px;
	flex-shrink: 0;
	position: sticky;
	top: 24px;
}

@media (max-width: 900px) {
	.swe-main { flex-direction: column; padding-bottom: 90px; }
	.swe-col-right { display: none; }
}

/* Progress */
.swe-progress--mobile { margin-bottom: 20px; }
.swe-progress--desktop { margin-bottom: 20px; }
.swe-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--swe-text-muted);
	margin-bottom: 8px;
}
.swe-progress-track {
	height: 6px;
	width: 100%;
	background: var(--swe-surface-2);
	border-radius: 999px;
	overflow: hidden;
}
.swe-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--swe-accent), var(--swe-accent-strong));
	border-radius: 999px;
	transition: width 0.4s ease;
}

/* Question */
.swe-question-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--swe-text);
	margin: 0 0 8px;
	letter-spacing: -0.01em;
}
.swe-question-subtitle {
	color: var(--swe-text-muted);
	font-size: 15px;
	margin: 0 0 24px;
}
.swe-question-note {
	color: var(--swe-accent-strong);
	font-size: 13.5px;
	font-style: italic;
	margin: -14px 0 20px;
}

.swe-options-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
.swe-options-grid--2col {
	grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
	.swe-options-grid--2col { grid-template-columns: 1fr; }
}

.swe-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 16px 18px;
	border-radius: var(--swe-radius-md);
	border: 1px solid var(--swe-border);
	background: var(--swe-surface);
	color: var(--swe-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
	font-size: 15.5px;
	font-weight: 500;
}
.swe-option:hover {
	border-color: var(--swe-accent);
	background: var(--swe-surface-hover);
}
.swe-option--selected {
	border-color: var(--swe-accent);
	background: var(--swe-info-bg);
	color: var(--swe-accent-strong);
}
.swe-option-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--swe-accent);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.swe-option-check svg { width: 20px; height: 20px; }

.swe-option--other {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	cursor: default;
}
.swe-option-toggle {
	display: flex;
	align-items: center;
	width: 100%;
	background: transparent;
	border: none;
	color: inherit;
	padding: 16px 18px;
	cursor: pointer;
	font-size: 15.5px;
	font-weight: 500;
	text-align: left;
}
.swe-other-input {
	margin: 0 18px 16px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--swe-border);
	background: var(--swe-bg);
	color: var(--swe-text);
	font-size: 14px;
	outline: none;
}
.swe-other-input:focus { border-color: var(--swe-accent); }

/* Textarea */
.swe-textarea {
	width: 100%;
	min-height: 140px;
	padding: 16px;
	border-radius: var(--swe-radius-md);
	border: 1px solid var(--swe-border);
	background: var(--swe-surface);
	color: var(--swe-text);
	font-size: 15px;
	font-family: inherit;
	resize: vertical;
	outline: none;
}
.swe-textarea:focus { border-color: var(--swe-accent); }
.swe-hint {
	margin-top: 8px;
	font-size: 13px;
	color: var(--swe-text-faint);
}

/* Nav buttons */
.swe-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--swe-border-soft);
}
.swe-back-row { margin-top: 24px; }

.swe-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s ease;
	padding: 10px 20px;
}
.swe-btn span svg { width: 16px; height: 16px; display: block; }
.swe-btn--ghost {
	background: transparent;
	color: var(--swe-text-muted);
}
.swe-btn--ghost:hover { color: var(--swe-accent-strong); background: var(--swe-surface-2); }
.swe-btn--hidden { visibility: hidden; }

.swe-btn--primary {
	background: var(--swe-accent);
	color: var(--swe-accent-contrast);
	padding: 12px 26px;
	box-shadow: 0 2px 10px rgba(138, 180, 248, 0.25);
}
.swe-btn--primary:hover { background: var(--swe-accent-strong); transform: translateY(-1px); }
.swe-btn--disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.swe-btn--block { width: 100%; justify-content: center; }
.swe-btn--lg { padding: 14px 26px; font-size: 15.5px; margin-top: 8px; }

/* Price panel */
.swe-price-card {
	background: var(--swe-surface);
	border: 1px solid var(--swe-border-soft);
	border-radius: var(--swe-radius-lg);
	padding: 22px;
}
.swe-price-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--swe-text-faint);
	margin: 0 0 10px;
}
.swe-price-value {
	font-size: 28px;
	font-weight: 800;
	color: var(--swe-text);
	letter-spacing: -0.01em;
	margin-bottom: 18px;
}
.swe-price-pending {
	font-size: 17px;
	font-style: italic;
	color: var(--swe-text-muted);
	margin-bottom: 18px;
}
.swe-price-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border-radius: 10px;
	padding: 12px;
	font-size: 13px;
	line-height: 1.45;
	margin-bottom: 10px;
}
.swe-price-note span { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.swe-price-note span svg { width: 18px; height: 18px; }
.swe-price-note p { margin: 0; }
.swe-price-note--info { background: var(--swe-info-bg); color: var(--swe-accent-strong); }
.swe-price-note--warn { background: var(--swe-warn-bg); color: var(--swe-warn-text); }
.swe-price-footer {
	text-align: center;
	font-size: 11.5px;
	color: var(--swe-text-faint);
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--swe-border-soft);
}

/* Contact form */
.swe-contact-form { max-width: 560px; }
.swe-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .swe-field-row { grid-template-columns: 1fr; } }
.swe-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.swe-field label { font-size: 13.5px; font-weight: 600; color: var(--swe-text-muted); }
.swe-field input,
.swe-field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--swe-border);
	background: var(--swe-surface);
	color: var(--swe-text);
	font-size: 14.5px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s ease;
}
.swe-field input:focus,
.swe-field textarea:focus { border-color: var(--swe-accent); }
.swe-field input::placeholder,
.swe-field textarea::placeholder { color: var(--swe-text-faint); }

/* Mobile sticky bar */
.swe-mobile-bar {
	display: none;
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--swe-surface);
	border-top: 1px solid var(--swe-border-soft);
	padding: 14px 20px;
	align-items: center;
	justify-content: space-between;
}
.swe-mobile-bar-label { font-size: 11px; text-transform: uppercase; color: var(--swe-text-faint); margin: 0; font-weight: 700; }
.swe-mobile-bar-value { font-size: 16px; font-weight: 700; color: var(--swe-text); margin: 2px 0 0; }
.swe-mobile-bar-pending { font-size: 13px; color: var(--swe-text-muted); margin: 2px 0 0; }
.swe-mobile-bar-btn {
	background: var(--swe-info-bg);
	color: var(--swe-accent-strong);
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 13.5px;
	cursor: pointer;
}
@media (max-width: 900px) {
	.swe-mobile-bar { display: flex; }
}

/* Mobile modal */
.swe-modal-root { position: fixed; inset: 0; z-index: 999; }
.swe-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.swe-modal-sheet {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: var(--swe-surface);
	border-radius: 20px 20px 0 0;
	padding: 24px;
	border-top: 1px solid var(--swe-border-soft);
}
.swe-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.swe-modal-header h3 { margin: 0; font-size: 17px; color: var(--swe-text); }
.swe-modal-close { background: var(--swe-surface-2); border: none; border-radius: 999px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--swe-text-muted); }
.swe-modal-close span { display: inline-flex; width: 18px; height: 18px; }
.swe-modal-close span svg { width: 18px; height: 18px; }
.swe-modal-price { text-align: center; font-size: 26px; font-weight: 800; color: var(--swe-text); background: var(--swe-surface-2); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.swe-modal-note { text-align: center; font-size: 13px; color: var(--swe-text-muted); margin-bottom: 20px; }

/* Success */
.swe-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 60px 24px;
	animation: swe-fade-up 0.3s ease;
}
.swe-success-icon {
	width: 64px; height: 64px;
	background: rgba(129, 201, 149, 0.15);
	color: var(--swe-success);
	border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 22px;
}
.swe-success-icon svg { width: 32px; height: 32px; }
.swe-success h2 { font-size: 26px; margin: 0 0 12px; color: var(--swe-text); }
.swe-success p { color: var(--swe-text-muted); max-width: 420px; margin: 0 0 24px; }
.swe-success a { color: var(--swe-accent); font-weight: 600; text-decoration: none; }
.swe-success a:hover { color: var(--swe-accent-strong); }

@keyframes swe-fade-up {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
