/* Warble enquiry 1.15: the form, the Enquiry Sent block and the bottom bar.
   Everything is under a wenq- class, so nothing else on the site changes.
   Buttons and fields use the site's own classes (btn, form-control, form-select). */

.wenq-box, .wenq-box *, .wenq-bar, .wenq-bar *, .wenq-sent, .wenq-sent *, .wenq-like, .wenq-like * { box-sizing: border-box; }

/* ---- the form ---- */
.wenq-box { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); text-align: left; }
.wenq-title { margin: 0 0 2px; }
.wenq-muted { color: #6c757d; font-size: 15px; }
.wenq-from { margin-bottom: 4px; }
.wenq-steps { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-size: 13px; color: #6c757d; text-transform: uppercase; letter-spacing: .08em; }
.wenq-steps b { color: #2a2a2a; font-weight: 600; }
.wenq-f { margin-bottom: 14px; }
.wenq-f .form-label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.wenq-f .form-control, .wenq-f .form-select { width: 100%; min-height: 46px; font-size: 16px; }
.wenq-f textarea.form-control { min-height: 84px; }
.wenq-hint { font-size: 13px; color: #6c757d; margin-top: 4px; }
.wenq-err { font-size: 13px; color: #dc3545; margin-top: 4px; }
.wenq-bad .form-control, .wenq-bad .form-select { border-color: #dc3545; }
.wenq-sub { font-size: 14px; margin: 8px 0 3px; }
.wenq-set { font-size: 15px; }
.wenq-sum { background: #f5f5f5; border-radius: 6px; padding: 10px 12px; font-size: 15px; margin-bottom: 14px; display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.wenq-fold { border-top: 1px solid #e2e2e2; margin: 4px 0 14px; padding-top: 12px; }
.wenq-more { margin: 0 0 14px; }
.wenq-link { background: none; border: 0; padding: 0; color: #9f4d9c; text-decoration: underline; cursor: pointer; font: inherit; }
.wenq-block { display: block; width: 100%; }
.wenq-big { padding-top: 12px; padding-bottom: 12px; font-size: 17px; }
.wenq-fail { background: #fdecee; color: #842029; border-radius: 6px; padding: 10px 12px; margin: 10px 0 14px; font-size: 15px; }

/* ---- an act already enquired about: a tick where its heart was ---- */
.add-to-wishlist.wenq-in-enquiry { cursor: default; text-decoration: none; }
.add-to-wishlist.wenq-in-enquiry svg { display: none; }
.add-to-wishlist.wenq-in-enquiry::before { content: "\2713"; color: #198754; font-weight: 700; font-size: 20px; line-height: 1; }
.add-to-wishlist.wenq-in-enquiry .the-text { margin-left: 6px; }
.wenq-editing { margin: 0 0 4px; }

/* ---- the quote box stays in view on the enquiry page (two columns only; see stickForm() in the script) ---- */
@media (min-width: 768px) { .wenq-sticky { position: -webkit-sticky; position: sticky; top: 16px; } }

/* ---- reassurance under the form ----
   Everything is centred: the review widget centres itself and cannot be told otherwise,
   so the lines round it follow suit. */
.wenq-next { margin-top: 18px; text-align: center; font-size: 15px; }
.wenq-reassure { font-weight: 500; margin: 0 0 16px; }
.wenq-next-title { font-weight: 600; margin-bottom: 4px; }
.wenq-next-list { list-style-position: inside; margin: 0 0 14px; padding: 0; color: #4f545c; }
.wenq-next-list li { margin: 0 0 2px; padding: 0; }
.wenq-next-trust { margin-bottom: 12px; min-height: 20px; }
.wenq-next-call { color: #4f545c; }
.wenq-next-call a { color: #9f4d9c; font-weight: 500; }

/* ---- Enquiry Sent, on /thanks ---- */
.wenq-sent { text-align: left; margin-bottom: 32px; }
.wenq-list { list-style: none; padding: 0; margin: 10px 0 20px; }
.wenq-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e2e2e2; }
.wenq-list li span:last-child { color: #6c757d; font-size: 15px; white-space: nowrap; }
/* a green tick by each act that has been sent */
.wenq-sent-list li::before { content: "\2713"; color: #198754; font-weight: 700; flex: none; }
.wenq-sent-list li span:first-of-type { flex: 1; }
.wenq-req { font-weight: 600; }
/* amber while it waits for an answer: useful, not required (EN's 1.11 shade; to be judged on Warble's page) */
.wenq-card { border: 2px solid #e8a300; border-radius: 8px; padding: 16px; margin-bottom: 24px; background: #fff9eb; }
.wenq-card h3 { margin: 0 0 2px; }
.wenq-card p { margin: 0 0 12px; color: #6c757d; font-size: 15px; }
.wenq-done { background: #e8f4ee; color: #0f5132; border-radius: 6px; padding: 12px 14px; margin-bottom: 24px; }
.wenq-still { border: 1px solid #e2e2e2; border-radius: 8px; padding: 16px; margin-bottom: 24px; }
.wenq-still h3 { margin: 0; }
.wenq-still .wenq-list { margin: 6px 0 14px; }
.wenq-compare h3 { margin: 0 0 2px; }
.wenq-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.wenq-tile { border: 1px solid #e2e2e2; border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.wenq-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.wenq-tile-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wenq-tile-b .btn { margin-top: auto; }
.wenq-addmore { margin-top: 20px; }
@media (max-width: 575px) { .wenq-tiles { grid-template-columns: 1fr; } }

/* ---- "You may also like" on the enquiry page ---- */
.wenq-like { margin-top: 24px; }
.wenq-row { display: flex; gap: 12px; align-items: center; border: 1px solid #e2e2e2; border-radius: 6px; padding: 8px; margin-bottom: 8px; background: #fff; }
.wenq-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.wenq-row-t { flex: 1; min-width: 0; }
.wenq-row-t b, .wenq-row-t span { display: block; }

/* ---- the one bar ---- */
.wenq-bar {
    /* under the site's phone menu and filter panel (z-index 20), over the page */
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 19;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
    padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid #ddd; box-shadow: 0 -2px 10px rgba(0, 0, 0, .12);
    transform: translateY(110%); transition: transform .2s ease-in-out; visibility: hidden;
}
.wenq-bar.wenq-bar-on { transform: translateY(0); visibility: visible; }
.wenq-bar-l { flex: 1 1 0; min-width: 0; line-height: 1.25; }
/* a failed one-tap add: a line of its own across the top of the bar */
.wenq-bar-fail { flex: 0 0 100%; background: #fdecee; color: #842029; border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.wenq-bar-1 { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wenq-bar-2 { font-size: 14px; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wenq-bar .btn { flex: 0 0 auto; white-space: nowrap; }
html.wenq-has-bar body { padding-bottom: 72px; }
/* the site adds .noscroll to <body> while its phone menu or filter panel is open: the bar gets out of the way */
body.noscroll .wenq-bar { display: none; }
/* on a phone the first line may run to two lines, so "2 acts on your shortlist" is never cut short */
@media (max-width: 480px) {
    .wenq-bar { padding-left: 12px; padding-right: 12px; }
    .wenq-bar-1 { white-space: normal; }
    .wenq-bar .btn { padding-left: 10px; padding-right: 10px; font-size: 14px; }
    html.wenq-has-bar body { padding-bottom: 92px; }
}
@media (min-width: 992px) { .wenq-bar { padding-left: max(16px, calc((100% - 1140px) / 2)); padding-right: max(16px, calc((100% - 1140px) / 2)); } }
