/* SAMFyR Eventos — Formulario de inscripción */

.sae-form-wrap {
	max-width: 680px;
	margin: 0 auto;
	font-family: inherit;
}

/* ── Alerta ───────────────────────────────────────────────────────────────── */
.sae-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.sae-alert--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.sae-alert--success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* ── Secciones ─────────────────────────────────────────────────────────────── */
.sae-form__section-title {
	font-size: 16px;
	font-weight: 700;
	margin: 28px 0 14px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e5e7eb;
	color: #111827;
}

/* ── Campos ──────────────────────────────────────────────────────────────── */
.sae-form__row {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}
.sae-form__row--2    { grid-template-columns: 1fr 1fr; }
.sae-form__row--mono { grid-template-columns: 1fr; }

.sae-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sae-form__field label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.sae-form__field input[type="text"],
.sae-form__field input[type="email"],
.sae-form__field input[type="tel"],
.sae-form__field select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #111827;
	background: #fff;
	transition: border-color .15s;
	box-sizing: border-box;
}

.sae-form__field input:focus,
.sae-form__field select:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ── Indicador de método de pago (read-only) ─────────────────────────────── */
.sae-payment-info { margin: 16px 0; }
.sae-payment-info--hidden { display: none; }
.sae-payment-info__label {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
	margin-bottom: 6px;
	font-weight: 600;
}
.sae-payment-info__value {
	display: flex;
	align-items: center;
	gap: 8px;
}
.sae-gateway-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 6px;
	font-weight: 700;
	font-size: .9rem;
}
.sae-gateway-badge--mp {
	background: #009ee3;
	color: #fff;
}
.sae-gateway-badge--pp {
	background: #003087;
	color: #fff;
}
.sae-gateway-note {
	color: #6b7280;
	font-size: .85rem;
}
.sae-gateway-badge--tr {
	background: #047857;
	color: #fff;
}

/* ── Selector de método de pago ARS dual ─────────────────────────────────── */
.sae-metodo-pago { margin: 16px 0; }
.sae-metodo-pago--hidden { display: none; }
.sae-metodo-pago__label {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
	margin-bottom: 8px;
	font-weight: 600;
}
.sae-metodo-pago__opciones {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sae-metodo-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.sae-metodo-option:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}
.sae-metodo-option input[type="radio"] {
	flex-shrink: 0;
}

/* ── Info de transferencia en pantalla de éxito ─────────────────────────── */
.sae-transferencia-info {
	margin-top: 24px;
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 20px 24px;
	text-align: left;
}
.sae-transferencia-info h3 {
	font-size: 16px;
	font-weight: 700;
	color: #065f46;
	margin: 0 0 12px;
}
.sae-transferencia-info__datos {
	background: #fff;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	padding: 12px 16px;
	font-family: monospace;
	font-size: 14px;
	white-space: pre-wrap;
	word-break: break-word;
	color: #111827;
	margin: 0 0 12px;
}
.sae-transferencia-info__nota {
	font-size: 13px;
	color: #047857;
	margin: 0;
}

/* ── Categorías ──────────────────────────────────────────────────────────── */
.sae-cat-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sae-cat-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.sae-cat-option:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}
.sae-cat-option input[type="radio"] {
	margin-top: 2px;
	flex-shrink: 0;
}
.sae-cat-option__name {
	font-weight: 600;
	color: #111827;
	flex: 1;
}
.sae-cat-option__price {
	font-weight: 700;
	color: #2563eb;
	white-space: nowrap;
}
.sae-cat-option__desc {
	display: block;
	font-size: 12px;
	color: #6b7280;
	width: 100%;
	margin-top: 2px;
}

/* ── Resumen de precio ──────────────────────────────────────────────────── */
.sae-price-summary {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
}
.sae-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.sae-price-table td {
	padding: 4px 0;
}
.sae-price-table td:last-child {
	text-align: right;
	font-weight: 600;
}
.sae-total-row td {
	padding-top: 10px;
	border-top: 1px solid #d1d5db;
	font-size: 16px;
}

/* ── Descuento ──────────────────────────────────────────────────────────── */
.sae-discount-field {
	margin-bottom: 16px;
}
.sae-discount-row-input {
	display: flex;
	gap: 8px;
}
.sae-discount-row-input input {
	flex: 1;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}
.sae-btn-apply-discount {
	padding: 9px 16px;
	background: #374151;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
}
.sae-btn-apply-discount:hover { background: #111827; }
.sae-discount-msg {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}
.sae-discount-msg--ok  { color: #059669; }
.sae-discount-msg--err { color: #dc2626; }

/* ── Gateways ───────────────────────────────────────────────────────────── */
/* (legacy gateway radio CSS removed — gateway is now auto-determined by category) */

/* ── Submit ─────────────────────────────────────────────────────────────── */
.sae-form__submit {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.sae-btn-submit {
	padding: 12px 32px;
	background: #1d4ed8;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}
.sae-btn-submit:hover:not(:disabled) { background: #1e40af; }
.sae-btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Éxito ──────────────────────────────────────────────────────────────── */
.sae-success {
	text-align: center;
	padding: 48px 24px;
}
.sae-success__icon {
	font-size: 48px;
	color: #059669;
	margin-bottom: 16px;
}
.sae-success h2 {
	font-size: 24px;
	margin-bottom: 8px;
}
.sae-success__msg {
	color: #374151;
	font-size: 16px;
}

/* ── Notice (inscripciones cerradas) ────────────────────────────────────── */
.sae-notice {
	padding: 16px;
	background: #f3f4f6;
	border-left: 4px solid #9ca3af;
	color: #374151;
	border-radius: 4px;
}

/* ── MercadoPago Brick (inline) ─────────────────────────────────────────── */
.sae-mp-brick-wrap { padding: 8px 0; }
.sae-mp-brick-header { margin-bottom: 20px; }
.sae-mp-brick-back {
	background: none; border: none;
	color: #1d4ed8; cursor: pointer;
	font-size: 13px; padding: 0; margin-bottom: 10px;
	display: inline-flex; align-items: center; gap: 4px;
	text-decoration: underline;
}
.sae-mp-brick-back:hover { opacity: .75; }
.sae-mp-brick-header h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: #111827; }
.sae-mp-brick-desc { font-size: 13px; color: #6b7280; margin: 0; }
.sae-mp-brick-error {
	margin-top: 12px; padding: 10px 14px;
	background: #fee2e2; color: #991b1b;
	border-radius: 6px; font-size: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.sae-form__row--2 { grid-template-columns: 1fr; }
	.sae-gateways { flex-direction: column; }
}
