/* ==========================================================================
   Get a Free Estimate — premium lead-generation landing page redesign.
   Loaded only on get-a-free-estimate.php. Reuses the --cw-* tokens already
   defined site-wide in site-theme.css (colors, radius, shadow, ease) so
   this page stays in the same design language as the rest of the site,
   the same way services-redesign.css / tech-redesign.css / home-redesign-
   saas.css do for their own pages. All rules are scoped under .est-page
   so nothing here can leak onto other pages.
   ========================================================================== */

.est-page {
    color: var(--cw-text);
    background: var(--cw-bg);
    overflow-x: hidden;
    max-width: 100vw;
}

.est-page h1,
.est-page h2,
.est-page h3,
.est-page h4,
.est-page p {
    overflow-wrap: break-word;
}

.est-page section {
    padding: 5.5rem 0;
}

.est-page .container {
    max-width: 1220px;
}

.est-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    color: var(--cw-green-dark);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--cw-border);
    box-shadow: var(--cw-shadow-soft);
}

.est-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cw-green);
    box-shadow: 0 0 0 4px rgba(10, 188, 95, .18);
}

.est-head {
    max-width: 640px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.est-head h2 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 1rem 0 .7rem;
}

.est-head p {
    color: var(--cw-text-dim);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.est-hero {
    position: relative;
    padding: 3.5rem 0 5rem;
    background:
        radial-gradient(720px 420px at 88% -8%, rgba(86, 119, 255, .16), transparent 65%),
        radial-gradient(620px 460px at 100% 100%, rgba(10, 188, 95, .12), transparent 60%),
        linear-gradient(180deg, #fbfcff 0%, var(--cw-bg) 100%);
    overflow: hidden;
}

.est-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.2rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.est-hero-grid>* {
    /* Grid items default to min-width:auto, which refuses to shrink below
       the widest unwrapped descendant (the stats row below) — without
       this they can force the whole grid, and the page, wider than the
       viewport on narrow screens. */
    min-width: 0;
}

.est-hero-copy h1 {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.02em;
    margin: 1.1rem 0 1.1rem;
    color: var(--cw-navy);
}

.est-hero-copy h1 span {
    background: var(--cw-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.est-hero-copy>p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--cw-text-dim);
    max-width: 520px;
    margin-bottom: 1.9rem;
}

.est-service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.4rem;
    padding: 0;
    list-style: none;
}

.est-service-pills li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--cw-border);
    border-radius: 999px;
    padding: .5rem 1rem .5rem .7rem;
    font-size: .87rem;
    font-weight: 600;
    color: var(--cw-text);
    box-shadow: var(--cw-shadow-soft);
}

.est-service-pills i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cw-gradient-green);
    color: #fff;
    font-size: 13px;
    flex: none;
}

.est-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--cw-border);
}

.est-hero-stats div b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--cw-navy);
}

.est-hero-stats div span {
    font-size: .84rem;
    color: var(--cw-text-mute);
}

/* decorative abstract network graphic, brand-colored, light-theme safe */
.est-hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .55;
}

/* ---------------------------------------------------------------------- */
/* Form card                                                               */
/* ---------------------------------------------------------------------- */

.est-form-card {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--cw-radius-lg);
    box-shadow: var(--cw-shadow-card);
    border: 1px solid var(--cw-border-soft);
    padding: 2rem 2rem 1.7rem;
}

.est-form-card .est-form-head {
    margin-bottom: 1.4rem;
}

.est-form-card .est-form-head h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cw-navy);
    margin: 0 0 .35rem;
}

.est-form-card .est-form-head p {
    font-size: .9rem;
    color: var(--cw-text-mute);
    margin: 0;
}

.est-form-step {
    margin-bottom: 1.5rem;
}

.est-form-step>label.est-step-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--cw-text);
    margin-bottom: .7rem;
}

.est-form-step>label.est-step-label small {
    color: var(--cw-text-mute);
    font-weight: 500;
    text-transform: none;
}

/* pill-style checkbox groups, reused for project / project_type / technologies */
.est-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.est-pill-group input[type="checkbox"],
.est-pill-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.est-pill-group label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    border: 1.5px solid var(--cw-border);
    background: var(--cw-bg-soft);
    color: var(--cw-text-dim);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s var(--cw-ease);
    user-select: none;
}

.est-pill-group label:hover {
    border-color: var(--cw-blue-light);
    color: var(--cw-blue);
}

.est-pill-group input:checked+label {
    background: var(--cw-gradient-green);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(10, 188, 95, .45);
}

.est-pill-group.est-pill-compact label {
    padding: .4rem .8rem;
    font-size: .78rem;
}

.est-field {
    margin-bottom: 1rem;
}

.est-field label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--cw-text);
    margin-bottom: .4rem;
}

.est-field label .req {
    color: var(--cw-green-dark);
    margin-left: 2px;
}

.est-field input[type="text"],
.est-field input[type="email"],
.est-field input[type="tel"],
.est-field textarea {
    width: 100%;
    border: 1.5px solid var(--cw-border);
    background: var(--cw-bg-soft);
    border-radius: var(--cw-radius-sm);
    padding: .72rem .9rem;
    font-size: .92rem;
    font-family: inherit;
    color: var(--cw-text);
    transition: border-color .18s var(--cw-ease), background .18s var(--cw-ease);
}

.est-field textarea {
    resize: vertical;
    min-height: 90px;
}

.est-field input:focus,
.est-field textarea:focus {
    outline: none;
    border-color: var(--cw-blue-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(86, 119, 255, .12);
}

.est-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.est-agree {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .3rem 0 1.4rem;
}

.est-agree input {
    margin-top: .28rem;
    accent-color: var(--cw-green);
}

.est-agree label {
    font-size: .82rem;
    color: var(--cw-text-mute);
    line-height: 1.5;
}

.est-submit {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: .95rem 1.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--cw-gradient-green);
    box-shadow: var(--cw-glow-green);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .18s var(--cw-ease), box-shadow .18s var(--cw-ease);
}

.est-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px -16px rgba(10, 188, 95, .5);
}

.est-form-note {
    text-align: center;
    font-size: .78rem;
    color: var(--cw-text-mute);
    margin-top: .9rem;
}

.est-form-note i {
    color: var(--cw-green-dark);
    margin-right: .3rem;
}

/* ---------------------------------------------------------------------- */
/* Trust cards                                                             */
/* ---------------------------------------------------------------------- */

.est-trust {
    background: var(--cw-bg-soft);
}

.est-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.est-trust-grid>*,
.est-services-grid>*,
.est-process-grid>* {
    min-width: 0;
}

.est-trust-card {
    background: #fff;
    border-radius: var(--cw-radius-md);
    border: 1px solid var(--cw-border-soft);
    box-shadow: var(--cw-shadow-soft);
    padding: 1.8rem 1.6rem;
    transition: transform .22s var(--cw-ease), box-shadow .22s var(--cw-ease);
}

.est-trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cw-shadow-card);
}

.est-trust-card .est-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cw-gradient-blue);
    color: #fff;
    font-size: 22px;
    margin-bottom: 1rem;
}

.est-trust-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--cw-navy);
}

.est-trust-card p {
    font-size: .88rem;
    color: var(--cw-text-dim);
    margin: 0;
    line-height: 1.55;
}

/* ---------------------------------------------------------------------- */
/* Services cards                                                          */
/* ---------------------------------------------------------------------- */

.est-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.est-service-card {
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-md);
    padding: 1.8rem 1.6rem;
    transition: transform .22s var(--cw-ease), box-shadow .22s var(--cw-ease), border-color .22s var(--cw-ease);
}

.est-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cw-shadow-card);
    border-color: transparent;
}

.est-service-card .est-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cw-bg-soft);
    color: var(--cw-green-dark);
    font-size: 21px;
    margin-bottom: 1rem;
}

.est-service-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--cw-navy);
}

.est-service-card p {
    font-size: .88rem;
    color: var(--cw-text-dim);
    margin: 0;
    line-height: 1.55;
}

/* ---------------------------------------------------------------------- */
/* Process / How it works                                                  */
/* ---------------------------------------------------------------------- */

.est-process {
    background: var(--cw-bg-soft);
}

.est-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.est-process-step {
    position: relative;
    text-align: center;
    padding: 0 1.1rem;
}

.est-process-step .est-step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--cw-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--cw-blue);
    position: relative;
    z-index: 2;
}

.est-process-step:nth-child(odd) .est-step-num {
    background: var(--cw-gradient-green);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--cw-glow-green);
}

.est-process-step::before {
    content: '';
    position: absolute;
    top: 28px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--cw-border) 0 8px, transparent 8px 14px);
    z-index: 1;
}

.est-process-step:first-child::before {
    display: none;
}

.est-process-step h4 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cw-navy);
    margin-bottom: .4rem;
}

.est-process-step p {
    font-size: .86rem;
    color: var(--cw-text-dim);
    margin: 0;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Lead CTA band                                                            */
/* ---------------------------------------------------------------------- */

.est-cta-band {
    position: relative;
    border-radius: var(--cw-radius-lg);
    margin: 0 auto;
    max-width: 1220px;
    padding: 3.2rem 3rem;
    background: linear-gradient(120deg, var(--cw-navy) 0%, var(--cw-blue) 65%, #0a7d4a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    overflow: hidden;
}

.est-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 260px at 90% 20%, rgba(255, 255, 255, .12), transparent 70%);
}

.est-cta-band h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 .55rem;
    position: relative;
}

.est-cta-band p {
    font-size: 1rem;
    color: rgba(255, 255, 255, .85);
    margin: 0;
    max-width: 480px;
    position: relative;
}

.est-cta-band .est-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    color: var(--cw-navy);
    font-weight: 700;
    padding: .95rem 1.7rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform .18s var(--cw-ease), box-shadow .18s var(--cw-ease);
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .35);
}

.est-cta-band .est-cta-btn:hover {
    transform: translateY(-2px);
    color: var(--cw-navy);
}

/* ---------------------------------------------------------------------- */
/* FAQ — reuses the sitewide .servicefaq/.accordion pattern, just scoped   */
/* container width/spacing to match this page                             */
/* ---------------------------------------------------------------------- */

.est-faq .service_headings {
    max-width: 640px;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.est-faq .service_headings h2 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
    font-weight: 800;
    color: var(--cw-navy);
}

.est-faq .service_headings p {
    color: var(--cw-text-dim);
}

/* ---------------------------------------------------------------------- */
/* Animations                                                              */
/* ---------------------------------------------------------------------- */

.est-fade-up {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--cw-ease), transform .6s var(--cw-ease);
}

.est-fade-up.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .est-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 991px) {
    .est-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .est-trust-grid,
    .est-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .est-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.4rem 0;
    }

    .est-process-step::before {
        display: none;
    }

    .est-cta-band {
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }

    .est-cta-band p {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .est-page section {
        padding: 3.2rem 0;
    }

    .est-hero {
        padding: 2.2rem 0 3rem;
    }

    .est-form-card {
        padding: 1.5rem 1.3rem;
    }

    .est-field-row {
        grid-template-columns: 1fr;
    }

    .est-trust-grid,
    .est-services-grid,
    .est-process-grid {
        grid-template-columns: 1fr;
    }

    .est-hero-stats {
        gap: 1.4rem;
        flex-wrap: wrap;
    }

    .est-cta-band {
        padding: 2.4rem 1.6rem;
    }
}
