/* BOF Fiber Calculator — matches BenefitsOfFiber.com colors */
.bof-fc {
	--bof-green: #4E7A60;
	--bof-dark: #2B372F;
	--bof-ink: #313D38;
	--bof-orange: #E85D04;
	--bof-orange-hover: #D35200;
	--bof-muted: #5F7161;
	--bof-line: #D4DED9;
	--bof-soft: #F1F7F4;
	font-family: Georgia, 'Times New Roman', serif;
	color: var(--bof-dark);
	width: 100%;
	text-align: left;
}
.bof-fc *, .bof-fc *::before, .bof-fc *::after { box-sizing: border-box; }
.bof-fc [hidden] { display: none !important; }

.bof-fc__form { display: flex; flex-direction: column; gap: 18px; }
.bof-fc__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .bof-fc__row--two { grid-template-columns: 1fr; } }

.bof-fc__field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.bof-fc__field > label,
.bof-fc__field > legend {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--bof-dark);
	padding: 0;
	margin-bottom: 6px;
}
.bof-fc__optional { font-weight: 400; color: var(--bof-muted); }

.bof-fc input[type="number"],
.bof-fc input[type="text"],
.bof-fc input[type="email"],
.bof-fc select {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: var(--bof-dark);
	background: #fff;
	border: 2px solid var(--bof-line);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .15s ease;
}
.bof-fc input:focus,
.bof-fc select:focus { outline: none; border-color: var(--bof-green); }

.bof-fc__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bof-fc__toggle label { position: relative; cursor: pointer; margin: 0; }
.bof-fc__toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bof-fc__toggle span {
	display: flex; align-items: center; justify-content: center;
	height: 50px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px; font-weight: 600;
	border: 2px solid var(--bof-line);
	border-radius: 8px;
	background: #fff;
	color: var(--bof-dark);
	transition: all .15s ease;
}
.bof-fc__toggle input:checked + span { border-color: var(--bof-green); background: var(--bof-soft); color: var(--bof-green); }
.bof-fc__toggle input:focus-visible + span { outline: 2px solid var(--bof-green); outline-offset: 2px; }

.bof-fc__consent {
	display: flex; gap: 10px; align-items: flex-start;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px; line-height: 1.5; color: var(--bof-muted);
	cursor: pointer;
}
.bof-fc__consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--bof-green); }
.bof-fc__consent a { color: var(--bof-green); text-decoration: underline; }

.bof-fc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bof-fc__error {
	margin: 0;
	padding: 10px 14px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #9B2C00;
	background: #FFF3E0;
	border-left: 3px solid var(--bof-orange);
	border-radius: 4px;
}

.bof-fc__submit {
	width: 100%;
	padding: 18px 30px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px; font-weight: 700;
	color: #fff;
	background: var(--bof-orange);
	border: 0;
	border-radius: 5px;
	box-shadow: 4px 4px 0 var(--bof-ink);
	cursor: pointer;
	transition: background .15s ease, transform .1s ease, box-shadow .1s ease;
}
.bof-fc__submit:hover { background: var(--bof-orange-hover); }
.bof-fc__submit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bof-ink); }
.bof-fc__submit:disabled { opacity: .7; cursor: wait; }

.bof-fc__note { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: var(--bof-muted); text-align: center; }

.bof-fc__success { text-align: center; padding: 24px 8px; outline: none; }
.bof-fc__success-icon {
	width: 64px; height: 64px; margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; color: var(--bof-green);
	background: var(--bof-soft); border: 2px solid var(--bof-line); border-radius: 50%;
}
.bof-fc__success h3 { margin: 0 0 10px; font-family: 'Playfair Display', Georgia, serif; font-size: 28px; color: var(--bof-dark); }
.bof-fc__success p { margin: 0 0 8px; font-size: 17px; line-height: 1.6; color: var(--bof-dark); }
.bof-fc__success .bof-fc__small { font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: var(--bof-muted); }

/* Signup notice (shown instead of a tick-box) */
.bof-fc .bof-fc__notice {
	margin: -4px 0 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bof-muted);
	text-align: center;
}
.bof-fc .bof-fc__notice a { color: var(--bof-green); text-decoration: underline; }

/* ---------------------------------------------------------------------
 * Theme-proofing: the site theme / Elementor global styles restyle inputs
 * and buttons. These rules win over them so the calculator always looks
 * the same.
 * ------------------------------------------------------------------ */
.bof-fc .bof-fc__form input[type="number"],
.bof-fc .bof-fc__form input[type="text"],
.bof-fc .bof-fc__form input[type="email"],
.bof-fc .bof-fc__form select {
	height: 50px !important;
	min-height: 50px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 16px !important;
	line-height: normal !important;
	color: var(--bof-dark) !important;
	background: #fff !important;
	border: 2px solid var(--bof-line) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}
.bof-fc .bof-fc__form input:focus,
.bof-fc .bof-fc__form select:focus { border-color: var(--bof-green) !important; outline: none !important; }
.bof-fc .bof-fc__form input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	-webkit-text-fill-color: var(--bof-dark) !important;
}

.bof-fc .bof-fc__form .bof-fc__toggle span { background: #fff !important; }
.bof-fc .bof-fc__form .bof-fc__toggle input:checked + span { background: var(--bof-soft) !important; }

.bof-fc .bof-fc__form button.bof-fc__submit,
.bof-fc .bof-fc__form button.bof-fc__submit:focus {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 18px 30px !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #fff !important;
	background: var(--bof-orange) !important;
	border: 0 !important;
	border-radius: 5px !important;
	box-shadow: 4px 4px 0 var(--bof-ink) !important;
}
.bof-fc .bof-fc__form button.bof-fc__submit:hover { background: var(--bof-orange-hover) !important; color: #fff !important; }
.bof-fc .bof-fc__form button.bof-fc__submit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--bof-ink) !important; }

/* ---------------------------------------------------------------------
 * Checklists: "What's inside" list and hub grid
 * ------------------------------------------------------------------ */
.bof-cl-inside { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; }
.bof-cl-inside li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 0 !important; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: #2C3830; }
.bof-cl-inside li::before, .bof-cl-inside li::marker { content: none !important; }
.bof-cl-inside__check { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; }

.bof-cl-h1 { margin: 0 !important; font-family: 'Playfair Display', Georgia, serif !important; font-size: 56px !important; font-weight: 700 !important; line-height: 1.18 !important; color: #2C3830 !important; }
.bof-cl-h1 span { color: #4D7C66; }
@media (max-width: 1024px) { .bof-cl-h1 { font-size: 43px !important; } }
@media (max-width: 767px) { .bof-cl-h1 { font-size: 32px !important; } }

.bof-cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .bof-cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bof-cl-grid { grid-template-columns: 1fr; gap: 20px; } }
.bof-cl-card { display: flex; flex-direction: column; background: #fff; border: 2px solid #313D38; border-radius: 8px; box-shadow: 4px 4px 0 #313D38; overflow: hidden; }
.bof-cl-card__media, .bof-cl-card__media:hover { text-decoration: none !important; }
.bof-cl-card__media { display: block; aspect-ratio: 4 / 3; background: #EEF6F1; border-bottom: 2px solid #313D38; overflow: hidden; }
.bof-cl-card__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .3s ease; }
.bof-cl-card:hover .bof-cl-card__img { transform: scale(1.04); }
.bof-cl-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font: 700 56px/1 Arial, sans-serif; color: #4E7A60; }
.bof-cl-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; flex: 1; }
.bof-cl-card__tag { align-self: flex-start; padding: 5px 10px; font: 700 11px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #E85D04; background: #FFF3E0; border: 1px solid #F5C97A; border-radius: 100px; }
.bof-cl-card__title { margin: 4px 0 0 !important; font-family: 'Playfair Display', Georgia, serif !important; font-size: 22px !important; line-height: 1.25 !important; }
.bof-cl-card__title a { color: #2B372F !important; text-decoration: none !important; }
.bof-cl-card__subtitle { margin: 0 !important; font: italic 16px/1.4 Georgia, serif; color: #4E7A60; }
.bof-cl-card__excerpt { margin: 0 !important; font: 15px/1.55 Arial, sans-serif; color: #5F7161; }
.bof-cl-card__btn { margin-top: auto; padding-top: 10px; align-self: flex-start; font: 700 15px/1.2 Arial, sans-serif; color: #E85D04 !important; text-decoration: underline !important; text-underline-offset: 4px; }
/* Checklist covers are portrait pages: keep the title (top) in view on cards */
.bof-cl-card__img { object-position: top center; }
.bof-cl-card__media { aspect-ratio: 4 / 3.4; }
