/* ==========================================================================
   Flexible content block: Calculator CF7 (Pension)
   Self-contained light "card" on the invalda dark background, two-step (tab)
   pension calculator built on a Contact Form 7 form. Step switching + the
   calculation live in assets/js/calculator-cf7.js.
   ========================================================================== */

.calc-cf7 {
	--calc-navy: #00003c;
	--calc-gold: #dc9623;
	--calc-line: #e2e2ec;
	--calc-muted: #5b5b74;
	position: relative;
	margin: 40px 0 60px;
	padding: 28px 28px 32px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 60, .08);
	color: var(--calc-navy);
}

@media (max-width: 767px) {
	.calc-cf7 {
		padding: 18px 14px 22px;
	}
}

.calc-cf7--empty {
	padding: 20px;
	border: 1px dashed var(--calc-gold);
	border-radius: 8px;
	color: var(--calc-muted);
	background: #fff;
}

.calc-cf7 h2,
.calc-cf7 h3,
.calc-cf7 h4,
.calc-cf7 label,
.calc-cf7 p,
.calc-cf7 li,
.calc-cf7 span {
	color: var(--calc-navy);
}

/* --- Decorative step indicator (①—②) ------------------------------------ */
.calc-cf7 .calc-cf7__steps {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 620px;
	margin: 4px auto 32px;
}

.calc-cf7 .calc-cf7__steps::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	top: 18px;
	height: 1px;
	background: var(--calc-line);
	z-index: 0;
}

.calc-cf7 .calc-cf7__step {
	position: relative;
	z-index: 1;
}

.calc-cf7 .calc-cf7__step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--calc-navy);
	background: #fff;
	color: var(--calc-navy);
	font-weight: 600;
	transition: background .2s ease, color .2s ease;
}

.calc-cf7 .calc-cf7__step.is-active .calc-cf7__step-num,
.calc-cf7 .calc-cf7__step.is-done .calc-cf7__step-num {
	background: var(--calc-navy);
	color: #fff;
}

/* --- Steps / tabs -------------------------------------------------------- */
/* Page 2 is hidden until JS reveals it (avoids a flash of both steps). */
.calc-cf7 .calc-cf7__page[data-page="2"] {
	display: none;
}

/* --- Per-field validation ------------------------------------------------ */
.calc-cf7 .calc-cf7__field-error {
	margin-top: 6px;
	color: #b3341a;
	font-size: 0.85rem;
	line-height: 1.4;
}

.calc-cf7 .calc-cf7__invalid label,
.calc-cf7 .calc-cf7__invalid .gfield_label {
	color: #b3341a;
}

.calc-cf7 .calc-cf7__invalid input,
.calc-cf7 .calc-cf7__invalid select,
.calc-cf7 .calc-cf7__invalid textarea {
	border-color: #e3b3a6 !important;
	background: #fdeee9 !important;
}

.calc-cf7 .calc-cf7__page {
	margin: 0;
}

/* --- Fields -------------------------------------------------------------- */
.calc-cf7 .site-form__item {
	margin-bottom: 16px;
}

.calc-cf7 input[type="text"],
.calc-cf7 input[type="email"],
.calc-cf7 input[type="tel"],
.calc-cf7 input[type="number"],
.calc-cf7 select,
.calc-cf7 textarea {
	width: 100%;
	min-height: 46px;
	background: #fff !important;
	color: var(--calc-navy) !important;
	border: 1px solid var(--calc-line);
	border-radius: 6px;
	padding: 10px 14px;
}

.calc-cf7 input:focus,
.calc-cf7 select:focus,
.calc-cf7 textarea:focus {
	border-color: var(--calc-gold);
	outline: none;
	box-shadow: none;
}

.calc-cf7 label {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

/* --- Results ------------------------------------------------------------- */
.calc-cf7 .form_results_wrapper,
.calc-cf7 .calc-cf7__results {
	margin-bottom: 24px;
}

.calc-cf7 .form_results,
.calc-cf7 .calc-cf7__results-inner {
	background: #eef2fb;
	border: 1px solid var(--calc-line);
	border-radius: 10px;
	padding: 20px 24px;
}

.calc-cf7 .gf_inject_pension_results {
	list-style: none;
	margin: 16px 0;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--calc-line);
	border-radius: 8px;
}

.calc-cf7 .gf_inject_pension_results li {
	font-size: 18px;
	line-height: 1.6;
}

.calc-cf7 .gf_inject_pension_results li strong {
	font-size: 22px;
	color: var(--calc-navy);
}

.calc-cf7 .pension-user-data ul {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 14px;
	color: var(--calc-muted);
}

/* --- Buttons / footer ---------------------------------------------------- */
.calc-cf7 .calc-cf7__footer,
.calc-cf7 .gform-page-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 24px;
}

.calc-cf7 .calc-cf7__prev {
	background: transparent;
	border: 1px solid var(--calc-navy);
	color: var(--calc-navy);
	border-radius: 6px;
	padding: 10px 22px;
	cursor: pointer;
	margin-right: auto;
}

.calc-cf7 .calc-cf7__prev:hover {
	background: var(--calc-navy);
	color: #fff;
}

/* Hidden result carrier: a real CF7 field (textarea) so the result can be
   included in the CF7 Mail via its mail-tag, but not visible to the user. */
.calc-cf7 .calc-cf7__result-field {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Error / validation */
.calc-cf7 .calc-cf7__error {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 12px;
	background: #ffe7e0;
	color: #8a2b12;
	border-radius: 6px;
	font-size: 14px;
}

.calc-cf7 .wpcf7-not-valid-tip {
	color: #b3341a;
	font-size: 0.8rem;
	margin-top: 4px;
}

.calc-cf7 .wpcf7-response-output {
	color: var(--calc-navy);
	border-radius: 6px;
}
