/* The big sell form, restyled (form-sellwatch.bs4.cfm, GH #488).
   Loaded ON TOP OF we-buy-your-watch.css (.wbyw), so it shares that page's look: cream panel
   #fbf9f3 / #e2dccb, ink #1d1d1d step circles, #0056b3 links, btn-orange. Namespaced under .swf. */

/* bernardwatch-bs4.css gives a .row that is a first child margin-bottom: 2rem */
.swf > .row { margin-bottom: 0; }
.swf .swf-hero { margin-bottom: 1.5rem; }

/* the three form cards */
.swf .swf-card {
	min-width: 0; margin: 0 0 1.25rem; padding: 1.25rem 1.25rem 0.5rem;
	background-color: #fff; border: 1px solid #e2dccb; border-radius: 4px;
}
/* float + full width pulls the legend inside the card instead of onto its top border */
.swf .swf-legend {
	display: flex; align-items: center; float: left; width: 100%;
	margin-bottom: 1rem; padding: 0; font-size: 1.25rem; font-weight: 600;
}
.swf .swf-legend + * { clear: both; }
.swf .swf-legend .wbyw-step-n {
	width: 1.75rem; height: 1.75rem; line-height: 1.75rem; margin-right: 0.6rem; font-size: 0.95rem;
}

/* fields */
.swf label,
.swf .swf-label { margin-bottom: 0.3rem; font-size: 0.95rem; font-weight: 600; }
.swf .swf-label { display: block; }
.swf .swf-hint,
.swf .swf-opt { font-size: 0.85rem; font-weight: 400; color: #6c757d; }
/* 16px inputs: iOS Safari zooms the page on focus below that */
.swf .form-control { font-size: 1rem; }
.swf .form-control:focus { border-color: #c9bd99; box-shadow: 0 0 0 0.2rem rgba(201, 189, 153, 0.35); }
.swf .custom-control { margin-bottom: 0.35rem; }
.swf .custom-control-label { font-weight: 400; }
.swf .custom-control-input:checked ~ .custom-control-label::before { background-color: #1d1d1d; border-color: #1d1d1d; }
.swf .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(201, 189, 153, 0.5); }
.swf .swf-us { padding: 0.75rem 1rem; background-color: #fbf9f3; border-radius: 4px; }
.swf .swf-us .custom-control { margin-bottom: 0; }

/* jQuery Validate error labels (inserted right after the field) */
.swf label.error { display: block; margin-top: 0.25rem; font-size: 0.875rem; font-weight: 400; color: #b02a37; }
.swf .form-control.error { border-color: #b02a37; }

/* submit */
.swf .swf-submit { padding: 0.75rem 0 1rem; }
.swf .swf-submit .btn { width: 100%; white-space: normal; }
@media (min-width: 576px) { .swf .swf-submit .btn { width: auto; } }
.swf .swf-note,
.swf .swf-privacy { font-size: 0.9rem; color: #555; }
.swf .swf-privacy { margin: 0.75rem 0 0; }

/* sidebar: the rules, then the policy titles */
.swf .swf-rules { padding: 1.25rem; background-color: #fbf9f3; }
.swf .swf-rules-list { margin-bottom: 0.75rem; padding-left: 1.1rem; line-height: 1.45; }
.swf .swf-rules-list li + li { margin-top: 0.5rem; }
/* Bootstrap's d-sm-block would turn these into plain blocks and drop their bullets */
@media (min-width: 576px) { .swf .swf-rules-list li.d-sm-block { display: list-item !important; } }
.swf .swf-policies ul { margin: 0 0 1.25rem; padding-left: 1.1rem; line-height: 1.45; }
.swf .swf-policies li + li { margin-top: 0.35rem; }

/* thank-you: the shared insert's output (form-sellwatch-data-insert.cfm), tidied, not rewritten */
.swf .swf-thanks { font-size: 1.05rem; line-height: 1.5; }
.swf .swf-thanks .spacer { display: none; }
.swf .swf-thanks .fontbig,
.swf .swf-thanks .fontup { font-size: inherit; }
.swf .swf-thanks blockquote { margin: 1.25rem 0; padding: 0; }
.swf .swf-thanks blockquote .fontup { margin: 0 !important; }
.swf .swf-thanks li { list-style: none; margin: 0.75rem 0; }
.swf .swf-thanks hr { margin: 1.5rem 0; }

/* brand page (we-buy.prod.cfm): <main class="container wbyw swf-page"> wraps the form's own .wbyw.swf */
.swf-page .wbyw.swf { padding: 0; }
.swf .sw-trust-row,
.swf-page .sw-trust-row { margin-top: 0; margin-bottom: 2.5rem; }
.swf-page .swf-model-name { display: block; margin-top: 0.6rem; font-weight: 600; line-height: 1.3; }
.swf-page .swf-models .wbyw-card { margin-bottom: 1.75rem; }
.swf-page .swf-models .wbyw-card-frame img[src*="b.JPG"] { width: auto; height: auto; max-width: 70%; }
.swf-page .swf-model-list { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.swf-page .swf-model-list:empty { display: none; }

/* phone-only "How it works" jump in the hero, and the end-of-page button back up to the form */
.swf-jump { margin: 0.6rem 0 0; font-size: 1rem; }
.swf-jump a { font-weight: 600; }
.swf-jump .fas { margin-left: 0.25rem; font-size: 0.85em; }
.swf-back { margin: 0.5rem 0 1rem; }
/* #SellWatch-Form (the anchor every "back to the form" button jumps to): the fixed #menu-1 slides
   back in on the way up and covered the "1 About you" heading, so the jump landed on First name.
   Offset = the menu height (body padding-top in bernardwatch-bs4.css: 60px phones, 80px up) + a gap. */
.swf #SellWatch-Form { display: block; scroll-margin-top: 72px; }
@media (min-width: 768px) { .swf #SellWatch-Form { scroll-margin-top: 92px; } }

/* brand page model grid on phones: first cards only until "Show all" (js/we-buy-models.js) */
@media (max-width: 767.98px) {
	.swf-page .swf-collapsed .swf-more,
	.swf-page .swf-collapsed .swf-model-list { display: none; }
}
.swf-page .swf-more-wrap { margin: 0 0 1.5rem; }

/* phones: ~70% of brand-page leads; get the form up the screen */
@media (max-width: 575px) {
	.swf .swf-hero, .swf-page .swf-hero { padding: 1rem 1rem 0.75rem; margin-bottom: 1rem; }
	.swf .swf-hero .wbyw-h1, .swf-page .swf-hero .wbyw-h1 { font-size: 1.6rem; margin-bottom: 0.6rem; }
	.swf .swf-hero .wbyw-lead, .swf-page .swf-hero .wbyw-lead { font-size: 1rem; margin-bottom: 0.6rem; }
	.swf .swf-card { padding: 1rem 0.85rem 0.25rem; }
}
