/* Bookmark Bookkeeping contact and campaign landing page styles */

:root {
    --bb-section-hero-dark:             var(--bb-space-indigo);
    --bb-section-hero-dark-gradient:    var(--bb-ink-black);
    --bb-text-eyebrow:                  var(--bb-highlight-orange);
    --bb-text-hero-headline:            var(--bb-text-white);
    --bb-text-hero-subhead:             var(--bb-accent-blue);
    --bb-lp-2-1-col-picture-border:     var(--bb-periwinkle);
    --bb-section-page-wrap:             var(--bb-periwinkle);
    --bb-section-quote-form:            var(--bb-cream);
    --bb-section-quote-form-gradient:   var(--bb-ultra-cream);
    --bb-section-overlap-card:          var(--bb-ultra-cream);
    --bb-quote-step:                    var(--bb-text-black);
    --bb-quote-step-icon:               var(--bb-mid-grey);
    --bb-signoff-name:                  var(--bb-text-black);
    --bb-signoff-tagline:               var(--bb-text-black);
    --bb-section-form:                  var(--bb-ultra-cream);
    --bb-section-form-gradient:         var(--bb-text-white);
    --bb-form-fields:                   var(--bb-white);
    --bb-form-button:                   var(--bb-highlight-orange);
    --bb-form-button-hover:             var(--bb-periwinkle);
    --bb-direct-contact:                var(--bb-space-indigo);
    --bb-direct-contact-hover:          var(--bb-accent-blue);
    --bb-border-color:                  rgba(0, 0, 0, 0.14);
    
    --bb-shell-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Keep the fixed W3 menu above the campaign logo/header */
.w3-top {
    z-index: 1000;
}

#myNavbar {
    position: relative;
    z-index: 1001;
}

#mySidebar {
    z-index: 1002 !important;
}

.campaign-logo-header {
    min-height: 177px;
    padding-top: 52px;
    background-color: var(--bb-section-light);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.campaign-logo-link {
    display: block;
    padding-bottom: 27px;
}

.campaign-logo-image {
    display: block;
    width: 292px;
    height: auto;
    max-width: 90vw;
}

body.bb-landing-page {
    margin: 0;
    color: var(--bb-text-black);
    background: var(--bb-black);
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

body.bb-landing-page,
body.bb-landing-page h1,
body.bb-landing-page h2,
body.bb-landing-page h3,
body.bb-landing-page h4,
body.bb-landing-page h5,
body.bb-landing-page h6,
body.bb-landing-page p,
body.bb-landing-page label,
body.bb-landing-page input,
body.bb-landing-page select,
body.bb-landing-page textarea,
body.bb-landing-page button {
    font-family: "Quicksand", sans-serif;
}

.bb-page-wrap {
    margin-left: 180px;
    margin-right: 180px;
    background: var(--bb-section-page-wrap);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.quote-copy h2,
.form-title,
.quote-step h3 {
    font-family: "Quicksand", sans-serif;
    font-weight: 400;
}

a {
    color: var(--bb-text-white);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--bb-section-light);
    color: var(--bb-text-black);
}

.skip-link:focus {
    left: 1rem;
}

.site-shell {
    width: min(100% - 2rem, var(--bb-shell-width));
    margin-left: auto;
    margin-right: auto;
}

.w3-bar .w3-button {
    padding: 16px 14px;
}

.quote-form-section {
    position: relative;
    z-index: 2;
    padding: 0 0 clamp(3.5rem, 7vw, 6rem);
    margin-top: -5rem;
    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent 5rem,
            var(--bb-section-quote-form) 5rem,
            var(--bb-section-quote-form) 75%,
            var(--bb-section-quote-form-gradient) 100%
        );
}

.overlap-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 22px;
    background: var(--bb-section-overlap-card);
    border: 1px solid var(--bb-border-color);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.quote-copy {
    padding: clamp(0.5rem, 2vw, 1.5rem);
}

.quote-copy h2,
.form-title {
    margin: 0;
    color: var(--bb-text-black);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.form-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h2.form-title {
    font-size: clamp(1.6rem, 2.65vw, 2.2rem)
}

.quote-steps-title {
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}

.quote-intro,
.form-intro,
.quote-step p,
.direct-contact {
    font-size: 16px;
    line-height: 1.5;
    color: var(--bb-text-black);
}


.quote-intro {
    margin: 1rem 0 2rem;
    font-size: 1.05rem;
}

.quote-step {
    display: grid;
    grid-template-columns: 3.4rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--bb-border-color);
}

.quote-step-icon {
    color: var(--bb-quote-step-icon);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.quote-step h3 {
    margin: 0 0 0.35rem;
    color: var(--bb-quote-step);
    font-size: 1.2rem;
}

.quote-step p {
    margin: 0;
}

.quote-signoff {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--bb-border-color);
    text-align: center;
}

.quote-signoff p {
    margin: 0;
}

.quote-signoff-name {
    color: var(--bb-signoff-name);
    font-size: 1.15rem;
    line-height: 1.3;
}

.quote-signoff-tagline {
    margin-top: 0.2rem;
    color: var(--bb-signoff-tagline);
    font-size: 1rem;
    line-height: 1.3;
}

.form-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 16px;
    background:
        linear-gradient(180deg, var(--bb-section-form) 0%, var(--bb-section-form) 80%, var(--bb-section-form-gradient) 100%);
    border: 1px solid var(--bb-border-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.form-intro {
    margin: 0.8rem 0 1.4rem;
}

.lead-form {
    display: grid;
    gap: 0.8rem;
}

.lead-form label {
    color: var(--bb-text-black);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 30px;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--bb-border-color);
    border-radius: 7px;
    background: var(--bb-form-fields);
    color: var(--bb-text-black);
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    line-height: 1.15;
}

.lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    border-color: var(--bb-text-black);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.85rem 1.2rem;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.button-primary {
    background: var(--bb-form-button);
    color: var(--bb-black);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--bb-form-button-hover);
    color: var(--bb-black);
}

.form-submit {
    width: 100%;
    margin-top: 0.4rem;
    font-size: 1.2rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid var(--bb-border-color);
}

.form-alert-success {
    background: var(--bb-section-page-wrap);
    color: var(--bb-text-black);
    font-size: 14px;
    text-align: center;
}

.form-alert-error {
    background: rgba(255, 255, 255, 0.45);
    color: var(--bb-error);
    font-size: 14px;
    text-align: center;
}

.direct-contact {
    margin: 1rem 0 0;
    font-size: 0.95rem;
}

.direct-contact a {
    color: var(--bb-direct-contact);
    text-decoration: none;
    font-weight: 550;
}

.direct-contact a:hover,
.direct-contact a:focus-visible {
    color: var(--bb-direct-contact-hover);
}

.site-footer {
    padding: 2rem 0;
    color: var(--bb-text-black);
    background: var(--bb-section-page-wrap);
    text-align: center;
}

.footer-shell {
    display: grid;
    gap: 0.4rem;
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-shell p:first-child {
    font-size: 1.5rem;
}

.site-footer a {
    color: var(--bb-text-black);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--bb-text-white);
}

@media (max-width: 1400px) {
    .bb-page-wrap {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 950px) {
    .nav-shell,
    .primary-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quote-form-section {
        margin-top: -4rem;
        background:
            linear-gradient(to bottom, transparent 0, transparent 4rem, var(--bb-section-quote-form) 4rem, var(--bb-section-quote-form) 100%);
    }

    .overlap-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-shell {
        width: min(100% - 1.25rem, var(--bb-shell-width));
    }

    .primary-nav {
        gap: 0.75rem;
        font-size: 0.72rem;
    }

    .overlap-card,
    .form-panel {
        padding: 1.2rem;
    }

    .quote-step {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}