/* =====================================================
   Template Case Study
   /theme/firefly/assets/css/style-template-case-study.css
   ===================================================== */

/* -----------------------------------------------------
   GLOBAL — container and resets needed if not in global stylesheet
   ----------------------------------------------------- */
body {
    overflow-x: hidden;
}

.page-template-template-case-study .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* -----------------------------------------------------
   HERO
   ----------------------------------------------------- */
.hero-template-case-study {
    height: 887px;
    position: relative;
    display: flex;
    align-items: center;
}

a.logo-template-case-study {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
}

.hero-template-case-study img {
    width: auto;
}

/* Dark overlay so white text is readable over hero image */
.hero-template-case-study .hero-overlay {
    position: absolute;
    background: #000000B2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Constrain hero content width and lift above overlay */
.hero-template-case-study .hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 756px;
    text-align: center;
    margin: 0 auto;
}

.cs-hero-eyebrow {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-template-case-study .hero-content h1 {
    color: #FFFFFF;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.hero-template-case-study .hero-content .subtitle-head {
    color: #FFFFFF;
}

/* -----------------------------------------------------
   PROBLEM
   ----------------------------------------------------- */
.cs-problem {
    padding: 112px 0;
    text-align: center;
    background: #FFFFFF;
}

.cs-problem h2 {
    color: #181F25;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
}

.cs-problem .subtitle {
    color: #181F25;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    margin-top: 24px;
}

.cs-problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.cs-problem-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-left: 4px solid #F9DC2C;
    background: #F4F4F4;
}

.cs-problem-card h3 {
    color: #181F25;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 130%;
    letter-spacing: 0%;
    margin: 0;
}

.cs-problem-card p {
    color: #181F25;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
    margin: 0;
}

/* -----------------------------------------------------
   PULL QUOTE
   ----------------------------------------------------- */
.cs-quote-section {
    padding: 80px 0;
    background: #181F25;
}

.cs-blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: none;
    padding: 0;
}

.cs-blockquote p.quote {
    color: #FFFFFF;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 160%;
    letter-spacing: 0%;
    margin: 0 0 16px 0;
}

.cs-blockquote cite.author {
    color: #F9DC2C;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    font-style: normal;
}

/* -----------------------------------------------------
   AGENT STORY
   ----------------------------------------------------- */
.cs-story {
    padding: 112px 0;
    background: #FFFFFF;
}

.cs-story-grid {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.cs-story-image {
    width: 45%;
}

.cs-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-story-text {
    width: 55%;
}

.cs-story-text h2 {
    color: #181F25;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    margin-bottom: 24px;
}

.cs-story-text p {
    color: #181F25;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    margin-bottom: 32px;
}

/* -----------------------------------------------------
   STATS GRID
   ----------------------------------------------------- */
.cs-stats-section {
    padding: 80px 0;
    background: #181F25;
    text-align: center;
}

.cs-stats-section h2 {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cs-stat-card {
    background: #0D1520;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cs-stat-number {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 56px;
    line-height: 110%;
    letter-spacing: 0%;
}

.cs-stat-label {
    color: #FFFFFF;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
}

.cs-stat-sublabel {
    color: #8A9BAD;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 140%;
    letter-spacing: 0%;
    text-transform: uppercase;
    text-align: center;
}

/* -----------------------------------------------------
   FEATURE CARDS
   ----------------------------------------------------- */
.cs-feature-cards {
    padding: 0 0 80px 0;
    background: #181F25;
}

.cs-feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-feature-card {
    background: #0D1520;
    border: 1px solid #2A3A4A;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-feature-card h3 {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    margin: 0;
}

.cs-feature-card p {
    color: #FFFFFF;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0%;
    margin: 0;
}

/* -----------------------------------------------------
   CALLOUT BOX
   ----------------------------------------------------- */
.cs-callout-section {
    padding: 0 0 80px 0;
    background: #181F25;
}

.cs-callout-box {
    background: #0D1520;
    border: 1px solid #2A3A4A;
    padding: 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cs-callout-box h3 {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.cs-callout-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cs-callout-list li {
    color: #FFFFFF;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0%;
}

/* -----------------------------------------------------
   SHARED — btn-black, cta-blue, form-section, background-dark
   These mirror the SB template styles for shared components
   ----------------------------------------------------- */
.btn-black {
    background-color: #181F25;
    border: 1.5px solid #181F25;
    padding: 19px 24px;
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 1s ease;
    display: block;
    width: max-content;
}

.btn-black:hover {
    background-color: #181f2598;
}

.btn-yellow {
    background: #f9dc2c;
    border: none;
    padding: 19px 24px;
    font-weight: 600;
    cursor: pointer;
    color: #181F25;
    font-size: 20px;
    display: block;
    width: max-content;
    margin: auto;
    transition: all 1s ease;
    font-family: Arquitecta-Black, sans-serif;
}

.btn-yellow:hover {
    background-color: #f9de2c88;
}

.background-dark {
    background: #181F25;
}

.cta-blue {
    background: #0556D8;
    color: white;
    text-align: center;
    padding: 140px 0;
}

.cta-blue .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta-blue .container h2 {
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0px;
    max-width: 967px;
}

.cta-blue .container p {
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #fff;
    margin: 0;
    max-width: 967px;
}

.form-section {
    padding: 78px 0;
    text-align: center;
    background: #FFFFFF;
}

.form-section h2 {
    color: #181F25;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 58px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    max-width: 1116px;
    justify-self: center;
}

/* Testimonial section */
.testimonial-section {
    padding: 112px 0;
    background: #181F25;
    text-align: center;
}

.testimonial-section h2 {
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.testimonial-section .test-paragraph {
    color: #FFFFFF;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 48px;
}

.testimonial-slide p.quote {
    color: #FFFFFF;
    font-family: OpenSans-Regular, sans-serif;
    font-size: 22px;
    line-height: 160%;
    text-align: center;
    margin-bottom: 16px;
}

.testimonial-slide p.author {
    color: #F9DC2C;
    font-family: OpenSans-Bold, sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

/* -----------------------------------------------------
   FORM — scoped to case study template
   ----------------------------------------------------- */
.page-template-template-case-study .gf_progressbar.gf_progressbar_blue {
    height: 2px;
    background: #EEEEEE;
}

.page-template-template-case-study .gf_progressbar.gf_progressbar_blue span {
    display: none;
}

.page-template-template-case-study div.gf_progressbar_wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.page-template-template-case-study form {
    max-width: 942px !important;
}

.page-template-template-case-study .gf_step_page_name {
    display: none;
}

.page-template-template-case-study h2.gsection_title {
    font-family: OpenSans-Bold, sans-serif !important;
    font-weight: 700;
    font-size: 22px;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #181F25;
}

.page-template-template-case-study h3.gf_progressbar_title {
    color: #181F25 !important;
    font-family: OpenSans-Bold, sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 150% !important;
    letter-spacing: 0%;
    text-align: center;
    opacity: 1 !important;
}

.page-template-template-case-study label,
.page-template-template-case-study .gfield_description {
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 150% !important;
    letter-spacing: 0%;
    color: #181F25 !important;
    opacity: 1;
    margin: 0;
    padding: 0 !important;
    margin-bottom: 4px;
}

.page-template-template-case-study li.gfield {
    margin-top: 26px;
}

.page-template-template-case-study .ginput_container {
    margin: 0px;
}

.page-template-template-case-study .ginput_container input:not([type=checkbox]):not([type=radio]),
.page-template-template-case-study .ginput_container select {
    border: 0.5px solid #000000 !important;
    padding: 6px;
    color: #181F25;
    font-family: OpenSans-Regular, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    height: 70px;
    width: 100%;
    outline: unset;
}

.page-template-template-case-study .ginput_container input:not([type=checkbox]):not([type=radio]):focus,
.page-template-template-case-study .ginput_container select:focus {
    border: 1.5px solid #F9DC2C !important;
}

.page-template-template-case-study .gform-page-footer {
    border: 0px;
    margin-bottom: 0px;
    margin-top: 58px;
    padding: 0px;
    text-align-last: center;
}

.page-template-template-case-study .gform-page-footer input.gform_next_button,
.page-template-template-case-study .gform-page-footer input[type="submit"] {
    border: 1px solid #181F25;
    background: #181F25;
    color: #F9DC2C;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-transform: uppercase;
    padding: 19px 24px;
    margin: 0px !important;
    min-width: unset !important;
    cursor: pointer;
}

.page-template-template-case-study .gform-page-footer input.gform_next_button:hover {
    background: #181f2598;
}

.page-template-template-case-study .gform-page-footer input.gform_previous_button {
    border: 1px solid #181F25;
    background: #D9D9D9;
    color: #181F25;
    font-family: Arquitecta-Black, sans-serif;
    font-weight: 950;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0%;
    text-transform: uppercase;
    padding: 19px 24px;
    margin: 0px !important;
    cursor: pointer;
}

.page-template-template-case-study .gform-page-footer input.gform_previous_button:hover {
    background: #FFFFFF;
}

.page-template-template-case-study .gfield_radio {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
}

.page-template-template-case-study .gfield_radio input[type="radio"] {
    display: none !important;
}

.page-template-template-case-study .gfield_radio label {
    display: inline-block !important;
    padding: 16px 0px !important;
    background: #D9D9D9;
    border: 2.2px solid #F9DC2C;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
    transition: all 0.2s ease;
    color: #181F25;
    font-family: OpenSans-Bold, sans-serif !important;
    font-weight: 600 !important;
    font-size: 21.53px !important;
    line-height: 150%;
}

.page-template-template-case-study .gfield_radio label:hover {
    background: #FFFFFF;
}

.page-template-template-case-study .gfield_radio input[type="radio"]:checked + label {
    background: #f4c400;
    color: #000;
}

.page-template-template-case-study li.gfield:not(li.w-50) {
    width: 100%;
}

.page-template-template-case-study li.w-50 {
    width: 50%;
    padding: 0px;
}

.page-template-template-case-study .gf_progressbar.gf_progressbar_blue .gf_progressbar_percentage {
    height: 2px;
    background: #0556D8;
}

.gform-page-footer.gform_page_footer.top_label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* -----------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------- */
@media (max-width: 650px) {

    .hero-template-case-study {
        height: 660px;
    }

    .cs-problem {
        padding: 50px 0;
    }

    .cs-problem h2 {
        font-size: 32px;
    }

    .cs-problem .subtitle {
        font-size: 18px;
    }

    .cs-problem-grid {
        grid-template-columns: 1fr;
    }

    .cs-story {
        padding: 50px 0;
    }

    .cs-story-grid {
        flex-direction: column;
        gap: 40px;
    }

    .cs-story-image,
    .cs-story-text {
        width: 100%;
    }

    .cs-story-text h2 {
        font-size: 32px;
    }

    .cs-blockquote p.quote {
        font-size: 18px;
    }

    .cs-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-stat-number {
        font-size: 40px;
    }

    .cs-feature-cards-grid {
        grid-template-columns: 1fr;
    }

    .cs-callout-box {
        padding: 24px 20px;
    }

    .cs-callout-list li {
        font-size: 16px;
    }

    .btn-black {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }

    .btn-yellow {
        width: 100%;
        font-size: 16px;
    }

    .page-template-template-case-study li.w-50 {
        width: 100%;
    }
}
