/* Modulo "Richiesta di affiliazione" – stesso stile della pagina Punti Vendita Affiliati. */

.pcr-af {
	--af-blue: #2271b1;
	--af-blue-dark: #1a5c94;
	--af-green: #1e9e6b;
	--af-card: #f7f7f8;
	--af-border: #e6e6e6;
	--af-field: #ccd2d9;
	--af-muted: #5c6670;
	--af-error: #b32d2e;
	max-width: 820px;
	margin: 0 auto;
	color: #1d2327;
	box-sizing: border-box;
}

.pcr-af *,
.pcr-af *::before,
.pcr-af *::after {
	box-sizing: inherit;
}

.pcr-af__form {
	padding: 24px;
	background: var(--af-card);
	border: 1px solid var(--af-border);
	border-radius: 14px;
}

.pcr-af__account {
	margin: 0 0 18px;
	padding: 12px 14px;
	background: #fff;
	border-left: 4px solid var(--af-green);
	border-radius: 8px;
	font-size: 15px;
}

.pcr-af__account p {
	margin: 0;
}

.pcr-af__account a {
	color: var(--af-blue);
	font-weight: 600;
}

.pcr-af__section {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pcr-af__section > legend {
	display: block;
	width: 100%;
	margin: 0 0 12px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--af-green);
	font-size: 18px;
	font-weight: 700;
}

.pcr-af__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 14px;
}

.pcr-af__grid--place {
	grid-template-columns: 1fr 2fr 1fr;
}

.pcr-af-field {
	margin: 0 0 12px;
	min-width: 0;
}

.pcr-af-field--full {
	grid-column: 1 / -1;
}

.pcr-af-field > label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.pcr-af__req {
	margin-left: 2px;
	color: var(--af-error);
}

.pcr-af-field input[type="text"],
.pcr-af-field input[type="email"],
.pcr-af-field input[type="tel"],
.pcr-af-field input[type="url"],
.pcr-af-field select,
.pcr-af-field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--af-field);
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
}

.pcr-af-field select {
	min-height: 44px;
}

.pcr-af-field textarea {
	min-height: 150px;
	resize: vertical;
}

.pcr-af-field input:focus,
.pcr-af-field select:focus,
.pcr-af-field textarea:focus {
	outline: 2px solid rgba(34, 113, 177, 0.35);
	outline-offset: 1px;
	border-color: var(--af-blue);
}

.pcr-af-field.has-error input,
.pcr-af-field.has-error select,
.pcr-af-field.has-error textarea {
	border-color: var(--af-error);
}

.pcr-af-field__help,
.pcr-af-field__count {
	margin: 0 0 6px;
	color: var(--af-muted);
	font-size: 14px;
}

.pcr-af-field__count {
	margin: 4px 0 0;
}

.pcr-af-field__count.is-ok {
	color: var(--af-green);
}

.pcr-af-field__error {
	margin: 4px 0 0;
	color: var(--af-error);
	font-size: 14px;
	font-weight: 600;
}

.pcr-af-field__error:empty {
	display: none;
}

.pcr-af__checks {
	margin: 4px 0 14px;
	padding: 0;
	border: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 14px;
}

.pcr-af__checks > legend {
	/* Il float rende la legenda un normale elemento della griglia; il tema la ingrandiva. */
	float: left;
	width: 100%;
	grid-column: 1 / -1;
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: inherit;
}

.pcr-af__checks .pcr-af-field__error {
	grid-column: 1 / -1;
}

.pcr-af-check {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
	cursor: pointer;
}

.pcr-af-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--af-green);
}

.pcr-af__consents {
	margin: 6px 0 8px;
	padding: 14px 14px 2px;
	background: #fff;
	border-radius: 8px;
}

.pcr-af__consents a {
	color: var(--af-blue);
}

.pcr-af-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pcr-af__error {
	min-height: 1.2em;
	margin: 10px 0;
	color: var(--af-error);
	font-weight: 600;
}

.pcr-af__error:empty {
	min-height: 0;
	margin: 6px 0;
}

.pcr-af__submit {
	display: block;
	width: 100%;
	padding: 14px 18px;
	background: var(--af-blue);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pcr-af__submit:hover,
.pcr-af__submit:focus {
	background: var(--af-blue-dark);
	color: #fff;
}

.pcr-af__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.pcr-af__small {
	margin: 10px 0 0;
	color: var(--af-muted);
	font-size: 13px;
	text-align: center;
}

.pcr-af__done {
	padding: 28px 22px;
	text-align: center;
	background: #e8f5ee;
	border: 1px solid #bfe3d0;
	border-radius: 14px;
}

.pcr-af__done:focus {
	outline: none;
}

.pcr-af__done p {
	margin: 0 0 8px;
}

.pcr-af__done-title {
	font-size: 22px;
	font-weight: 800;
	color: #146c49;
}

.pcr-af__done-code {
	margin: 4px 0 14px !important;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 3px;
	color: #146c49;
}

@media (max-width: 600px) {
	.pcr-af__form {
		padding: 16px;
	}

	.pcr-af__grid,
	.pcr-af__grid--place,
	.pcr-af__checks {
		grid-template-columns: 1fr;
	}

	.pcr-af__done-code {
		font-size: 26px;
	}
}
