/* =====================================================================
 * Popolo site styling for the quote form (added Sept 2026, Access Publishing)
 * Matches the new site's fonts (Jost body, Cormorant Garamond headings),
 * text colors and sizes. Scoped to the form wrapper so nothing else on
 * the page is affected. Loaded after the form's original stylesheets.
 * ===================================================================== */

.popolo-new-form-wrapper {
    --pf-ink: #2b2622;
    --pf-stone: #6f655b;
    --pf-rule: #dcd3c4;
    --pf-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    --pf-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-family: var(--pf-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--pf-ink);
}

/* Body font everywhere in the form (icons keep their icon font) */
.popolo-new-form-wrapper p,
.popolo-new-form-wrapper li,
.popolo-new-form-wrapper label,
.popolo-new-form-wrapper span:not(.fa):not([class*="fa-"]),
.popolo-new-form-wrapper div,
.popolo-new-form-wrapper a,
.popolo-new-form-wrapper b,
.popolo-new-form-wrapper strong,
.popolo-new-form-wrapper small,
.popolo-new-form-wrapper td,
.popolo-new-form-wrapper th,
.popolo-new-form-wrapper input,
.popolo-new-form-wrapper select,
.popolo-new-form-wrapper textarea,
.popolo-new-form-wrapper button,
.popolo-new-form-wrapper h5,
.popolo-new-form-wrapper h6 {
    font-family: var(--pf-body) !important;
}
.popolo-new-form-wrapper p {
    font-size: 16px;
    color: var(--pf-ink);
}

/* Headings in the form use the site's serif */
.popolo-new-form-wrapper h2,
.popolo-new-form-wrapper h3,
.popolo-new-form-wrapper h4 {
    font-family: var(--pf-heading) !important;
    font-weight: 500;
    color: var(--pf-ink);
    letter-spacing: 0;
}

/* Maroon section bars ("MEAL SERVICE", "RENTALS", ...) - bold uppercase
   sans-serif to match the live site */
.popolo-new-form-wrapper .section-header-title.ct-header .page_title {
    font-family: var(--pf-body) !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff !important;
    text-align: center;
    padding: 12px 16px;
    margin: 0;
}

/* Sub-headings inside steps ("Appetizers", accordion titles) */
.popolo-new-form-wrapper .accordion-toggle,
.popolo-new-form-wrapper .toggle-panel .panel-title,
.popolo-new-form-wrapper .toggle-panel .panel-title label {
    font-family: var(--pf-body) !important;
    font-size: 18px !important;
    font-weight: 500;
}

/* Left step list (1. Meal Services ... 7. Confirm) */
.popolo-new-form-wrapper .wizard > .steps a,
.popolo-new-form-wrapper .wizard > .steps a:hover,
.popolo-new-form-wrapper .wizard > .steps a:active {
    font-family: var(--pf-body) !important;
    font-size: 17px !important;
    font-weight: 500;
    text-shadow: none !important;
}

/* Meal service tiles (Buffet, Plated, ...) */
.popolo-new-form-wrapper #meal_service_step label,
.popolo-new-form-wrapper #meal_service_step h4,
.popolo-new-form-wrapper #meal_service_step h5 {
    font-family: var(--pf-body) !important;
    font-size: 15px !important;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.popolo-new-form-wrapper .meal_service_description,
.popolo-new-form-wrapper .meal_service_description p {
    font-size: 15px;
    color: var(--pf-stone);
}

/* Item rows: names, prices, quantity boxes */
.popolo-new-form-wrapper .meal_items_box label,
.popolo-new-form-wrapper .rentals_box label,
.popolo-new-form-wrapper .services_bx label,
.popolo-new-form-wrapper .form-box li label,
.popolo-new-form-wrapper .frm-chk label,
.popolo-new-form-wrapper .frm-chk span {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--pf-ink);
    line-height: 1.4;
}
.popolo-new-form-wrapper .meal_items_box .row,
.popolo-new-form-wrapper .rentals_box .row,
.popolo-new-form-wrapper .services_bx .row {
    font-size: 16px;
    color: var(--pf-stone);
}
.popolo-new-form-wrapper .form-control {
    font-size: 16px !important; /* 16px+ stops iPhones zooming in on tap */
    color: var(--pf-ink);
}
.popolo-new-form-wrapper label.error,
.popolo-new-form-wrapper .error-msg {
    font-size: 14px !important;
}

/* Grey disclaimer bar under each step - white text, like the live site */
.popolo-new-form-wrapper .ct-footer,
.popolo-new-form-wrapper .ct-footer p {
    color: #fff !important;
}
.popolo-new-form-wrapper .ct-footer p {
    font-size: 15px !important;
    line-height: 1.5;
}

/* Previous / Next buttons */
.popolo-new-form-wrapper .wizard > .actions a,
.popolo-new-form-wrapper .wizard > .actions a:hover,
.popolo-new-form-wrapper .wizard > .actions a:active {
    font-family: var(--pf-body) !important;
    font-size: 14px !important;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* View Proposal box */
.popolo-new-form-wrapper .proposalbox,
.popolo-new-form-wrapper .proposalbox li,
.popolo-new-form-wrapper .proposalbox span {
    font-size: 15px;
}
.popolo-new-form-wrapper .proposalbox h2,
.popolo-new-form-wrapper .proposalbox h3,
.popolo-new-form-wrapper .proposalbox h4 {
    font-size: 24px !important;
}
.popolo-new-form-wrapper .total_info li,
.popolo-new-form-wrapper .total_info li span {
    font-size: 22px !important;
    font-weight: 600;
}

/* Centered blocks (e.g. "Number of Guests"). The old theme supplied this
   class; the new site needs it defined here. */
.popolo-new-form-wrapper .text-centerNew {
    text-align: center;
}
.popolo-new-form-wrapper #guest_count_sec label.req {
    font-size: 22px !important;
    font-weight: 600 !important;
}

/* Required-field states, matching the live site:
   empty/invalid = red label + red border + red message,
   filled/valid  = green label + green border */
.popolo-new-form-wrapper .form-group.has-error label,
.popolo-new-form-wrapper .form-group.has-error label.req {
    color: #e0605e !important;
}
.popolo-new-form-wrapper .form-group.has-error .form-control,
.popolo-new-form-wrapper .form-group.has-error input.error {
    border: 1px solid #e0605e !important;
    background: #fff !important;
    color: var(--pf-ink) !important;
    box-shadow: none !important;
}
.popolo-new-form-wrapper .form-group.has-error div.error,
.popolo-new-form-wrapper .form-group div.error {
    display: block;
    color: #e0605e !important;
    text-align: center;
    font-size: 16px !important;
    margin: 16px 0 8px;
}
.popolo-new-form-wrapper .form-group.has-success label,
.popolo-new-form-wrapper .form-group.has-success label.req {
    color: #3c763d !important;
}
.popolo-new-form-wrapper .form-group.has-success .form-control {
    border: 1px solid #3c763d !important;
    box-shadow: none !important;
}
.popolo-new-form-wrapper .form-control {
    border-radius: 4px;
}

/* Guest count message (one message, driven by popoloCheckGuests) */
.popolo-new-form-wrapper #guest_count-error {
    display: none !important; /* avoid a second, duplicate message */
}
.popolo-new-form-wrapper #guest_count_sec .error_items {
    color: #e0605e !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: center;
    margin: 16px 0 8px;
}
.popolo-new-form-wrapper .form-group.has-error .form-control:focus,
.popolo-new-form-wrapper .form-group.has-success .form-control:focus {
    outline: none !important;
}

/* Step list: a step with a problem stays Popolo maroon (not bright red) */
.popolo-new-form-wrapper .wizard > .steps .current.error a,
.popolo-new-form-wrapper .wizard > .steps .current.error a:hover,
.popolo-new-form-wrapper .wizard > .steps .current.error a:active {
    color: #74312A !important;
}
.popolo-new-form-wrapper .wizard > .steps .error a .number,
.popolo-new-form-wrapper .wizard > .steps .error a:hover .number,
.popolo-new-form-wrapper .wizard > .steps .error a:active .number {
    background: #74312A !important;
    color: #fff !important;
}

/* Item rows on every step (appetizers, entrees, sides, platters, desserts,
   breakfast, rentals, services): give the item name all the spare width so
   names stay on one line, with price and quantity in fixed columns on the
   right. Desktop/tablet only; phones keep the stacked layout. */
@media only screen and (min-width: 768px) {
    .popolo-new-form-wrapper .row:has(> .frm-chk) {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .popolo-new-form-wrapper .row:has(> .frm-chk)::before,
    .popolo-new-form-wrapper .row:has(> .frm-chk)::after {
        display: none;
    }
    .popolo-new-form-wrapper .row:has(> .frm-chk) > div {
        float: none;
        width: auto;
        max-width: none;
    }
    .popolo-new-form-wrapper .row:has(> .frm-chk) > .frm-chk {
        flex: 1 1 auto;
        min-width: 0;
    }
    .popolo-new-form-wrapper .row:has(> .frm-chk) > .frm-chk + div {
        flex: 0 0 85px;
        padding-left: 5px;
        padding-right: 5px;
    }
    .popolo-new-form-wrapper .row:has(> .frm-chk) > .frm-chk + div + div {
        flex: 0 0 105px;
        padding-left: 5px;
    }
}

/* If a name is still too long for one line (mostly on narrow screens),
   wrap it neatly beside the checkbox instead of under it. */
.popolo-new-form-wrapper .frm-chk > label {
    display: flex;
    align-items: baseline;
    margin-bottom: 0;
}
.popolo-new-form-wrapper .frm-chk > label > input[type="checkbox"] {
    flex: 0 0 auto;
}

/* Phones */
@media only screen and (max-width: 767px) {
    .popolo-new-form-wrapper .section-header-title.ct-header .page_title {
        font-size: 22px !important;
    }
    .popolo-new-form-wrapper .wizard > .steps a {
        font-size: 15px !important;
    }
}


/* Thank-you message shown after a quote is submitted */
.popolo-quote-thanks {
    max-width: 760px;
    margin: 20px auto 40px;
    padding: 56px 48px;
    background: #ffffff;
    border: 1px solid #dcd3c4;
    border-top: 4px solid #74312A;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(43, 38, 34, 0.08);
    text-align: center;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    color: #2b2622;
    outline: none;
}
.popolo-quote-thanks .popolo-quote-thanks__eyebrow {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #b08a3c !important;
    margin: 0 0 14px;
}
.popolo-quote-thanks .popolo-quote-thanks__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 52px !important;
    font-weight: 500 !important;
    line-height: 1.1;
    color: #2b2622 !important;
    margin: 0;
}
.popolo-quote-thanks .popolo-quote-thanks__rule {
    width: 56px;
    height: 1px;
    background: #b08a3c;
    margin: 22px auto 26px;
}
.popolo-quote-thanks .popolo-quote-thanks__text {
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.7;
    color: #2b2622 !important;
    margin: 0 auto 14px;
    max-width: 580px;
}
.popolo-quote-thanks .popolo-quote-thanks__text a {
    color: #74312A !important;
    font-weight: 500;
    text-decoration: underline;
}
@media only screen and (max-width: 767px) {
    .popolo-quote-thanks {
        padding: 40px 22px;
        margin: 10px 0 30px;
    }
    .popolo-quote-thanks .popolo-quote-thanks__title {
        font-size: 40px !important;
    }
    .popolo-quote-thanks .popolo-quote-thanks__text {
        font-size: 17px !important;
    }
}

/* Previous / Next buttons: keep them close to the step box (v1.1.12).
   The original stylesheet gave the step box a 35em minimum height, which
   left a large empty gap on short steps like Meal Service. The box now
   sizes to its content. On desktop the button row is narrowed to the box
   column (beside the step list) so it sits right under the box instead of
   dropping below the step list. */
.popolo-new-form-wrapper .wizard > .content {
    min-height: 0;
}
@media only screen and (min-width: 769px) {
    .popolo-new-form-wrapper .wizard.vertical > .actions {
        width: 75%;
        margin: 24px 5% 0 0;
    }
}
@media only screen and (max-width: 768px) {
    .popolo-new-form-wrapper .wizard.vertical > .actions {
        margin-top: 24px;
    }
}

/* "Jump to" bar on the Meal Items step (v1.1.15). Built by
   js/popolo-meal-jump.js from the step's section titles (Appetizers,
   Platters, Entrees, Sides, Desserts, Breakfast). It sticks to the top of
   the screen while scrolling through Meal Items only. */
@supports (overflow: clip) {
    /* Let the bar stick to the screen: "clip" still hides the slide
       animation's overflow but, unlike "hidden", doesn't block sticky. */
    .popolo-new-form-wrapper .wizard > .content {
        overflow: clip;
        display: flow-root;
    }
}
.popolo-new-form-wrapper .popolo-jump {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #dcd3c4;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: box-shadow 0.2s ease;
}
.popolo-new-form-wrapper .popolo-jump::-webkit-scrollbar {
    display: none;
}
.popolo-new-form-wrapper .popolo-jump.is-stuck {
    box-shadow: 0 8px 16px -10px rgba(43, 38, 34, 0.35);
}
.popolo-new-form-wrapper .popolo-jump__label {
    flex: 0 0 auto;
    margin-right: 4px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6f655b;
}
.popolo-new-form-wrapper .popolo-jump__tab {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #dcd3c4;
    border-radius: 999px;
    background: #faf7f1;
    color: #2b2622;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.popolo-new-form-wrapper .popolo-jump__tab:hover {
    border-color: #74312A;
    color: #74312A;
}
.popolo-new-form-wrapper .popolo-jump__tab.is-active {
    background: #74312A;
    border-color: #74312A;
    color: #ffffff;
}
.popolo-new-form-wrapper .popolo-jump__tab:focus-visible {
    outline: 2px solid #b08a3c;
    outline-offset: 2px;
}
.popolo-new-form-wrapper .popolo-jump__tab--next {
    margin-left: auto;
    background: transparent;
    border-color: #74312A;
    color: #74312A;
    font-weight: 500;
}
.popolo-new-form-wrapper .popolo-jump__tab--next:hover {
    background: #74312A;
    color: #ffffff;
}
@media only screen and (max-width: 768px) {
    .popolo-new-form-wrapper .popolo-jump {
        padding: 10px 12px;
        gap: 6px;
    }
    .popolo-new-form-wrapper .popolo-jump__label {
        display: none;
    }
    .popolo-new-form-wrapper .popolo-jump__tab {
        font-size: 13px;
        padding: 6px 12px;
    }
    .popolo-new-form-wrapper .popolo-jump__tab--next {
        margin-left: 0;
    }
}

/* Meal Items: hide the top title of single-list sections (Appetizers,
   Platters, Desserts, Breakfast), since the list header below repeats it
   (v1.1.16). The script adds these classes, so without it nothing hides. */
.popolo-new-form-wrapper #meal_items_step h5.popolo-jump-hidden-title {
    display: none;
}
.popolo-new-form-wrapper #meal_items_step .popolo-jump-section {
    margin-top: 24px;
}

/* Meal Items: "N selected" count beside each section heading (v1.1.18).
   Sits over the heading bar, left of the +/- sign, and lets clicks pass
   through to the heading. */
.popolo-new-form-wrapper #meal_items_step .accordion-heading {
    position: relative;
}
.popolo-new-form-wrapper .popolo-sel-count {
    position: absolute;
    top: 50%;
    right: calc(5% + 32px);
    transform: translateY(-50%);
    pointer-events: none;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
    background: #74312A;
    border-radius: 999px;
    padding: 5px 11px;
    display: none;
}
.popolo-new-form-wrapper .popolo-sel-count.is-on {
    display: inline-block;
}
@media only screen and (max-width: 767px) {
    .popolo-new-form-wrapper .popolo-sel-count {
        font-size: 12px;
        padding: 4px 9px;
        right: calc(5% + 26px);
    }
}

/* "View Proposal" bar: sage green with white text (v1.1.19, brighter green v1.1.21). The theme's
   default link color was turning it pink, which read like a warning. */
.popolo-new-form-wrapper .proposalbox .proposalbox-top {
    background: #478237;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.popolo-new-form-wrapper .proposalbox .proposalbox-top:hover {
    background: #3f7534;
}
.popolo-new-form-wrapper .proposalbox .chat-partner-name,
.popolo-new-form-wrapper .proposalbox .chat-partner-name a,
.popolo-new-form-wrapper .proposalbox .chat-partner-name a:link,
.popolo-new-form-wrapper .proposalbox .chat-partner-name a:visited,
.popolo-new-form-wrapper .proposalbox .chat-partner-name a:hover,
.popolo-new-form-wrapper .proposalbox .chat-partner-name a:focus,
.popolo-new-form-wrapper .proposalbox .proposalbox-top span.total_price {
    color: #ffffff !important;
    text-shadow: none;
    text-decoration: none;
}
.popolo-new-form-wrapper .proposalbox .proposalbox-icons .fa {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* "Your Information" step: two-column grid (v1.1.24).
   Fields flow left-to-right, two per row. The Delivery City field is
   hidden unless Delivery was chosen, and the fields after it move up to
   fill the gap. One column on phones. */
.popolo-new-form-wrapper .popolo-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 4px;
    align-items: start;
}
.popolo-new-form-wrapper .popolo-info-grid .popolo-field {
    min-width: 0;
    margin-bottom: 14px;
}
.popolo-new-form-wrapper .popolo-info-grid label.req {
    display: block;
    margin-bottom: 6px;
}
.popolo-new-form-wrapper .popolo-info-grid .form-control {
    width: 100%;
    height: 44px;
    float: none;
}

/* Event / Meal / End time: three equal selects side by side */
.popolo-new-form-wrapper .popolo-times {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px;
}
.popolo-new-form-wrapper .popolo-times .form-group {
    margin-bottom: 0;
}

/* "Date not set yet (TBD)" checkbox under the date box */
.popolo-new-form-wrapper .popolo-tbd {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 8px 0 0;
    cursor: pointer;
    font-weight: 400 !important;
    color: var(--pf-stone) !important;
    font-size: 15px !important;
}
.popolo-new-form-wrapper .popolo-tbd input[type="checkbox"] {
    -webkit-appearance: checkbox;
    appearance: auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #74312a;
    cursor: pointer;
}
.popolo-new-form-wrapper .popolo-date-field.popolo-is-tbd #dateofevent {
    background: #f4f1ec !important;
    cursor: not-allowed;
}
/* the "required" message sits between the date box and the TBD line */
.popolo-new-form-wrapper .popolo-date-field div.error {
    margin: 8px 0 0 !important;
    text-align: left !important;
}

@media only screen and (max-width: 767px) {
    .popolo-new-form-wrapper .popolo-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .popolo-new-form-wrapper .popolo-times {
        column-gap: 10px;
    }
}

/* Error box when a quote can't be sent (v1.1.25). Same card as the
   thank-you message, with a maroon "Please try again" button. */
.popolo-quote-thanks.popolo-quote-thanks--error p.popolo-quote-thanks__eyebrow {
    color: #b3413b !important;
}
.popolo-quote-thanks.popolo-quote-thanks--error h2.popolo-quote-thanks__title {
    font-size: 44px !important;
}
.popolo-quote-thanks .popolo-quote-thanks__actions {
    margin: 26px 0 22px;
}
.popolo-quote-thanks a.popolo-quote-thanks__button,
.popolo-quote-thanks a.popolo-quote-thanks__button:visited {
    display: inline-block;
    padding: 15px 38px;
    background: #74312A;
    color: #ffffff !important;
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}
.popolo-quote-thanks a.popolo-quote-thanks__button:hover,
.popolo-quote-thanks a.popolo-quote-thanks__button:focus {
    background: #5c2620;
    color: #ffffff !important;
}
.popolo-quote-thanks .popolo-quote-thanks__small {
    font-size: 16px !important;
    color: #6f655b !important;
}
@media only screen and (max-width: 767px) {
    .popolo-quote-thanks.popolo-quote-thanks--error h2.popolo-quote-thanks__title {
        font-size: 34px !important;
    }
    .popolo-quote-thanks a.popolo-quote-thanks__button {
        display: block;
        padding: 15px 20px;
    }
}

/* Message under the captcha when it isn't ticked or has expired (v1.1.25) */
.popolo-new-form-wrapper .popolo-captcha-msg {
    display: none;
    margin-top: 10px;
    color: #b3413b;
    font-size: 16px;
    font-weight: 500;
}
.popolo-new-form-wrapper .captcha-box.popolo-captcha-needed iframe {
    outline: 2px solid #b3413b;
    outline-offset: 2px;
    border-radius: 3px;
}
