/* Calculator Rate. Colours are variables, so they can be changed per Elementor widget. */
.crc {
	--crc-accent: #632f29;
	--crc-accent-soft: #f6efea;
	--crc-ink: #1c1917;
	--crc-muted: #78716c;
	--crc-line: #e7e5e4;
	--crc-dark: #1c1917;
	--crc-highlight: #fae1a3;
	--crc-radius: 18px;
	color: var(--crc-ink);
	font-size: 15px;
	line-height: 1.45;
}
.crc *, .crc *::before, .crc *::after { box-sizing: border-box; }
.crc button { font: inherit; }
/* The theme styles every <button> (colours, hover, focus, uppercase). The calculator sets all states itself. */
.crc .crc__type, .crc .crc__lender, .crc .crc__term { -webkit-appearance: none; appearance: none; margin: 0; text-transform: none; letter-spacing: normal; line-height: 1.3; text-decoration: none; box-shadow: none; }

/* Persoane fizice / Persoane juridice */
.crc__types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 560px; margin: 0 auto 22px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--crc-line); box-shadow: 0 6px 20px rgba(28, 25, 23, .06); }
.crc__type { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--crc-ink); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.crc .crc__type:hover, .crc .crc__type:focus, .crc .crc__type:active { background: var(--crc-accent-soft); color: var(--crc-ink); border: 0; }
.crc .crc__type[aria-checked="true"], .crc .crc__type[aria-checked="true"]:hover, .crc .crc__type[aria-checked="true"]:focus, .crc .crc__type[aria-checked="true"]:active { background: var(--crc-accent); color: #fff; box-shadow: 0 6px 16px rgba(99, 47, 41, .28); }
.crc__type:focus-visible, .crc__lender:focus-visible, .crc__term:focus-visible, .crc__cta:focus-visible { outline: 2px solid var(--crc-accent); outline-offset: 2px; }

.crc__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-radius: var(--crc-radius); overflow: hidden; background: #fff; border: 1px solid var(--crc-line); box-shadow: 0 18px 50px rgba(28, 25, 23, .10); }
.crc__inputs { display: grid; gap: 26px; padding: 30px; }
.crc fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.crc legend, .crc__row label { padding: 0; margin: 0 0 10px; font-weight: 700; font-size: 15px; color: var(--crc-ink); }
.crc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.crc__row label { margin: 0; }
.crc__value { font-weight: 800; color: var(--crc-accent); font-variant-numeric: tabular-nums; }
.crc [hidden] { display: none !important; }

/* Lenders */
.crc__lender-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.crc__lender { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 44px 14px 16px; border: 1.5px solid var(--crc-line); border-radius: 14px; background: #fff; color: var(--crc-ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.crc__lender strong { font-size: 16px; }
.crc__lender span { font-size: 13px; color: var(--crc-muted); font-weight: 600; }
.crc__lender::after { content: ""; position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--crc-line); transition: border-color .2s, background .2s; }
.crc .crc__lender[aria-checked="true"], .crc .crc__lender[aria-checked="true"]:hover, .crc .crc__lender[aria-checked="true"]:focus { border-color: var(--crc-accent); background: var(--crc-accent-soft); color: var(--crc-ink); }
.crc__lender[aria-checked="true"]::after { border-color: var(--crc-accent); background: var(--crc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Price */
.crc__money { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 14px; border: 1.5px solid var(--crc-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.crc__money:focus-within { border-color: var(--crc-accent); box-shadow: 0 0 0 3px rgba(99, 47, 41, .12); }
.crc__money input { width: 120px; height: 100%; border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; text-align: right; font-size: 18px; font-weight: 800; color: var(--crc-ink); font-variant-numeric: tabular-nums; }
.crc__money span { font-weight: 700; color: var(--crc-muted); }

/* Sliders */
.crc .crc__range { --crc-fill: 50%; -webkit-appearance: none !important; appearance: none !important; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; accent-color: var(--crc-accent); cursor: pointer; }
.crc input.crc__range::-webkit-slider-runnable-track, .crc input.crc__range:focus::-webkit-slider-runnable-track { box-shadow: none; border: 0; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--crc-accent) var(--crc-fill), var(--crc-line) var(--crc-fill)); }
.crc input.crc__range::-moz-range-track { box-shadow: none; border: 0; height: 6px; border-radius: 99px; background: var(--crc-line); }
.crc input.crc__range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--crc-accent); }
.crc input.crc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--crc-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); transition: transform .15s; }
.crc input.crc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--crc-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.crc input.crc__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.crc__range:focus-visible { outline: none; }
.crc input.crc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(99, 47, 41, .2); }
.crc__scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12.5px; color: var(--crc-muted); }

/* Periods */
.crc__term-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.crc__term { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; padding: 8px 6px; border: 1.5px solid var(--crc-line); border-radius: 12px; background: #fff; color: var(--crc-ink); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.crc__term-main { font-size: 15px; font-weight: 600; white-space: nowrap; }
.crc__term-main strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.crc__term-sub { font-size: 12.5px; color: var(--crc-muted); white-space: nowrap; }
.crc .crc__term:hover, .crc .crc__term:focus, .crc .crc__term:active { background: var(--crc-accent-soft); border-color: #c9a99f; color: var(--crc-ink); }
.crc .crc__lender:hover, .crc .crc__lender:focus, .crc .crc__lender:active { background: var(--crc-accent-soft); border-color: #c9a99f; color: var(--crc-ink); }
.crc .crc__term[aria-checked="true"], .crc .crc__term[aria-checked="true"]:hover, .crc .crc__term[aria-checked="true"]:focus { border-color: var(--crc-accent); background: var(--crc-accent); color: #fff; }
.crc .crc__term[aria-checked="true"] .crc__term-sub { color: rgba(255, 255, 255, .78); }

/* Result */
.crc__result { position: relative; display: flex; flex-direction: column; padding: 32px 30px; background: radial-gradient(120% 90% at 100% 0%, #3a221e 0%, var(--crc-dark) 55%); color: #e7e5e4; }
.crc__label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--crc-highlight); }
.crc__monthly { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 2px; color: #fff; font-size: clamp(38px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.crc__monthly small { font-size: 17px; font-weight: 600; color: #a8a29e; letter-spacing: 0; }
.crc__lender-note { margin: 0 0 22px; color: #a8a29e; font-size: 14px; }
.crc__summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 24px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.crc__summary > div { padding: 14px 16px; background: rgba(28, 25, 23, .55); }
.crc__summary dt { margin: 0 0 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a8a29e; font-weight: 700; }
.crc__summary dd { margin: 0; font-size: 16.5px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.crc__cta { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: auto; padding: 0 22px; border-radius: 12px; background: var(--crc-highlight); color: var(--crc-dark) !important; font-weight: 800; font-size: 16px; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; }
.crc__cta:hover { background: #fce9bd; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.crc__disclaimer { margin: 16px 0 0; font-size: 12.5px; line-height: 1.5; color: #8a837e; }

@media (max-width: 900px) {
	.crc__grid { grid-template-columns: 1fr; }
	.crc__inputs { padding: 20px 16px; gap: 22px; }
	.crc__result { padding: 24px 16px; }
}
@media (max-width: 480px) {
	.crc__type { min-height: 48px; padding: 0 8px; font-size: 15px; gap: 8px; white-space: nowrap; }
	.crc__type svg { display: none; }
	.crc__term-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.crc__term { min-height: 60px; padding: 6px 2px; }
	.crc__term-main { font-size: 12.5px; }
	.crc__term-main strong { font-size: 16px; }
	.crc__term-sub { font-size: 12px; }
	.crc__money input { width: 96px; font-size: 16px; }
	.crc__summary dd { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .crc * { transition: none !important; } }

/* Only one partner for this client type: shown as information, not as a choice. */
.crc .crc__lender--only { cursor: default; padding-right: 16px; }
.crc .crc__lender--only::after { display: none; }
.crc .crc__lender--only, .crc .crc__lender--only:hover, .crc .crc__lender--only:focus { border-color: var(--crc-line); background: #faf8f6; }
