/* Kainų skaičiuoklė (page-kainu-skaiciuokle.php).
   The client's calculator, restyled in the site's own type and colours: cards
   like the service cards, inputs like the checkout, navy total like the
   consultation banner. */

.rr-calc-eyebrow{margin:0 0 18px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#1F6FB2}
.rr-calc-h1{margin:0;font-family:Newsreader,serif;font-weight:400;font-size:clamp(40px,5vw,68px);line-height:1.04;letter-spacing:-.02em;color:#0B2545;text-wrap:pretty}
.rr-calc-intro{margin:24px 0 0;max-width:640px;font-size:18px;line-height:1.6;color:#33465C;text-wrap:pretty}

.rr-calc-cols{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px;align-items:start;
	padding-top:clamp(36px,5vw,56px);padding-bottom:clamp(64px,8vw,112px)}

/* ------------------------------------------------------------------ form */
.rr-calc-form{display:flex;flex-direction:column;gap:20px;min-width:0}
.rr-calc-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rr-calc-tag{display:inline-flex;align-items:center;padding:9px 16px;border-radius:999px;background:#E6F0FA;color:#1F6FB2;font-size:13px;font-weight:600}
.rr-calc-clear{display:inline-flex;align-items:center;padding:9px 18px;border-radius:999px;border:0;background:#fff;color:#0B2545;
	font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:inset 0 0 0 1.5px #DCE7F2;transition:box-shadow .25s,color .25s,transform .25s}

.rr-calc-card{background:#fff;border-radius:22px;padding:26px clamp(20px,3vw,30px) 14px;
	box-shadow:rgba(11,37,69,.05) 0 1px 2px,rgba(11,37,69,.18) 0 16px 40px -20px}
.rr-calc-card-h{margin:0 0 8px;font-family:Newsreader,serif;font-weight:400;font-size:26px;line-height:1.15;letter-spacing:-.01em;color:#0B2545}

.rr-calc-row{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:16px;align-items:center;padding:14px 0;border-top:1px solid #EEF3F9}
.rr-calc-card-h + .rr-calc-row{border-top:0}
.rr-calc-row > label{min-width:0;cursor:pointer}
.rr-calc-label{display:block;font-size:15px;font-weight:600;line-height:1.4;color:#0B2545}
.rr-calc-row small{display:block;margin-top:3px;font-size:13px;line-height:1.45;color:#5A6B80}
.rr-calc-row small:empty{display:none}
.rr-calc-wide{grid-template-columns:minmax(0,1fr) minmax(0,250px)}

.rr-calc-row input[type=number],
.rr-calc-row select{width:100%;height:48px;padding:0 14px;border:1.5px solid #DCE7F2;border-radius:12px;background:#F9FBFE;
	color:#0B2545;font-family:inherit;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums;outline:none;
	transition:border-color .2s,background .2s;-moz-appearance:textfield;appearance:textfield}
.rr-calc-row input[type=number]{text-align:right}
.rr-calc-row input[type=number]::placeholder{color:#AAB8C8;font-weight:500}
.rr-calc-row input::-webkit-outer-spin-button,
.rr-calc-row input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.rr-calc-row input:hover,.rr-calc-row select:hover{border-color:#C3D6EA}
.rr-calc-row input:focus,.rr-calc-row select:focus{border-color:#1F6FB2;background:#fff}
.rr-calc-row select{appearance:none;-webkit-appearance:none;padding-right:40px;font-size:15px;cursor:pointer;
	background:#F9FBFE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center}

/* checkbox rows: a navy box with a white tick, like the checkout agreement */
.rr-calc-check{display:flex;gap:14px;align-items:flex-start;cursor:pointer}
.rr-calc-check input{appearance:none;-webkit-appearance:none;flex:none;width:24px;height:24px;margin:0;border-radius:7px;
	border:1.5px solid #C3D6EA;background:#F9FBFE;cursor:pointer;transition:background .2s,border-color .2s}
.rr-calc-check input:checked{border-color:#0B2545;background:#0B2545 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") no-repeat center}
.rr-calc-check input:focus-visible{outline:2px solid #1F6FB2;outline-offset:2px}
.rr-calc-check .rr-calc-label{padding-top:1px}

/* ------------------------------------------------------------- summary */
/* Sticky under the 80px header. The breakdown can outgrow the screen, so the
   column scrolls on its own; the padding keeps the cards' shadows unclipped. */
.rr-calc-aside{position:sticky;top:96px;display:flex;flex-direction:column;gap:16px;min-width:0;
	max-height:calc(100vh - 112px);overflow-y:auto;overscroll-behavior:contain;
	margin:-6px -14px;padding:6px 14px 24px;scrollbar-width:thin;scrollbar-color:#C3D6EA transparent}

.rr-calc-total{background:#0B2545;color:#fff;border-radius:22px;padding:26px 28px;display:flex;flex-direction:column;
	box-shadow:rgba(11,37,69,.05) 0 1px 2px,rgba(11,37,69,.18) 0 16px 40px -20px}
.rr-calc-total-lbl{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#8CC2F0}
.rr-calc-total-big{margin-top:12px;font-family:Newsreader,serif;font-weight:400;font-size:clamp(44px,4.6vw,58px);line-height:1;
	letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rr-calc-total-sub{margin-top:6px;font-size:14px;color:#AFC0D3}
.rr-calc-total-vat{display:flex;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;
	border-top:1px solid rgba(255,255,255,.14);font-size:14px;color:#AFC0D3;font-variant-numeric:tabular-nums}
.rr-calc-total-vat span:last-child{color:#fff;font-weight:600}

.rr-calc-warn{padding:12px 16px;border-radius:14px;background:#FFF6E5;color:#8A5A00;font-size:14px;line-height:1.5}

.rr-calc-box{background:#fff;border-radius:22px;padding:22px 24px 16px;
	box-shadow:rgba(11,37,69,.05) 0 1px 2px,rgba(11,37,69,.18) 0 16px 40px -20px}
.rr-calc-box h2{margin:0 0 10px;font-family:Newsreader,serif;font-weight:400;font-size:22px;line-height:1.2;color:#0B2545}
.rr-calc-box table{width:100%;border-collapse:collapse;font-size:14px;color:#0B2545;font-variant-numeric:tabular-nums}
.rr-calc-box td{padding:9px 0;border-bottom:1px solid #EEF3F9;vertical-align:top;line-height:1.4}
.rr-calc-box tr:last-child td{border-bottom:0}
.rr-calc-box td small{display:block;margin-top:2px;font-size:12.5px;color:#5A6B80}
.rr-calc-box td.s{padding-left:14px;text-align:right;white-space:nowrap;font-weight:600}
.rr-calc-box tr.sum td{border-top:1.5px solid #0B2545;padding-top:12px;font-weight:700}

.rr-calc-cta{display:flex;flex-direction:column;gap:10px}
.rr-calc-quote{display:flex;align-items:center;justify-content:center;gap:10px;background:#0B2545;color:#fff;padding:17px 26px;
	border-radius:999px;font-size:15px;font-weight:600;transition:background .25s,transform .25s}
.rr-calc-quote:hover{color:#fff}
.rr-calc-cta p,.rr-calc-note{margin:0;font-size:13px;line-height:1.55;color:#5A6B80}
.rr-calc-cta p{text-align:center}

/* ------------------------------------------------------- phone bottom bar */
.rr-calc-bar{display:none}

@media (max-width:959px){
	.rr-calc-cols{grid-template-columns:minmax(0,1fr)}
	.rr-calc-aside{position:static;max-height:none;overflow:visible;margin:0;padding:0;scroll-margin-top:96px}
	.rr-calc-bar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:30;
		align-items:center;justify-content:space-between;gap:12px;padding:12px 14px 12px 20px;border-radius:18px;background:#0B2545;color:#fff;
		box-shadow:0 18px 40px -16px rgba(11,37,69,.6);transform:translateY(140%);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
	.rr-calc-bar.is-on{transform:none}
	.rr-calc-bar:hover{color:#fff}
	.rr-calc-bar small{display:block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#8CC2F0}
	.rr-calc-bar strong{display:block;margin-top:2px;font-family:Newsreader,serif;font-weight:400;font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}
	.rr-calc-bar-go{padding:10px 16px;border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:600}
}

@media (max-width:520px){
	.rr-calc-row{grid-template-columns:minmax(0,1fr) 92px;gap:12px}
	.rr-calc-wide{grid-template-columns:minmax(0,1fr)}
	.rr-calc-total{padding:22px}
	.rr-calc-box{padding:20px 18px 14px}
}

/* ------------------------------------------------------- quote dialog */
.rr-q{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,32px);
	background:rgba(11,37,69,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:fadeIn .25s ease both}
.rr-q[hidden]{display:none !important}
.rr-q-open body{overflow:hidden}
.rr-q-card{position:relative;width:100%;max-width:520px;max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:28px;
	padding:clamp(26px,4vw,40px);box-shadow:0 40px 90px -30px rgba(11,37,69,.5);animation:pop .4s cubic-bezier(.2,.7,.2,1) both}
.rr-q-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:0;border-radius:50%;background:#EAF2FA;color:#0B2545;
	display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.rr-q-close:hover{background:#DCEAF7}
.rr-q .rr-calc-eyebrow{margin-bottom:12px}
.rr-q-title{margin:0 0 12px;padding-right:40px;font-family:Newsreader,serif;font-weight:400;font-size:clamp(28px,3vw,36px);
	line-height:1.1;letter-spacing:-.015em;color:#0B2545}
.rr-q-lead{margin:0 0 22px;font-size:15px;line-height:1.6;color:#33465C}
.rr-q-lead strong{color:#0B2545;white-space:nowrap}
.rr-q-lead a{color:#1F6FB2;font-weight:600}
.rr-q-fields{display:flex;flex-direction:column;gap:16px}
.rr-q-field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:700;color:#0B2545}
.rr-q-field small{font-size:13px;font-weight:500;color:#5A6B80}
.rr-q-form .rr-btn{width:100%;justify-content:center;margin-top:20px;font-size:15px}
.rr-q-privacy{margin:14px 0 0 !important;font-size:12.5px;line-height:1.5;color:#5A6B80}
.rr-q-privacy a{color:#1F6FB2}
.rr-q-ok{width:56px;height:56px;margin-bottom:18px;border-radius:50%;background:#E6F0FA;color:#1F6FB2;display:flex;align-items:center;justify-content:center}
