/* ── SAIMOCongress Inscription Form ────────────────────────────────── */

.saimocongress-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1em;
	font-family: inherit;
	box-sizing: border-box;
}

/* ── Error banner ─────────────────────────────────────────── */

.saimocongress-error {
	background: #fdecea;
	border-left: 4px solid #c62828;
	color: #b71c1c;
	padding: .8em 1em;
	margin-bottom: 1.5em;
	border-radius: 0 4px 4px 0;
	font-size: .95em;
}

/* ── Two-column layout ────────────────────────────────────── */

.saimocongress-layout {
	display: flex;
	gap: 2em;
	align-items: flex-start;
}

.saimocongress-summary {
	flex: 0 0 350px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.saimocongress-summary h3 {
	margin: 0;
	padding: .85em 1.3em;
	font-size: .78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #fff;
	background: rgb(0, 71, 186);
}

.saimocongress-form-panel {
	flex: 1 1 auto;
}

.saimocongress-form-panel h3 {
	margin: 0 0 1em;
	font-size: 1.1em;
	color: #333;
}

@media (max-width: 720px) {
	.saimocongress-layout {
		flex-direction: column;
	}

	.saimocongress-summary {
		flex: none;
		width: 100%;
	}
}

/* ── Order table ──────────────────────────────────────────── */

.saimocongress-order-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .9em;
	margin-bottom: 0;
}

.saimocongress-order-table th,
.saimocongress-order-table td {
	border-left: none;
	border-right: none;
}

.saimocongress-order-table thead th {
	padding: .6em 1.3em;
	background: #f1f5fb;
	color: #5a6a85;
	font-size: .78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid #e2e8f0;
}

.saimocongress-order-table tbody td {
	padding: 1em 1.3em;
	border-bottom: 1px solid #f0f4f8;
	vertical-align: top;
	color: #333;
	line-height: 1.4;
}

.saimocongress-order-table tbody td:first-child {
	color: rgb(0, 71, 186);
	font-weight: 500;
}

.saimocongress-order-table tbody td:last-child {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
	color: #222;
}

.saimocongress-order-table tfoot td,
.saimocongress-order-table tfoot th {
	padding: .9em 1.3em;
	border-bottom: none;
}

.saimocongress-order-table tfoot tr:first-child td {
	font-size: .88em;
	color: #c62828;
	border-top: 1px solid #f0f4f8;
	padding-top: .7em;
	padding-bottom: .3em;
}

.saimocongress-order-table tfoot tr:first-child td:last-child {
	text-align: right;
	font-weight: 600;
}

.saimocongress-order-table tfoot tr:last-child th,
.saimocongress-order-table tfoot tr:last-child td {
	border-top: 2px solid #e2e8f0;
	font-weight: 700;
	font-size: 1.05em;
	color: #1a1a2e;
}

.saimocongress-order-table tfoot tr:last-child th:last-child,
.saimocongress-order-table tfoot tr:last-child td:last-child {
	text-align: right;
	color: rgb(0, 71, 186);
}

/* ── Coupon box ───────────────────────────────────────────── */

.saimocongress-coupon-box {
	padding: .9em 1.3em;
	border-top: 1px solid #e2e8f0;
	background: #fafbfd;
}

.saimocongress-coupon-label {
	font-size: .85em;
	font-weight: 600;
	color: #4a5568;
	margin: 0 0 .5em;
}

.saimocongress-coupon-row {
	display: flex;
	gap: .5em;
	margin-top: .5em;
}

.saimocongress-coupon-row input {
	flex: 1;
	padding: .45em .6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .9em;
	text-transform: uppercase;
}

.saimocongress-coupon-row input::placeholder {
	text-transform: none;
}

.saimocongress-coupon-msg {
	margin: .4em 0 0;
	font-size: .85em;
}

.saimocongress-coupon-msg.is-success {
	color: #2e7d32;
}

.saimocongress-coupon-msg.is-error {
	color: #c62828;
}

/* ── Form rows + fields ───────────────────────────────────── */

.saimocongress-row {
	display: flex;
	gap: 1em;
	margin-bottom: .9em;
}

.saimocongress-field {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.saimocongress-field--wide {
	flex: 2 1 0;
}

.saimocongress-field--full {
	flex: 1 1 100%;
}

.saimocongress-field label {
	font-size: .85em;
	font-weight: 600;
	color: #444;
	margin-bottom: .3em;
}

.saimocongress-field .req {
	color: #c62828;
}

.saimocongress-field .optional {
	font-weight: 400;
	color: #888;
}

.saimocongress-field input,
.saimocongress-field select,
.saimocongress-field textarea {
	padding: .55em .7em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .95em;
	font-family: inherit;
	background: #fff;
	color: #222;
	width: 100%;
	box-sizing: border-box;
	transition: border-color .15s;
}

.saimocongress-field input:focus,
.saimocongress-field select:focus,
.saimocongress-field textarea:focus {
	outline: none;
	border-color: #e0174b;
	box-shadow: 0 0 0 2px rgba(224, 23, 75, .12);
}

.saimocongress-field input.is-invalid,
.saimocongress-field select.is-invalid,
.saimocongress-field textarea.is-invalid {
	border-color: #c62828;
}

.saimocongress-field textarea {
	resize: vertical;
}

@media (max-width: 540px) {
	.saimocongress-row {
		flex-wrap: wrap;
	}

	.saimocongress-field,
	.saimocongress-field--wide {
		flex: 1 1 100%;
	}
}

/* ── Form subtitle + menu link ────────────────────────────── */

.saimocongress-form-subtitle {
	margin: -.4em 0 1.2em;
	font-size: .9em;
	color: #555;
}

.saimocongress-form-subtitle a {
	color: rgb(0, 71, 186);
	text-decoration: none;
}

.saimocongress-form-subtitle a:hover {
	text-decoration: underline;
}

.saimocongress-dato-extra-banner {
	background: rgb(0, 71, 186);
	color: #fff;
	font-size: .95em;
	font-weight: 700;
	padding: .7em 1.1em;
	border-radius: 6px;
	margin-bottom: 1em;
	line-height: 1.4;
}

.saimocongress-menu-info-link {
	font-size: .8em;
	font-weight: 400;
	color: rgb(0, 71, 186);
	text-decoration: none;
	margin-left: .5em;
}

.saimocongress-menu-info-link:hover {
	text-decoration: underline;
}

.saimocongress-menu-label {
	display: block;
	margin-bottom: .5em;
}

.saimocongress-menu-intro {
	font-size: .7em;
	color: #555;
	line-height: 1.5;
	margin: 0 0 .75em;
}

.saimocongress-menu-radios {
	display: flex;
	flex-direction: column;
	gap: .5em;
}

.saimocongress-menu-option {
	display: flex;
	align-items: flex-start;
	gap: .75em;
	padding: .75em 1em;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.saimocongress-menu-option:hover {
	border-color: rgb(0, 71, 186);
	background: #f0f4ff;
}

.saimocongress-menu-option input[type="radio"] {
	flex-shrink: 0;
	margin-top: .2em;
	accent-color: rgb(0, 71, 186);
	width: 1.1em;
	height: 1.1em;
}

.saimocongress-menu-option:has(input:checked) {
	border-color: rgb(0, 71, 186);
	background: #e8eeff;
}

.saimocongress-menu-option__body {
	display: flex;
	flex-direction: column;
	gap: .15em;
}

.saimocongress-menu-option__title {
	font-weight: 600;
	color: #1a1a2e;
}

.saimocongress-menu-option__desc {
	font-size: .875em;
	color: #555;
	line-height: 1.4;
}

/* ── Split phone field ────────────────────────────────────── */

.saimocongress-tel-row {
	display: flex;
	gap: .5em;
	align-items: flex-start;
}

.saimocongress-tel-area {
	flex: 0 0 90px;
	display: flex;
	flex-direction: column;
}

.saimocongress-tel-num {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.saimocongress-tel-area input,
.saimocongress-tel-num input {
	width: 100%;
	box-sizing: border-box;
}

.saimocongress-tel-hint {
	font-size: .75em;
	color: #888;
	margin-top: .2em;
}

.saimocongress-field-hint {
	font-size: .78em;
	color: #888;
	margin-top: .25em;
	display: block;
}

/* ── Descuentos especiales ────────────────────────────────── */

.saimocongress-descuentos {
	padding: .85em 1.3em;
	border-top: 1px solid #e2e8f0;
	background: #f0f4ff;
}

.saimocongress-descuentos__titulo {
	font-size: .8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: rgb(0, 71, 186);
	margin: 0 0 .5em;
}

.saimocongress-descuentos__lista {
	margin: 0 0 .6em;
	padding-left: 1.2em;
	font-size: .83em;
	color: #333;
	line-height: 1.7;
}

.saimocongress-descuentos__info {
	font-size: .78em;
	color: #555;
	margin: 0;
	line-height: 1.5;
}

.saimocongress-descuentos__info a {
	color: rgb(0, 71, 186);
}

/* ── Consent checkbox ─────────────────────────────────────── */

.saimocongress-consent {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	font-size: .88em;
	color: #444;
	margin: 0 0 1em;
	cursor: pointer;
}

.saimocongress-consent input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: .1em;
	accent-color: rgb(0, 71, 186);
	width: 1.1em;
	height: 1.1em;
}

/* ── Terms + submit ───────────────────────────────────────── */

.saimocongress-terms {
	font-size: .8em;
	color: #666;
	margin: .5em 0 1em;
}

.saimocongress-terms a {
	color: inherit;
}

.saimocongress-btn-primary {
	display: block;
	width: 100%;
	padding: .85em 1em;
	background: rgb(0, 71, 186);
	color: #fff;
	font-size: 1em;
	font-weight: 700;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background .15s;
}

.saimocongress-btn-primary:hover {
	background: rgb(0, 55, 150);
	color: #fff;
}

.saimocongress-btn-primary:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.saimocongress-btn-secondary {
	padding: .45em .9em;
	background: #fff;
	color: #e0174b;
	border: 1px solid #e0174b;
	border-radius: 4px;
	font-size: .9em;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}

.saimocongress-btn-secondary:hover {
	background: #fdeef2;
}

/* ── Result page ──────────────────────────────────────────── */

.saimocongress-result {
	text-align: center;
	padding: 3em 1em;
}

.saimocongress-result-icon {
	font-size: 3.5em;
	line-height: 1;
	margin-bottom: .3em;
}

.saimocongress-success-icon {
	color: #2e7d32;
}

.saimocongress-pending-icon {
	color: #e65100;
}

.saimocongress-failure-icon {
	color: #c62828;
}

.saimocongress-result-title {
	font-size: 1.8em;
	margin: 0 0 .4em;
	color: #222;
}

.saimocongress-result-msg {
	font-size: 1.05em;
	color: #555;
	margin-bottom: 1.5em;
}

.saimocongress-result-detail {
	display: inline-block;
	background: #f5f5f5;
	border-radius: 6px;
	padding: 1em 1.5em;
	text-align: left;
	margin-bottom: 1.5em;
	font-size: .95em;
	color: #333;
}

.saimocongress-result-ref {
	font-size: .85em;
	color: #888;
	margin: .3em 0 0;
}