/* Day Group homepage calculator - matches daydebt-homepage.html hero card */
/* NOTE: the source had width:100% here because the card was a CSS Grid item.
   As an Elementor flex child it must honour its own --width, so no width here. */
.dd-calc-card{background:#143A42;border-radius:22px;overflow:hidden;border:1px solid rgba(175,194,220,.10);box-shadow:0 4px 40px rgba(0,0,0,.18)}
.dd-hc-tag{padding:22px 26px 0;font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:rgba(175,194,220,.42);font-weight:500}
.dd-hc-step{padding:18px 26px 22px}
.dd-hc-step-title{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em;line-height:1.2;margin-bottom:20px}
.dd-hc-step-title em{font-style:italic;font-family:'Source Serif 4',Georgia,serif;font-weight:300;color:#E0913B}

/* --- Drive Formidable's own styling from brand tokens --------------------
   Formidable's slider JS paints the fill inline using var(--slider-color), so
   overriding these variables is more reliable than fighting its stylesheet. */
.dd-calc-card .frm_forms,.dd-calc-card .with_frm_style{
  --slider-color:#E0913B;
  --slider-bar-color:rgba(255,255,255,0.10);
  --slider-track-size:5px;
  --slider-circle-size:18px;
  --label-color:rgba(175,194,220,0.65);
  --text-color:#ffffff;
  --border-radius:10px;
  --field-margin:0px;
  --form-width:100%;
}
/* household slider reads teal in the source */
.dd-calc-card #frm_field_169_container{--slider-color:#2E8B99}

/* --- Formidable reset inside the dark card --- */
.dd-calc-card .frm_forms,.dd-calc-card .frm_form_fields,.dd-calc-card fieldset{border:0;padding:0;margin:0;background:none}
.dd-calc-card .frm_form_fields>fieldset>legend{display:none}
.dd-calc-card .frm_form_field{margin:0 0 18px}
.dd-calc-card .frm_primary_label{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:12px;font-weight:600;color:rgba(175,194,220,.65);letter-spacing:.04em;padding:0;margin:0}
.dd-calc-card .frm_description,.dd-calc-card .frm_none_container .frm_primary_label{display:none}

/* --- Sliders --- */
.dd-calc-card .dd-slider-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.dd-calc-card .dd-slider-val{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:24px;font-weight:800;color:#fff;letter-spacing:-.03em;line-height:1}
.dd-calc-card input[type=range]{width:100%;height:5px;-webkit-appearance:none;appearance:none;background:rgba(255,255,255,.1);border-radius:3px;cursor:pointer;outline:none;display:block;padding:0;border:0}
.dd-calc-card .with_frm_style input[type=range]::-webkit-slider-thumb,
.dd-calc-card input[type=range]::-webkit-slider-thumb{-webkit-appearance:none!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#E0913B!important;border:2.5px solid #143A42!important;box-shadow:0 0 0 2px #E0913B!important;cursor:pointer}
.dd-calc-card .with_frm_style input[type=range]::-moz-range-thumb,
.dd-calc-card input[type=range]::-moz-range-thumb{width:18px!important;height:18px!important;border-radius:50%!important;background:#E0913B!important;border:2.5px solid #143A42!important;box-shadow:0 0 0 2px #E0913B!important;cursor:pointer}
.dd-calc-card #frm_field_169_container input[type=range]::-webkit-slider-thumb{background:#2E8B99!important;box-shadow:0 0 0 2px #2E8B99!important}
.dd-calc-card #frm_field_169_container input[type=range]::-moz-range-thumb{background:#2E8B99!important;box-shadow:0 0 0 2px #2E8B99!important}
/* Astra also styles the WebKit track; keep it flat so the JS/Formidable fill shows */
.dd-calc-card input[type=range]::-webkit-slider-runnable-track{background:transparent!important;box-shadow:none!important;border:0!important;height:5px!important}
/* Hide only Formidable's own numeric readout - NOT every span in the container,
   which would also hide the label/value we inject. */
.dd-calc-card .frm_range_value,.dd-calc-card .frm_range_container .frm-text-center{display:none!important}
.dd-calc-card .dd-scale{display:flex;justify-content:space-between;font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:10px;color:rgba(175,194,220,.3);margin-top:6px;letter-spacing:.04em}

/* --- Text fields --- */
.dd-calc-card input[type=text],.dd-calc-card input[type=tel],.dd-calc-card input[type=email]{width:100%;background:rgba(0,0,0,.22);border:1px solid rgba(175,194,220,.15);border-radius:10px;padding:12px 14px;font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:14px;font-weight:500;color:#fff;outline:none;transition:border-color .15s;box-shadow:none}
.dd-calc-card input::placeholder{color:rgba(175,194,220,.38)}
.dd-calc-card input[type=text]:focus,.dd-calc-card input[type=tel]:focus,.dd-calc-card input[type=email]:focus{border-color:rgba(46,139,153,.6)}
.dd-calc-card .dd-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dd-calc-card .dd-field-row .frm_form_field{margin-bottom:0}
.dd-calc-card .frm_form_field.dd-stack{margin-top:10px}

/* --- Submit --- */
.dd-calc-card .frm_submit{margin:14px 0 0}
/* Formidable's own submit rule is .frm_style_x.with_frm_style .frm_submit button
   (specificity 0,3,1) and hard-codes its blue, so match and beat it. */
.dd-calc-card .frm_forms.with_frm_style .frm_submit button,
.dd-calc-card .frm_forms.with_frm_style .frm_submit input[type=submit],
.dd-calc-card .frm_submit button,
.dd-calc-card .frm_submit input[type=submit]{width:100%!important;background:#E0913B!important;color:#fff!important;font-family:'Hanken Grotesk',system-ui,sans-serif!important;font-weight:700!important;font-size:14.5px!important;padding:14px 20px!important;border-radius:10px!important;border:none!important;box-shadow:none!important;text-shadow:none!important;margin:0!important;cursor:pointer;transition:background .15s}
.dd-calc-card .frm_forms.with_frm_style .frm_submit button:hover,
.dd-calc-card .frm_submit button:hover,
.dd-calc-card .frm_submit input[type=submit]:hover{background:#F0A855!important;color:#fff!important}
.dd-hc-privacy{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:10.5px;color:rgba(175,194,220,.35);text-align:center;margin-top:10px;line-height:1.5}
.dd-calc-card .frm_error,.dd-calc-card .frm_error_style{color:#F0A855;font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:11.5px;background:none;border:0;padding:4px 0 0}
.dd-calc-card .frm_blank_field input{border-color:rgba(224,145,59,.7)!important}

/* --- Results --- */
.dd-hc-results{display:none;padding:18px 26px 22px}
.dd-hc-results.dd-visible{display:block}
.dd-hc-results-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.dd-hc-results-title{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:13px;font-weight:600;color:rgba(175,194,220,.55);letter-spacing:.08em}
/* plain <button>, so theme/kit button styling has to be actively unset */
.dd-calc-card button.dd-hc-back,.dd-hc-back{font-family:'Hanken Grotesk',system-ui,sans-serif!important;font-size:11.5px!important;font-weight:600!important;color:rgba(175,194,220,.45)!important;background:none!important;background-color:transparent!important;border:none!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer;padding:0!important;margin:0!important;width:auto!important;min-height:0!important;line-height:1.2!important;transition:color .15s}
.dd-calc-card button.dd-hc-back:hover,.dd-hc-back:hover{color:rgba(175,194,220,.8)!important;background:none!important}
.dd-hc-result-main{background:rgba(0,0,0,.22);border:1px solid rgba(175,194,220,.1);border-radius:14px;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.dd-hc-result-col{display:flex;flex-direction:column}
.dd-hc-result-col:last-child{border-left:1px solid rgba(175,194,220,.1);padding-left:16px}
.dd-hc-result-kicker{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:rgba(175,194,220,.45);margin-bottom:8px}
.dd-hc-owe{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:26px;font-weight:800;color:rgba(255,255,255,.35);letter-spacing:-.03em;text-decoration:line-through;text-decoration-color:rgba(224,145,59,.7)}
.dd-hc-monthly{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:30px;font-weight:800;color:#3BA8B8;letter-spacing:-.03em;line-height:1}
.dd-hc-monthly span{font-size:14px;font-weight:600;color:rgba(175,194,220,.6)}
.dd-hc-savings-row{background:rgba(46,139,153,.12);border:1px solid rgba(46,139,153,.2);border-radius:10px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.dd-hc-savings-label{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:11.5px;font-weight:600;color:rgba(175,194,220,.6)}
.dd-hc-savings-amount{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:18px;font-weight:800;color:#3BA8B8;letter-spacing:-.02em}
.dd-hc-result-note{font-family:'Source Serif 4',Georgia,serif;font-size:11px;color:rgba(175,194,220,.35);line-height:1.5;font-style:italic;margin-bottom:16px}
.dd-hc-cta-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:#E0913B;color:#fff;font-family:'Hanken Grotesk',system-ui,sans-serif;font-weight:700;font-size:14px;padding:14px 20px;border-radius:10px;transition:background .15s;text-decoration:none}
.dd-hc-cta-btn:hover{background:#F0A855;color:#fff}

/* --- Stat row --- */
.dd-hc-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.07)}
.dd-hc-stat{padding:18px 22px;border-right:1px solid rgba(255,255,255,.07)}
.dd-hc-stat:last-child{border-right:none}
.dd-hc-stat:before{content:'';display:block;height:2px;width:32px;background:#E0913B;border-radius:2px;margin-bottom:10px;opacity:.65}
.dd-hc-stat-num{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:22px;font-weight:800;color:#fff;line-height:1;margin-bottom:4px;letter-spacing:-.03em}
.dd-hc-stat-label{font-family:'Hanken Grotesk',system-ui,sans-serif;font-size:10.5px;color:rgba(175,194,220,.55);font-weight:500;letter-spacing:.04em}

@media (max-width:600px){
  .dd-calc-card .dd-field-row{grid-template-columns:1fr}
  .dd-hc-stat{padding:14px 14px}
  .dd-hc-stat-num{font-size:19px}
}


/* iOS Safari zooms the entire page when a focused field renders below 16px,
   and it does not zoom back out. The calculator is the primary conversion point
   on mobile, so keep the designed 14px on larger screens and step up on phones. */
@media (max-width:767px){
	.dd-calc-card input[type=text],
	.dd-calc-card input[type=tel],
	.dd-calc-card input[type=email],
	.dd-calc-card select,
	.dd-calc-card textarea{font-size:16px}
}

/* --- Autofill fix (added 2026-10-09) ---
   Chrome/Safari force their own background on autofilled fields and it cannot be
   overridden with background-color - only with a large inset box-shadow. Without this
   the field turns light while color:#fff remains, so typed text is invisible. */
.dd-calc-card input:-webkit-autofill,
.dd-calc-card input:-webkit-autofill:hover,
.dd-calc-card input:-webkit-autofill:focus,
.dd-calc-card input:-webkit-autofill:active,
.dd-calc-card textarea:-webkit-autofill,
.dd-calc-card select:-webkit-autofill{
	-webkit-text-fill-color:#fff!important;
	caret-color:#fff!important;
	-webkit-box-shadow:0 0 0 1000px #102D34 inset!important;
	box-shadow:0 0 0 1000px #102D34 inset!important;
	border:1px solid rgba(175,194,220,.15)!important;
	-webkit-transition:background-color 9999s ease-in-out 0s!important;
	transition:background-color 9999s ease-in-out 0s!important;
}
/* Standard selector, kept in its own block so unsupported browsers do not drop the rule above */
.dd-calc-card input:autofill,
.dd-calc-card textarea:autofill,
.dd-calc-card select:autofill{
	color:#fff!important;
	caret-color:#fff!important;
	box-shadow:0 0 0 1000px #102D34 inset!important;
}
/* Make sure the caret is visible during normal typing too */
.dd-calc-card input[type=text],
.dd-calc-card input[type=tel],
.dd-calc-card input[type=email]{caret-color:#fff}

/* --- Focus background fix (added 2026-10-09) ---
   Astra's main.min.css sets `input[type=text]:focus{background-color:#fff}` on every text
   input, and Formidable's own .frm_style_* focus rule sets --bg-color-active. On the dark
   calculator card that turned the field white while the text stayed white, so typing was
   invisible. These selectors are deliberately more specific than both, and marked
   !important, so the field keeps its dark background on focus. */
.dd-calc-card input[type=text],
.dd-calc-card input[type=tel],
.dd-calc-card input[type=email],
.dd-calc-card input[type=number],
.dd-calc-card textarea,
.dd-calc-card input[type=text]:focus,
.dd-calc-card input[type=tel]:focus,
.dd-calc-card input[type=email]:focus,
.dd-calc-card input[type=number]:focus,
.dd-calc-card textarea:focus,
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):not([type=button]),
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):not([type=button]):focus,
.dd-calc-card .frm_forms.with_frm_style .form-field textarea,
.dd-calc-card .frm_forms.with_frm_style .form-field textarea:focus,
.dd-calc-card .frm_forms.with_frm_style .frm_focus_field input[type=text],
.dd-calc-card .frm_forms.with_frm_style .frm_focus_field input[type=tel],
.dd-calc-card .frm_forms.with_frm_style .frm_focus_field input[type=email]{
	background:rgba(0,0,0,.22)!important;
	background-color:rgba(0,0,0,.22)!important;
	color:#fff!important;
	-webkit-text-fill-color:#fff!important;
	caret-color:#fff!important;
	box-shadow:none!important;
}
/* keep the teal focus ring, without reintroducing a background */
.dd-calc-card input[type=text]:focus,
.dd-calc-card input[type=tel]:focus,
.dd-calc-card input[type=email]:focus,
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):focus{
	border-color:rgba(46,139,153,.6)!important;
	outline:none!important;
}

/* --- Autofill shadow restore (added 2026-10-09) ---
   MUST stay last. The focus rule above sets box-shadow:none!important, which cancelled the
   inset shadow that hides Chrome's autofill background. These selectors match or exceed its
   specificity and come later, so the dark fill is restored for autofilled fields. */
.dd-calc-card input:-webkit-autofill,
.dd-calc-card input:-webkit-autofill:hover,
.dd-calc-card input:-webkit-autofill:focus,
.dd-calc-card input:-webkit-autofill:active,
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):not([type=button]):-webkit-autofill,
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):not([type=button]):-webkit-autofill:focus,
.dd-calc-card .frm_forms.with_frm_style .form-field input:not([type=range]):not([type=submit]):not([type=button]):-webkit-autofill:hover{
	-webkit-text-fill-color:#fff!important;
	caret-color:#fff!important;
	-webkit-box-shadow:0 0 0 1000px #102D34 inset!important;
	box-shadow:0 0 0 1000px #102D34 inset!important;
	background-color:transparent!important;
	-webkit-transition:background-color 9999s ease-in-out 0s!important;
	transition:background-color 9999s ease-in-out 0s!important;
}
