/* Pricing page (templates/pricing.php)
 * Base typography, header, banner and .button come from the theme (services.css).
 * Everything here is scoped under .sbp and uses the theme palette:
 * navy #191937 · accent #ff0055 · text #62748a · page bg #f4f4f9
 */
.sbp {
	--sbp-navy: #191937;
	--sbp-accent: #ff0055;
	--sbp-text: #62748a;
	--sbp-line: #e4e6ef;
}
.sbp *, .sbp *::before, .sbp *::after { box-sizing: border-box; }

/* Section rows — the banner already gives 80px above the first row,
 * rows use 40px top/bottom so sections sit 80px apart. */
.sbp-row { padding-top: 40px !important; padding-bottom: 40px !important; scroll-margin-top: 100px; }
.sbp-row-first { padding-top: 0 !important; }
.sbp-row-last { padding-bottom: 80px !important; }
.sbp-note { font-size: 14px; margin: 24px 0 0; text-align: center; }
.sbp-small { font-size: 13px; margin: 0; }
.sbp-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.content-header .sbp-buttons { justify-content: center; }

/* Cards */
.sbp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sbp-grid-2 { grid-template-columns: repeat(2, 1fr); }
.sbp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sbp-line); border-radius: 6px; padding: 35px 30px; transition: box-shadow .3s, transform .3s; }
.sbp-card:hover { box-shadow: 0 15px 40px rgba(25, 25, 55, .1); transform: translateY(-4px); }
.sbp-card.sbp-featured { border: 2px solid var(--sbp-accent); }
.sbp-card.sbp-card-alt { background: #e9e9f2; align-items: flex-start; }
.sbp-badges { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.sbp-badge { background: #f4f4f9; color: var(--sbp-text); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.sbp-badge-accent { background: var(--sbp-accent); color: #fff; }
.sbp-card h3 { font-size: 1.25rem; line-height: 1.35em; margin: 0 0 8px; }
.sbp-card p { font-size: 14px; margin: 0; }
.sbp-price { font-size: 2rem; font-weight: 700; color: var(--sbp-navy); margin: 20px 0 6px; line-height: 1.2; }
.sbp-price small, .sbp-rows small { font-size: 13px; font-weight: 400; color: var(--sbp-text); }
.sbp-rows { margin-top: 20px; }
.sbp-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sbp-line); font-size: 14px; }
.sbp-rows div:last-child { border-bottom: 0; }
.sbp-rows strong { color: var(--sbp-navy); white-space: nowrap; }
.sbp-card ul { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--sbp-line); list-style: none; }
.sbp-card h3 + ul { border-top: 0; padding-top: 0; margin-top: 8px; }
.sbp-card li { position: relative; margin: 8px 0; padding-left: 22px; font-size: 14px; list-style: none; }
.sbp-card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 2px solid var(--sbp-accent); border-bottom: 2px solid var(--sbp-accent); transform: rotate(-45deg); }
.sbp-card .button { margin-top: auto; }
.sbp-card > :has(+ .button) { margin-bottom: 24px; }
.sbp-card .button.outline { border-width: 2px; line-height: 36px; color: var(--sbp-navy); }
.sbp-card .button.outline:hover { color: #fff; border-color: #231834; }

/* Filled boxes: hire banner, results (navy) and closing CTA (accent) */
.sbp-box { background: var(--sbp-navy); border-radius: 6px; padding: 50px; color: rgba(255, 255, 255, .7); }
.sbp-box h2, .sbp-box .sbp-price { color: #fff; }
.sbp-box h2 { margin: 0 0 12px; }
.sbp-box p { margin: 0; }
.sbp-box .button.outline { border-width: 2px; line-height: 36px; }
.sbp-hire { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sbp-hire h2 { font-size: 1.75rem; line-height: 1.3em; }
.sbp-hire .sbp-buttons { margin: 20px 0 14px; }
.sbp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sbp-tags span { border: 1px solid rgba(255, 255, 255, .25); border-radius: 20px; padding: 4px 14px; font-size: 13px; }
.sbp-stat { text-align: center; }
.sbp-stat .sbp-price { margin-top: 0; font-size: 2.5rem; }
.sbp-stat p { font-size: 14px; }
.sbp-cta { background: var(--sbp-accent); color: #fff; }
.sbp-cta .sbp-buttons { margin-top: 24px; }
.sbp-cta .button.white { color: var(--sbp-navy); }
.sbp-cta .button.white:hover { color: #fff; }

/* FAQ toggles (theme .vc_toggle) in two columns */
.sbp-faq { gap: 10px 30px; align-items: start; }
#site .sbp-faq .vc_toggle { margin: 0; }

@media (max-width: 1024px) {
	.sbp-grid { grid-template-columns: 1fr 1fr; }
	.sbp-hire { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.sbp-grid, .sbp-grid-2 { grid-template-columns: 1fr; }
	.sbp-row { padding-top: 25px !important; padding-bottom: 25px !important; }
	.sbp-row-first { padding-top: 0 !important; }
	.sbp-row-last { padding-bottom: 50px !important; }
	.sbp-box { padding: 30px 24px; }
}

/* Quote form popup (theme contact form inside) */
.sbp-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; background: rgba(25, 25, 55, .8); }
.sbp-modal[hidden] { display: none; }
.sbp-modal-dialog { position: relative; width: 100%; max-width: 640px; margin: auto; background: #fff; border-radius: 6px; padding: 26px 32px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.sbp-modal-dialog h3 { margin: 0 0 4px; font-size: 1.4rem; }
.sbp-modal-dialog > p { margin: 0 0 14px; font-size: 14px; }
.sbp-modal-close { position: absolute; top: 6px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--sbp-text); font-size: 30px; line-height: 36px; cursor: pointer; }
.sbp-modal-close:hover { color: var(--sbp-accent); }
.sbp-modal-open { overflow: hidden; }
/* Compact form so the whole popup fits a laptop screen without scrolling */
.sbp-modal .contact .row { margin: 0 -10px 10px; }
.sbp-modal .contact .row:last-child { margin-bottom: 0; }
.sbp-modal .contact .row .columns { padding: 0 10px; }
.sbp-modal .contact .row label { font-size: 13px; margin: 0; }
.sbp-modal .contact .row label span { margin-top: 4px; }
.sbp-modal .contact .row input:not([type="submit"]) { height: 40px; padding-top: 0; padding-bottom: 0; }
.sbp-modal .contact .row textarea { height: 76px; }
.sbp-modal .contact .row input[type="submit"] { height: 44px; line-height: 44px; }
.sbp-modal .wpcf7 p { margin: 0; }
.sbp-modal .wpcf7 form .wpcf7-response-output { margin: 10px 0 0; font-size: 13px; }
.sbp-modal .wpcf7-spinner { position: absolute; right: 10px; bottom: 12px; }
/* Contact Form 7 adds a line break after the message box inside its label: an empty line above the button */
.sbp-modal .contact label .wpcf7-form-control-wrap + br, .ssd-form .contact label .wpcf7-form-control-wrap + br { display: none; }
/* Phones: the theme only stacks form columns from 768px up to 992px, so below that the
 * half-width fields (name/email, phone/subject) would stay side by side; stack them here.
 * 16px text in the fields stops iOS zooming in when one is tapped. */
@media (max-width: 767px) {
	.sbp-modal .contact .row, .ssd-form .contact .row { margin-left: 0; margin-right: 0; }
	.sbp-modal .contact .row .columns, .ssd-form .contact .row .columns { float: none; width: 100%; padding: 0; margin-bottom: 10px; }
	.sbp-modal .contact .row .columns:last-child, .ssd-form .contact .row .columns:last-child { margin-bottom: 0; }
	.sbp-modal .contact .row input:not([type="submit"]), .sbp-modal .contact .row textarea,
	.ssd-form .contact .row input:not([type="submit"]), .ssd-form .contact .row textarea { margin-bottom: 0; font-size: 16px; }
	/* The fixed 44px height above would cut off the label once the phone button padding
	 * (custom.css) applies: let the padding size the button instead */
	.sbp-modal .contact .row input[type="submit"] { width: 100%; height: auto; min-height: 44px; line-height: 1.3; }
}
@media (max-width: 600px) {
	.sbp-modal { padding: 12px; }
	.sbp-modal-dialog { padding: 22px 18px 20px; }
	.sbp-modal-dialog h3 { padding-right: 36px; font-size: 1.2rem; }
	.sbp-modal-close { top: 2px; right: 4px; }
}
