/**
 * Recesso Facile — stili frontend.
 */

.rcf-wrap {
	--rcf-accent: #2563eb;
	--rcf-border: #e2e5ea;
	--rcf-muted: #6b7280;
	--rcf-bg-soft: #f6f8fb;
	--rcf-radius: 12px;

	max-width: 640px;
	margin: 0 auto;
}

.rcf-step {
	background: #fff;
	border: 1px solid var(--rcf-border);
	border-radius: var(--rcf-radius);
	padding: 1.75rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rcf-step__header {
	margin-bottom: 1rem;
}

.rcf-step__badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rcf-accent);
	background: rgba(37, 99, 235, 0.1);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	margin-bottom: 0.6rem;
}

.rcf-step__title {
	margin: 0.2rem 0 0;
	line-height: 1.2;
}

.rcf-deadline {
	color: var(--rcf-muted);
	font-size: 0.92rem;
}

.rcf-info {
	background: var(--rcf-bg-soft);
	border-left: 3px solid var(--rcf-accent);
	padding: 0.75rem 1rem;
	border-radius: 0 8px 8px 0;
	margin: 1rem 0;
	font-size: 0.94rem;
}

.rcf-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 1.1rem;
}

.rcf-field label {
	font-weight: 600;
}

.rcf-field input[type="text"],
.rcf-field input[type="email"],
.rcf-field textarea {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--rcf-border);
	border-radius: 8px;
	box-sizing: border-box;
	font: inherit;
}

.rcf-field input:focus,
.rcf-field textarea:focus {
	outline: none;
	border-color: var(--rcf-accent);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rcf-hint {
	color: var(--rcf-muted);
}

.rcf-field--checkbox {
	margin-top: 0.25rem;
}

.rcf-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.rcf-checkbox input[type="checkbox"] {
	display: inline-block;
	width: 1.05rem;
	height: 1.05rem;
	min-width: 1.05rem;
	margin: 0.2rem 0 0;
	flex-shrink: 0;
	accent-color: var(--rcf-accent);
	appearance: auto;
	-webkit-appearance: checkbox;
	opacity: 1;
	position: static;
	clip: auto;
}

.rcf-checkbox a {
	color: var(--rcf-accent);
}

.rcf-button {
	cursor: pointer;
}

.rcf-button[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.rcf-summary {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0;
}

.rcf-summary th,
.rcf-summary td {
	text-align: left;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--rcf-border);
	vertical-align: top;
}

.rcf-summary th {
	width: 38%;
	font-weight: 600;
	color: var(--rcf-muted);
}

.rcf-callout {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	padding: 0.85rem 1rem;
}

.rcf-notice {
	background: var(--rcf-bg-soft);
	border-radius: 8px;
	padding: 0.85rem 1rem;
	margin: 0.75rem 0;
}

.rcf-notice--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	font-weight: 600;
}

.rcf-notice--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.rcf-step--done {
	text-align: center;
}

.rcf-done__icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto 0.8rem;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	font-size: 1.7rem;
	font-weight: 700;
}

.rcf-reference code {
	font-size: 1rem;
	padding: 0.15rem 0.5rem;
	background: var(--rcf-bg-soft);
	border-radius: 6px;
}

.rcf-footer-link {
	text-align: center;
	padding: 0.75rem 0;
	font-size: 0.85rem;
}
