/**
 * Estilos del formulario de donación / invitación.
 *
 * @package InvitacionesQR
 */

/* Reset defensivo: neutraliza los márgenes que el tema o Elementor aplican a
   los elementos del formulario. Usamos :where() (especificidad 0) para no
   pisar el espaciado definido por nuestras propias clases más abajo. */
.iqr-form :where( h3, p, label, span, small, fieldset, legend, input, textarea, select, button ) {
	margin: 0;
	box-sizing: border-box;
}

.iqr-form {
	--iqr-verde: #009331;
	--iqr-verde-osc: #00722a;
	max-width: 560px;
	margin: 32px 0;
	padding: 24px;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.06 );
}

.iqr-form__title {
	margin: 0 0 8px;
	color: var( --iqr-verde-osc );
	font-size: 1.35rem;
}

.iqr-form__intro {
	margin: 0 0 18px;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.6;
}

.iqr-form__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	font-weight: 600;
}

.iqr-guest input {
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	font-size: 1rem;
	width: 100%;
}

.iqr-amount-field {
	display: flex;
	align-items: center;
	max-width: 220px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.iqr-amount-symbol {
	padding: 0 10px;
	color: var( --iqr-verde-osc );
	font-weight: 700;
	font-size: 1.15rem;
	background: #f3f5f3;
	align-self: stretch;
	display: flex;
	align-items: center;
}

input.iqr-amount {
	flex: 1;
	border: 0;
	padding: 12px 12px;
	font-size: 1.25rem;
	font-weight: 700;
	width: 100%;
	outline: none;
}

.iqr-amount-help {
	font-weight: 400;
	color: #777;
	font-size: 0.82rem;
}

.iqr-form__count {
	margin: 4px 0 20px;
	font-size: 1.05rem;
}

.iqr-form__count .iqr-num {
	color: var( --iqr-verde-osc );
	font-size: 1.25rem;
}

.iqr-form__count--warn {
	color: #b00;
	font-weight: 600;
}

.iqr-guests {
	display: grid;
	gap: 16px;
	margin-bottom: 20px;
}

.iqr-guest {
	border: 1px solid #e0e0e0;
	border-left: 4px solid var( --iqr-verde );
	border-radius: 10px;
	padding: 14px 16px 4px;
	margin: 0;
}

.iqr-guest__title {
	font-weight: 700;
	color: var( --iqr-verde-osc );
	padding: 0 6px;
	font-size: 0.95rem;
}

.iqr-guest label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 12px;
	font-size: 0.9rem;
	font-weight: 600;
}

.iqr-form__submit {
	background: var( --iqr-verde ) !important;
	color: #fff !important;
	border: 0 !important;
	padding: 14px 22px !important;
	border-radius: 10px !important;
	font-size: 1.05rem !important;
	cursor: pointer;
	width: 100%;
}

.iqr-form__submit:hover {
	background: var( --iqr-verde-osc ) !important;
}

.iqr-form__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.iqr-form__nota {
	margin: 14px 0 0;
	font-size: 0.82rem;
	color: #777;
	line-height: 1.5;
}

.iqr-form--agotado {
	text-align: center;
	color: #b00;
	font-weight: 600;
}

.iqr-qty-fixed {
	font-weight: 600;
}

/* ===== Bloque de evento ([iqr_evento]) ===== */
.iqr-evento {
	--iqr-verde: #009331;
	--iqr-verde-osc: #00722a;
	max-width: 720px;
	margin: 0 auto;
}

.iqr-evento__media {
	margin-bottom: 18px;
}

.iqr-evento__media img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.iqr-evento__title {
	color: var( --iqr-verde-osc );
	margin: 0 0 12px;
	line-height: 1.15;
}

.iqr-evento__meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.iqr-evento__meta li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 1rem;
	color: #333;
}

.iqr-evento__ico {
	flex: 0 0 auto;
	line-height: 1.4;
}

.iqr-evento__desc {
	margin-bottom: 8px;
	line-height: 1.6;
}
