/* AZLOH CRM — formulario de solicitud de presupuesto. Mobile first; hereda la tipografía del tema. */

.azloh-rq {
	--rq-ink: #1d1d1f;
	--rq-muted: #6f6c66;
	--rq-line: #e7e3dc;
	--rq-soft: #f8f6f2;
	--rq-gold: #9a7b4f;
	--rq-gold-soft: #f3ecdf;
	--rq-red: #b42318;
	--rq-radius: 14px;
	/* Personalizables desde Elementor (o desde el CSS del tema). */
	--rq-surface: transparent;
	--rq-btn-radius: 999px;
	--rq-btn-border-width: 1.5px;
	--rq-btn-padding: 14px 22px;
	--rq-btn-bg: var(--rq-ink);
	--rq-btn-color: #fff;
	--rq-btn-border: var(--rq-btn-bg);
	--rq-btn-bg-hover: #000;
	--rq-btn-color-hover: var(--rq-btn-color);
	--rq-btn-border-hover: var(--rq-btn-bg-hover);
	--rq-btn2-bg: transparent;
	--rq-btn2-color: var(--rq-ink);
	--rq-btn2-border: var(--rq-ink);
	--rq-btn2-bg-hover: rgba(0, 0, 0, .06);
	--rq-btn2-color-hover: var(--rq-btn2-color);
	--rq-btn2-border-hover: var(--rq-btn2-border);
	--rq-choice-bg: #fff;
	--rq-choice-color: inherit;
	--rq-choice-border: var(--rq-line);
	--rq-choice-selected-bg: var(--rq-gold-soft);
	--rq-choice-selected-border: var(--rq-gold);
	--rq-field-bg: #fff;
	--rq-field-color: var(--rq-ink);
	--rq-field-border: var(--rq-line);
	--rq-field-radius: 12px;
	max-width: 720px;
	margin: 0 auto;
	color: var(--rq-ink);
}
.azloh-rq *, .azloh-rq *::before, .azloh-rq *::after { box-sizing: border-box; }
.azloh-rq [hidden] { display: none !important; }

.azloh-rq__header { margin-bottom: 18px; }
.azloh-rq__title { margin: 0 0 6px; line-height: 1.2; }
.azloh-rq__intro { margin: 0; color: var(--rq-muted); }

.azloh-rq__progress { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.azloh-rq__progress-label { font-size: .82em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--rq-gold); }
.azloh-rq__progress-track { height: 6px; border-radius: 999px; background: var(--rq-line); overflow: hidden; }
.azloh-rq__progress-bar { display: block; height: 100%; width: 0; background: var(--rq-gold); border-radius: 999px; transition: width .3s ease; }

.azloh-rq__step { animation: azloh-rq-in .25s ease; }
@keyframes azloh-rq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .azloh-rq__step { animation: none; } .azloh-rq__progress-bar { transition: none; } }

.azloh-rq__question { margin: 0 0 16px; font-size: 1.35em; line-height: 1.25; outline: none; }
.azloh-rq__subquestion { margin: 20px 0 10px; font-weight: 600; }

.azloh-rq__choices { display: grid; gap: 10px; }
.azloh-rq__choice { position: relative; display: block; cursor: pointer; }
.azloh-rq__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.azloh-rq__choice-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 18px;
	border: 1.5px solid var(--rq-choice-border);
	border-radius: var(--rq-radius);
	background: var(--rq-choice-bg);
	color: var(--rq-choice-color);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.azloh-rq__choice-label { font-weight: 600; font-size: 1.02em; }
.azloh-rq__choice-hint { color: var(--rq-muted); font-size: .88em; }
.azloh-rq__choice:hover .azloh-rq__choice-body { border-color: #cdbf9f; }
.azloh-rq__choice-body { position: relative; padding-right: 48px; }
.azloh-rq__choice input:checked + .azloh-rq__choice-body { border-color: var(--rq-choice-selected-border); background: var(--rq-choice-selected-bg); box-shadow: inset 0 0 0 1px var(--rq-choice-selected-border), 0 0 0 3px var(--rq-gold-soft); }
.azloh-rq__choice input:checked + .azloh-rq__choice-body::after {
	content: "✓"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; border-radius: 50%; background: var(--rq-choice-selected-border); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.azloh-rq__choice input:focus-visible + .azloh-rq__choice-body { outline: 2px solid var(--rq-gold); outline-offset: 2px; }

.azloh-rq__field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.azloh-rq__field label { font-weight: 600; }
.azloh-rq input[type=text], .azloh-rq input[type=email], .azloh-rq input[type=tel], .azloh-rq textarea {
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1.5px solid var(--rq-field-border) !important;
	border-radius: var(--rq-field-radius) !important;
	font: inherit;
	background: var(--rq-field-bg) !important;
	color: var(--rq-field-color) !important;
	box-shadow: none;
}
.azloh-rq input[type=text]:focus, .azloh-rq input[type=email]:focus, .azloh-rq input[type=tel]:focus, .azloh-rq textarea:focus { border-color: var(--rq-gold) !important; outline: none; box-shadow: 0 0 0 3px var(--rq-gold-soft); }
.azloh-rq textarea { min-height: 120px; resize: vertical; }
.azloh-rq [aria-invalid="true"], .azloh-rq [aria-invalid="true"] .azloh-rq__choice-body { border-color: var(--rq-red) !important; }
.azloh-rq__field-error { margin: 6px 0 0; color: var(--rq-red); font-size: .88em; }

.azloh-rq__check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.azloh-rq__check input { margin-top: 4px; width: 18px; height: 18px; }
.azloh-rq__hint { color: var(--rq-muted); font-size: .88em; margin: 10px 0 0; }
.azloh-rq__grid { display: grid; gap: 4px 14px; }
.azloh-rq__privacy { margin-top: 18px; }

.azloh-rq__dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--rq-line); border-radius: var(--rq-radius); background: var(--rq-soft); text-align: center; cursor: pointer; position: relative; }
.azloh-rq__dropzone:hover { border-color: var(--rq-gold); }
.azloh-rq__dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.azloh-rq__dropzone-title { font-weight: 600; }
.azloh-rq__uploads { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.azloh-rq__upload { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--rq-line); border-radius: 10px; overflow: hidden; margin: 0; }
.azloh-rq__upload-name { font-weight: 600; word-break: break-all; }
.azloh-rq__upload-status { grid-column: 1; color: var(--rq-muted); font-size: .85em; }
.azloh-rq .azloh-rq__upload-remove { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: none !important; border: 0 !important; padding: 4px !important; border-radius: 0; box-shadow: none; text-transform: none; color: var(--rq-red); cursor: pointer; font: inherit; font-size: .9em; }
.azloh-rq__upload-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--rq-gold); transition: width .2s; }
.azloh-rq__upload.is-done .azloh-rq__upload-bar { width: 100% !important; background: #1f7a4d; }
.azloh-rq__upload.is-error { border-color: var(--rq-red); }
.azloh-rq__upload.is-error .azloh-rq__upload-status { color: var(--rq-red); }

.azloh-rq__error, .azloh-rq__alert { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdeceb; color: var(--rq-red); }

.azloh-rq__nav {
	display: flex;
	gap: 10px;
	margin-top: 26px;
	padding: 12px 0;
	background: transparent;
}
/* Botones fijos al pie en móvil: solo si se activa (necesitan un fondo detrás). */
@media (max-width: 599px) {
	.azloh-rq--sticky-nav .azloh-rq__nav,
	.azloh-rq-sticky-yes .azloh-rq__nav {
		position: sticky;
		bottom: 0;
		z-index: 2;
		background: var(--rq-surface);
	}
}
.azloh-rq .azloh-rq__btn,
.azloh-rq button.azloh-rq__btn,
.azloh-rq a.azloh-rq__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: var(--rq-btn-padding) !important;
	border-radius: var(--rq-btn-radius) !important;
	border: var(--rq-btn-border-width) solid var(--rq-btn-border) !important;
	background: var(--rq-btn-bg) !important;
	color: var(--rq-btn-color) !important;
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none !important;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.azloh-rq button.azloh-rq__btn:hover, .azloh-rq button.azloh-rq__btn:focus-visible, .azloh-rq a.azloh-rq__btn:hover {
	background: var(--rq-btn-bg-hover) !important;
	color: var(--rq-btn-color-hover) !important;
	border-color: var(--rq-btn-border-hover) !important;
}
.azloh-rq button.azloh-rq__btn:focus-visible { outline: 2px solid var(--rq-gold); outline-offset: 2px; }
.azloh-rq button.azloh-rq__btn:active { transform: scale(.98); }
.azloh-rq button.azloh-rq__btn:disabled { opacity: .6; cursor: wait; }
.azloh-rq .azloh-rq__btn.azloh-rq__btn--ghost {
	flex: 0 0 auto;
	background: var(--rq-btn2-bg) !important;
	color: var(--rq-btn2-color) !important;
	border-color: var(--rq-btn2-border) !important;
}
.azloh-rq button.azloh-rq__btn.azloh-rq__btn--ghost:hover, .azloh-rq button.azloh-rq__btn.azloh-rq__btn--ghost:focus-visible, .azloh-rq a.azloh-rq__btn.azloh-rq__btn--ghost:hover {
	background: var(--rq-btn2-bg-hover) !important;
	color: var(--rq-btn2-color-hover) !important;
	border-color: var(--rq-btn2-border-hover) !important;
}

.azloh-rq__loading { color: var(--rq-muted); padding: 20px 0; }
.azloh-rq__success { text-align: center; padding: 36px 18px; border: 1px solid var(--rq-line); border-radius: var(--rq-radius); outline: none; }
.azloh-rq__success-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e4f3ea; color: #1f7a4d; font-size: 1.6em; font-weight: 700; margin: 0 0 12px; }
.azloh-rq__success-number { font-weight: 700; letter-spacing: .06em; color: var(--rq-gold); margin: 0 0 8px; }

.azloh-rq__hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 600px) {
	.azloh-rq__choices--grid { grid-template-columns: repeat(2, 1fr); }
	.azloh-rq__grid { grid-template-columns: 1fr 1fr; }
	.azloh-rq__nav { justify-content: flex-end; }
	.azloh-rq .azloh-rq__btn { flex: 0 0 auto; min-width: 180px; }
}
.azloh-rq__hint--lead { margin: -8px 0 16px; }
.azloh-rq__hint--field { margin: 0; }
.azloh-rq__custom + .azloh-rq__custom { margin-top: 18px; }
.azloh-rq__custom .azloh-rq__subquestion { margin-top: 0; }
