
/* ==========================================================
   INVOMIZE AMAZON FBA — CASE STUDIES
   Complete consolidated stylesheet

   Shortcode: [inv_case_studies]

   Includes:
   01. Global styles
   02. Section heading
   03. Results cards
   04. Metrics
   05. Badges and buttons
   06. Detailed case-study modal
   07. Modal content and tables
   08. Proof gallery
   09. Modal consultation CTA
   10. Image lightbox
   11. Responsive layouts

   Fonts are loaded globally from:
   assets/css/fonts.css
   ========================================================== */

/* ==========================================================
   01. VARIABLES AND RESET
   ========================================================== */

.inv-cs,
.inv-cs-modal,
.inv-lightbox {
    --inv-navy: #16232B;
    --inv-green: #49B99A;
    --inv-green-dark: #348F78;
    --inv-yellow: #F5C842;
    --inv-muted: #697386;
    --inv-line: #DCE3E6;
    --inv-ease: ease;

    font-family: var(
        --iaf-font-body,
        "Invomize Inter",
        Arial,
        sans-serif
    );
}

.inv-cs,
.inv-cs *,
.inv-cs *::before,
.inv-cs *::after,
.inv-cs-modal,
.inv-cs-modal *,
.inv-cs-modal *::before,
.inv-cs-modal *::after,
.inv-lightbox,
.inv-lightbox *,
.inv-lightbox *::before,
.inv-lightbox *::after {
    box-sizing: border-box;
}

.inv-cs button,
.inv-cs-modal button,
.inv-lightbox button {
    font-family: var(--iaf-font-body);
}

/* ==========================================================
   02. RESULTS SECTION
   ========================================================== */

.inv-cs.iaf-results {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 65px 24px 85px;

    background: #FFFFFF;
    color: #16232B;
}

.inv-cs .iaf-results__container {
    width: 100%;
    max-width: 1425px;
    min-width: 0;
    margin: 0 auto;
}

/* ==========================================================
   SECTION INTRODUCTION
   ========================================================== */

.inv-cs .iaf-results__intro {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    max-width: 950px;

    margin: 0 auto 58px;
    padding: 0;

    text-align: center;
}

/* RESULTS PILL */

.inv-cs .iaf-results__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 45px;

    margin: 0;
    padding: 10px 26px;

    background: #16232B;
    border: 1px solid #16232B;
    border-radius: 100px;

    color: #FFFFFF;

    font-family: var(--iaf-font-body);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;

    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.14);
}

/* Heading */

.inv-cs .iaf-results__intro h2 {
    display: block;

    max-width: 850px;
    margin: 30px auto 20px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(35px, 3.5vw, 49px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: #16232B;
    text-align: center;
}

/* Description */

.inv-cs .iaf-results__intro p {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.015em;

    color: #697386;
    text-align: center;
}

/* ==========================================================
   03. CASE STUDIES GRID
   ========================================================== */

.inv-cs .inv-cs__grid {
    display: grid !important;

    grid-template-columns: minmax(0, 1fr) !important;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    gap: 32px;
    overflow: visible;
    align-items: stretch;
}

/* ==========================================================
   CASE STUDY CARD
   ========================================================== */

.inv-cs .inv-cs__card {
    position: relative;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr) !important;

    align-items: stretch;

    column-gap: clamp(30px, 4.3vw, 70px);

    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 370px;

    margin: 0;
    padding: 43px clamp(28px, 4.4vw, 65px);

    background: #FAFAFA;

    border: 1px solid #D6DEE1;
    border-radius: 26px;

    color: #16232B;

    box-shadow:
        0 5px 25px rgba(22, 35, 43, 0.035);

    cursor: pointer;

    opacity: 1;
    transform: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.inv-cs .inv-cs__card:hover {
    border-color: #A7D1C5;

    box-shadow:
        0 12px 35px rgba(22, 35, 43, 0.075);

    transform: none;
}

.inv-cs .inv-cs__card:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 4px;
}

.inv-cs .inv-cs__card--hidden {
    display: none !important;
}

/* ==========================================================
   04. LEFT CARD CONTENT
   ========================================================== */

.inv-cs .iaf-results__card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    min-width: 0;
}

/* Revenue headline */

.inv-cs .inv-cs__headline {
    display: block;

    width: 100%;
    margin: 0 0 10px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(30px, 2.8vw, 43px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;

    color: #16232B;

    overflow-wrap: anywhere;
}

.inv-cs .inv-cs__headline-muted,
.inv-cs .inv-cs__headline-dark,
.inv-cs .iaf-results__arrow {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;

    color: #16232B;
}

/* Context */

.inv-cs .iaf-results__context {
    display: block;

    width: 100%;
    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.015em;

    color: #26323A;
}

.inv-cs .iaf-results__context-subtitle:not(:first-child)::before {
    content: " · ";
}

/* Description */

.inv-cs .inv-cs__desc {
    flex: 1 1 auto;

    max-width: 560px;

    margin: 26px 0 27px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: clamp(16px, 1.35vw, 20px);
    font-weight: 400;
    line-height: 1.48;
    letter-spacing: -0.015em;

    color: #697386;
}

/* ==========================================================
   05. BADGES
   ========================================================== */

.inv-cs .iaf-results__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    width: 100%;
    margin: auto 0 0;
    padding: 0;
}

.inv-cs .iaf-results__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 31px;
    padding: 6px 15px;

    border: 1px solid #16232B;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.15;

    white-space: normal;
}

/* Service */

.inv-cs .iaf-results__badge--service {
    background: #49B99A;
    color: #FFFFFF;
}

/* Location */

.inv-cs .iaf-results__badge--location {
    background: #438FC8;
    color: #FFFFFF;
}

.inv-cs .iaf-results__badge--location img {
    display: block;

    width: 17px;
    height: 17px;

    border-radius: 50%;
    object-fit: cover;
}

/* Case study label */

.inv-cs .iaf-results__badge--case {
    background: #F5C842;
    color: #16232B;
}

/* ==========================================================
   COMPLETE CASE STUDY BUTTON
   ========================================================== */

.inv-cs .inv-cs__card-cta {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    width: fit-content;
    max-width: 100%;
    min-height: 44px;

    margin: 18px 0 0;
    padding: 11px 21px;

    background: #F5C842;
    border: 1px solid #16232B;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;

    color: #16232B;
    text-decoration: none;
    text-transform: none;
    text-align: center;

    box-shadow: 0 3px 8px rgba(22, 35, 43, 0.07);

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.inv-cs .inv-cs__card:hover .inv-cs__card-cta,
.inv-cs .inv-cs__card-cta:hover {
    background: #16232B;
    border-color: #16232B;
    color: #FFFFFF;
}

.inv-cs .inv-cs__card-cta:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 3px;
}

/* ==========================================================
   06. RIGHT CARD METRICS — 2x2 GRID
   ========================================================== */

.inv-cs .inv-cs__card-stats {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    grid-auto-flow: row !important;

    align-content: center;
    align-items: stretch;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0 !important;

    gap: 18px 20px !important;

    border: none !important;
}

/* Metric boxes */

.inv-cs .inv-cs__card-stat {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;

    gap: 20px;

    width: 100%;
    min-width: 0;
    min-height: 145px;

    margin: 0;
    padding: 18px 20px;

    background: #FFFFFF;

    border: 1px solid #B9C3C8 !important;
    border-radius: 18px;

    box-shadow: none;
}

/* Metric labels */

.inv-cs .inv-cs__card-stat-label {
    display: block;

    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;

    color: #26323A;
}

/* Metric numbers */

.inv-cs .inv-cs__card-stat-value {
    display: block;

    align-self: center;

    width: 100%;
    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(27px, 2.7vw, 40px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: #16232B;
    text-align: center;

    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ==========================================================
   07. LOAD MORE
   ========================================================== */

.inv-cs .inv-cs__load-more-wrap {
    display: flex;
    justify-content: center;

    width: 100%;
    margin-top: 45px;
}

.inv-cs .inv-cs__load-more {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 56px;
    padding: 14px 28px;

    background: #16232B;
    border: 1px solid #16232B;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;

    color: #FFFFFF;

    cursor: pointer;

    box-shadow: 0 4px 10px rgba(22, 35, 43, 0.12);

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.inv-cs .inv-cs__load-more::after {
    content: "";

    width: 8px;
    height: 8px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: translateY(-2px) rotate(45deg);
}

.inv-cs .inv-cs__load-more:hover {
    background: #49B99A;
    border-color: #49B99A;
    color: #FFFFFF;
}

.inv-cs .inv-cs__load-more:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 4px;
}

.inv-cs .inv-cs__mobile-controls {
    display: none !important;
}

.inv-cs .inv-cs__empty {
    padding: 50px 20px;
    text-align: center;
    color: #697386;
}

/* ==========================================================
   08. CASE STUDY MODAL
   ========================================================== */

.inv-cs-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;
    opacity: 0;

    font-family: var(--iaf-font-body);

    transition: opacity 0.25s ease;
}

.inv-cs-modal.is-open {
    display: block;
    opacity: 1;
}

body.inv-cs-modal-open {
    overflow: hidden;
}

/* Backdrop */

.inv-cs-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 22, 31, 0.78);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

/* Modal panel */

.inv-cs-modal__panel {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;

    width: calc(100% - 48px);
    max-width: 1080px;
    max-height: calc(100dvh - 60px);

    margin: 0;
    padding: 0;

    background: #FFFFFF;

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.28);

    overflow: hidden;
}

/* ==========================================================
   09. MODAL HEADER
   ========================================================== */

.inv-cs-modal__header {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    padding: 32px 42px 18px;

    background: #FFFFFF;
    color: #16232B;
}

/* Close */

.inv-cs-modal__close {
    position: absolute;

    top: 20px;
    right: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    background: #F2F5F5;

    border: 1px solid #DCE4E6;
    border-radius: 50%;

    font-family: var(--iaf-font-body);
    font-size: 25px;
    font-weight: 400;
    line-height: 1;

    color: #16232B;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.inv-cs-modal__close:hover {
    background: #E6F5EF;
    border-color: #49B99A;
    color: #16232B;
}

.inv-cs-modal__close:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 3px;
}

/* Header top row */

.inv-cs-modal__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 12px;

    padding-right: 45px;
    margin-bottom: 24px;
}

/* Service badge */

.inv-cs-modal__badge {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 10px 17px;

    background: #16232B;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: uppercase;

    color: #FFFFFF;
}

.inv-cs-modal__badge::before {
    content: "";

    flex: 0 0 9px;

    width: 9px;
    height: 9px;

    background: #49B99A;
    border-radius: 50%;
}

/* Location */

.inv-cs-modal__header-loc {
    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;

    color: #697386;
    text-align: right;
}

.inv-cs-modal__header-loc strong {
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;

    color: #16232B;
}

/* Headline */

.inv-cs-modal__headline {
    margin: 0 0 11px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(32px, 3.3vw, 46px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: #16232B;
}

/* Subtitle */

.inv-cs-modal__subtitle {
    margin: 0 0 24px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.01em;

    color: #697386;
}

/* ==========================================================
   10. MODAL METRICS
   ========================================================== */

.inv-cs-modal__stats {
    display: grid;

    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);

    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
}

.inv-cs-modal__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 17px;

    background: #EFF8F4;

    border: 1px solid #E0F0E9;
    border-radius: 13px;
}

.inv-cs-modal__stat-value {
    font-family: var(--iaf-font-heading);
    font-size: clamp(20px, 2vw, 29px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;

    color: #16232B;

    overflow-wrap: anywhere;
}

.inv-cs-modal__stat-label {
    margin-top: 8px;

    font-family: var(--iaf-font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    color: #697386;
}

/* ==========================================================
   11. MODAL SCROLLABLE BODY
   ========================================================== */

.inv-cs-modal__body {
    position: relative;
    z-index: 1;

    flex: 1 1 auto;
    min-height: 0;

    width: 100%;

    padding: 0 42px 42px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #A7D7C8 #F0F5F3;
}

.inv-cs-modal__body::-webkit-scrollbar {
    width: 6px;
}

.inv-cs-modal__body::-webkit-scrollbar-track {
    background: #F0F5F3;
}

.inv-cs-modal__body::-webkit-scrollbar-thumb {
    background: #A7D7C8;
    border-radius: 100px;
}

/* ==========================================================
   12. SITUATION / WHAT WE DID
   ========================================================== */

.inv-cs-modal__twocol {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 22px;
    margin: 24px 0 35px;
}

.inv-cs-modal__col {
    min-width: 0;
    padding: 25px;

    border-radius: 18px;
}

.inv-cs-modal__col:nth-child(1) {
    background: #FFF4F2;
}

.inv-cs-modal__col:nth-child(2) {
    background: #EFF8F4;
}

/* Content titles */

.inv-cs-modal__col-title {
    display: flex;
    align-items: center;

    gap: 11px;

    margin: 0 0 18px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;

    color: #16232B;
}

/* Situation icon */

.inv-cs-modal__col:nth-child(1)
.inv-cs-modal__col-title::before {
    content: "!";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    background: #E54C38;
    border-radius: 50%;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 500;

    color: #FFFFFF;
}

/* What We Did icon */

.inv-cs-modal__col:nth-child(2)
.inv-cs-modal__col-title::before {
    content: "⚙";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    color: #49B99A;
    font-size: 23px;
}

/* Lists */

.inv-cs-modal__bullets,
.inv-cs-modal__steps {
    margin: 0;
    padding: 0 0 0 22px;

    font-family: var(--iaf-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.01em;

    color: #59636B;
}

.inv-cs-modal__bullets {
    list-style: disc;
}

.inv-cs-modal__steps {
    list-style: decimal;
}

.inv-cs-modal__bullets li,
.inv-cs-modal__steps li {
    margin: 0 0 12px;
    padding-left: 4px;
}

.inv-cs-modal__bullets li:last-child,
.inv-cs-modal__steps li:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   13. SECTION TITLES
   ========================================================== */

.inv-cs-modal__section-title {
    margin: 32px 0 17px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.025em;

    color: #16232B;
}

/* ==========================================================
   14. RESULTS TABLE
   ========================================================== */

.inv-cs-modal__table-wrap {
    width: 100%;

    margin: 0 0 15px;

    border: 1px solid #E0E7EB;
    border-radius: 13px;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.inv-cs-modal__table {
    width: 100%;
    border-collapse: collapse;

    font-family: var(--iaf-font-body);
}

.inv-cs-modal__table thead th {
    padding: 15px 16px;

    background: #EDF4FA;

    border: 0;

    font-family: var(--iaf-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    color: #16232B;
    text-align: left;
    text-transform: uppercase;
}

.inv-cs-modal__table td {
    padding: 15px 16px;

    background: #FFFFFF;
    border: 0;
    border-bottom: 1px solid #E8ECEE;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;

    color: #59636B;
    text-align: left;
}

.inv-cs-modal__table tbody tr:last-child td {
    border-bottom: none;
}

.inv-cs-modal__table tbody tr:hover td {
    background: #F8FAFA;
}

.inv-cs-modal__change {
    color: #328C75 !important;
    font-weight: 500 !important;
}

/* Source */

.inv-cs-modal__source {
    margin: 15px 0 28px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #697386;
}

.inv-cs-modal__source strong {
    font-weight: 500;
    color: #16232B;
}

/* ==========================================================
   15. KEY INSIGHTS
   ========================================================== */

.inv-cs-modal__insight {
    margin: 28px 0 0;
    padding: 26px;

    background: #EAF7F1;

    border: 1px solid #D8EFE3;
    border-radius: 16px;
}

.inv-cs-modal__insight-label {
    margin: 0 0 12px;

    font-family: var(--iaf-font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;

    color: #348F78;
}

.inv-cs-modal__insight p {
    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;

    color: #16232B;
}

/* ==========================================================
   16. PROOF GALLERY
   ========================================================== */

.inv-cs-modal__proof {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
    margin: 0;
}

.inv-cs-modal__proof-item {
    min-width: 0;

    background: transparent;
    border: none;
}

.inv-cs-modal__proof-item img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border: 1px solid #E0E7E8;
    border-radius: 13px;

    cursor: zoom-in;
}

.inv-cs-modal__proof-title {
    margin: 12px 0 0;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    color: #16232B;
}

.inv-cs-modal__proof-caption {
    margin: 8px 0 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #697386;
}

.inv-cs-modal__footer-note {
    display: none;
}

/* ==========================================================
   17. CONSULTATION CTA
   ========================================================== */

.inv-cs-modal__cta-wrap {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    margin: 0 -42px -42px;
    padding: 95px 42px 42px;

    background: linear-gradient(
        180deg,
        rgba(73, 185, 154, 0) 0%,
        rgba(73, 185, 154, 0.15) 100%
    );
}

.inv-cs-modal__cta-btn {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 245px;
    min-height: 55px;

    margin: 0;
    padding: 15px 32px;

    background: #F5C842;

    border: 1px solid #F5C842;
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;

    color: #16232B;
    text-decoration: none;
    text-align: center;

    cursor: pointer;

    box-shadow: 0 5px 14px rgba(22, 35, 43, 0.10);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.inv-cs-modal__cta-btn:hover {
    background: #16232B;
    border-color: #16232B;

    color: #FFFFFF;
}

.inv-cs-modal__cta-btn:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 4px;
}

/* ==========================================================
   18. PROOF IMAGE LIGHTBOX
   ========================================================== */

.inv-lightbox {
    position: fixed;
    inset: 0;

    z-index: 9999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background: rgba(10, 22, 31, 0.95);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.inv-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.inv-lightbox-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1100px;
    max-height: 100%;
}

/* Lightbox image */

.inv-lightbox-img {
    display: block;

    max-width: 100%;
    max-height: 70vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Caption */

.inv-lightbox-caption {
    max-width: 800px;
    margin: 22px auto 0;

    color: #FFFFFF;
    text-align: center;
}

.inv-lightbox-title {
    margin: 0 0 8px;

    font-family: var(--iaf-font-body);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.4;

    color: #FFFFFF;
}

.inv-lightbox-desc {
    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.75);
}

/* Navigation arrows */

.inv-lightbox-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    padding: 0;

    background: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    color: #FFFFFF;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.inv-lightbox-arrow:hover {
    background: #49B99A;
    border-color: #49B99A;
}

.inv-lightbox-arrow svg {
    width: 23px;
    height: 23px;
}

.inv-lightbox-prev {
    left: 20px;
}

.inv-lightbox-next {
    right: 20px;
}

/* Close */

.inv-lightbox-close {
    position: absolute;

    top: 20px;
    right: 28px;

    z-index: 11;

    color: #FFFFFF;

    font-family: var(--iaf-font-body);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;
}

.inv-lightbox-close:hover {
    color: #49B99A;
}

/* Footer */

.inv-lightbox-footer {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 15px;
    margin-top: 22px;
}

.inv-lightbox-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.inv-lightbox-dot {
    display: block;

    width: 8px;
    height: 8px;

    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    cursor: pointer;
}

.inv-lightbox-dot.is-active {
    background: #49B99A;
}

.inv-lightbox-counter {
    padding: 7px 14px;

    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;

    font-family: var(--iaf-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;

    color: #FFFFFF;
}

/* ==========================================================
   19. SMALL DESKTOP
   ========================================================== */

@media (max-width: 1199px) {

    .inv-cs.iaf-results {
        padding: 55px 24px 70px;
    }

    .inv-cs .inv-cs__card {
        column-gap: 30px;
        padding: 35px 30px;
    }

    .inv-cs .inv-cs__headline {
        font-size: 34px;
    }

    .inv-cs .inv-cs__desc {
        font-size: 17px;
    }

    .inv-cs .inv-cs__card-stats {
        gap: 13px !important;
    }

    .inv-cs .inv-cs__card-stat {
        min-height: 125px;
        padding: 15px;
    }

    .inv-cs .inv-cs__card-stat-value {
        font-size: 30px;
    }
}

/* ==========================================================
   20. TABLET
   ========================================================== */

@media (max-width: 900px) {

    .inv-cs.iaf-results {
        padding: 48px 20px 65px;
    }

    .inv-cs .iaf-results__intro {
        margin-bottom: 42px;
    }

    .inv-cs .inv-cs__card {
        grid-template-columns:
            minmax(0, 1fr) !important;

        gap: 25px;

        padding: 30px;
        min-height: 0;
    }

    .inv-cs .inv-cs__desc {
        max-width: 100%;
        margin: 20px 0 25px;
    }

    .inv-cs .inv-cs__card-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 13px !important;
    }

    .inv-cs .inv-cs__card-stat {
        min-height: 115px;
    }

    .inv-cs-modal__panel {
        max-width: 850px;
    }

    .inv-cs-modal__header {
        padding: 27px 28px 16px;
    }

    .inv-cs-modal__body {
        padding: 0 28px 30px;
    }

    .inv-cs-modal__headline {
        font-size: 35px;
    }

    .inv-cs-modal__twocol {
        gap: 16px;
    }

    .inv-cs-modal__col {
        padding: 20px;
    }

    .inv-cs-modal__cta-wrap {
        margin: 0 -28px -30px;
        padding: 75px 28px 30px;
    }
}

/* ==========================================================
   21. MOBILE
   ========================================================== */

@media (max-width: 680px) {

    /* Section */

    .inv-cs.iaf-results {
        padding: 40px 15px 55px;
    }

    .inv-cs .iaf-results__intro {
        margin-bottom: 32px;
    }

    .inv-cs .iaf-results__pill {
        min-width: 135px;
        min-height: 39px;
        padding: 8px 19px;

        font-size: 15px;
    }

    .inv-cs .iaf-results__intro h2 {
        margin: 23px auto 15px;

        font-size: clamp(29px, 7.5vw, 39px);
        line-height: 1.15;
    }

    .inv-cs .iaf-results__desktop-break {
        display: none;
    }

    .inv-cs .iaf-results__intro p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Keep stacked case-study cards */

    .inv-cs .inv-cs__grid {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        gap: 19px;

        overflow: visible;
        padding: 0;

        scroll-snap-type: none;
    }

    .inv-cs .inv-cs__card {
        display: grid !important;

        grid-template-columns:
            minmax(0, 1fr) !important;

        width: 100%;
        max-width: 100%;

        min-height: 0;
        margin: 0;
        padding: 23px 18px;

        gap: 23px;

        border-radius: 19px;
    }

    .inv-cs .inv-cs__card--hidden {
        display: none !important;
    }

    .inv-cs .inv-cs__headline {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.12;
    }

    .inv-cs .iaf-results__context {
        font-size: 12px;
        line-height: 1.45;
    }

    .inv-cs .inv-cs__desc {
        margin: 17px 0 22px;

        font-size: 14px;
        line-height: 1.5;
    }

    /* Badges */

    .inv-cs .iaf-results__badges {
        gap: 7px;
    }

    .inv-cs .iaf-results__badge {
        min-height: 27px;

        padding: 5px 10px;
        font-size: 11px;
    }

    /* Card CTA */

    .inv-cs .inv-cs__card-cta {
        min-height: 40px;

        margin-top: 15px;
        padding: 10px 17px;

        font-size: 12px;
    }

    /* Card metrics */

    .inv-cs .inv-cs__card-stats {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        grid-auto-flow: row !important;

        padding: 0 !important;
        margin: 0;

        gap: 10px !important;
        border: none !important;
    }

    .inv-cs .inv-cs__card-stat {
        min-height: 105px;

        padding: 12px 11px;

        border: 1px solid #B9C3C8 !important;
        border-radius: 13px;
    }

    .inv-cs .inv-cs__card-stat-label {
        font-size: 11px;
    }

    .inv-cs .inv-cs__card-stat-value {
        font-size: clamp(22px, 6vw, 30px);
    }

    .inv-cs .inv-cs__load-more {
        min-height: 50px;

        padding: 12px 22px;
        font-size: 14px;
    }

    /* Modal panel */

    .inv-cs-modal__panel {
        top: 0;
        left: 0;

        transform: none;

        width: 100%;
        max-width: 100%;

        height: 100dvh;
        max-height: 100dvh;

        border: none;
        border-radius: 0;

        overflow: hidden;
    }

    /* Modal header */

    .inv-cs-modal__header {
        padding: 22px 18px 15px;
    }

    .inv-cs-modal__close {
        top: 13px;
        right: 13px;

        width: 35px;
        height: 35px;

        font-size: 23px;
    }

    .inv-cs-modal__header-top {
        flex-direction: column;
        align-items: flex-start;

        gap: 10px;
        padding-right: 43px;
        margin-bottom: 17px;
    }

    .inv-cs-modal__badge {
        padding: 8px 11px;

        font-size: 10px;
        line-height: 1.3;
    }

    .inv-cs-modal__header-loc {
        text-align: left;
        font-size: 12px;
    }

    .inv-cs-modal__header-loc strong {
        font-size: 12px;
    }

    .inv-cs-modal__headline {
        margin-bottom: 8px;

        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.1;
    }

    .inv-cs-modal__subtitle {
        margin-bottom: 17px;

        font-size: 13px;
        line-height: 1.45;
    }

    /* Modal metrics */

    .inv-cs-modal__stats {
        display: grid;

        grid-auto-flow: row;
        grid-auto-columns: auto;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
        margin-bottom: 12px;
    }

    .inv-cs-modal__stat {
        padding: 12px 11px;
        border-radius: 11px;
    }

    .inv-cs-modal__stat-value {
        font-size: 19px;
        line-height: 1.2;
    }

    .inv-cs-modal__stat-label {
        margin-top: 5px;

        font-size: 11px;
        line-height: 1.35;
    }

    /* Modal body */

    .inv-cs-modal__body {
        padding: 0 18px 28px;
        overflow-x: hidden;
    }

    /* Two columns become stacked */

    .inv-cs-modal__twocol {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 14px;
        margin: 20px 0 25px;
    }

    .inv-cs-modal__col {
        padding: 19px;
        border-radius: 14px;
    }

    .inv-cs-modal__col-title {
        margin-bottom: 14px;
        font-size: 19px;
    }

    .inv-cs-modal__bullets,
    .inv-cs-modal__steps {
        padding-left: 19px;

        font-size: 13px;
        line-height: 1.6;
    }

    .inv-cs-modal__bullets li,
    .inv-cs-modal__steps li {
        margin-bottom: 9px;
    }

    /* Table */

    .inv-cs-modal__section-title {
        margin: 25px 0 13px;
        font-size: 21px;
    }

    .inv-cs-modal__table-wrap {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
    }

    .inv-cs-modal__table {
        min-width: 520px;
    }

    .inv-cs-modal__table thead th {
        padding: 12px;

        font-size: 11px;
    }

    .inv-cs-modal__table td {
        padding: 12px;

        font-size: 12px;
        line-height: 1.5;
    }

    .inv-cs-modal__source {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Insight */

    .inv-cs-modal__insight {
        padding: 20px;
        border-radius: 13px;
    }

    .inv-cs-modal__insight-label {
        font-size: 19px;
    }

    .inv-cs-modal__insight p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Proof */

    .inv-cs-modal__proof {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 18px;
    }

    .inv-cs-modal__proof-caption {
        font-size: 12px;
    }

    /* Consultation CTA */

    .inv-cs-modal__cta-wrap {
        margin: 0 -18px -28px;
        padding: 65px 18px 30px;
    }

    .inv-cs-modal__cta-btn {
        width: 100%;
        max-width: 320px;

        min-width: 0;
        min-height: 49px;

        padding: 13px 20px;
        font-size: 15px;
    }

    /* Lightbox */

    .inv-lightbox {
        padding: 20px 15px;
    }

    .inv-lightbox-img {
        max-height: 54vh;
    }

    .inv-lightbox-close {
        top: 14px;
        right: 18px;

        font-size: 35px;
    }

    .inv-lightbox-arrow {
        top: auto;
        bottom: 20px;

        transform: none;
    }

    .inv-lightbox-prev {
        left: 20px;
    }

    .inv-lightbox-next {
        right: 20px;
    }

    .inv-lightbox-title {
        font-size: 16px;
    }

    .inv-lightbox-desc {
        font-size: 12px;
    }

    .inv-lightbox-counter {
        font-size: 11px;
    }
}

/* ==========================================================
   22. VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 375px) {

    .inv-cs.iaf-results {
        padding-left: 11px;
        padding-right: 11px;
    }

    .inv-cs .inv-cs__card {
        padding: 19px 14px;
    }

    .inv-cs .inv-cs__headline {
        font-size: 26px;
    }

    .inv-cs .iaf-results__badge {
        font-size: 10px;
    }

    .inv-cs .inv-cs__card-stat {
        padding: 10px 9px;
    }

    .inv-cs .inv-cs__card-stat-value {
        font-size: 22px;
    }

    .inv-cs-modal__stat {
        padding: 10px 9px;
    }

    .inv-cs-modal__stat-value {
        font-size: 17px;
    }
}

/* ==========================================================
   23. ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .inv-cs *,
    .inv-cs-modal *,
    .inv-lightbox * {
        transition: none !important;
        animation: none !important;
    }
}




/* ==========================================================
   INVOMIZE AMAZON FBA — PREMIUM RESULTS CARDS
   Refined visual styling inspired by reference
   Keeps full-width horizontal card architecture
   ========================================================== */

/* ==========================================================
   CARD SHELL
   ========================================================== */

.iaf-results .inv-cs__card {
    background: #FFFFFF;

    border: 1px solid #E2E8E7;
    border-radius: 26px;

    box-shadow:
        0 2px 8px rgba(22, 35, 43, 0.025),
        0 14px 45px rgba(22, 35, 43, 0.035);

    padding-top: 48px;
    padding-bottom: 48px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.iaf-results .inv-cs__card:hover {
    border-color: #B5D8CE;

    box-shadow:
        0 6px 18px rgba(22, 35, 43, 0.04),
        0 20px 55px rgba(22, 35, 43, 0.065);
}

/* ==========================================================
   LEFT CONTENT
   ========================================================== */

.iaf-results .iaf-results__card-content {
    justify-content: center;
}

/* Revenue headline */

.iaf-results .inv-cs__headline {
    margin-bottom: 12px;

    font-size: clamp(34px, 3vw, 47px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.iaf-results .inv-cs__headline-muted {
    color: #A3AFB7;
}

.iaf-results .inv-cs__headline-dark {
    color: #16232B;
}

.iaf-results .iaf-results__arrow {
    color: #8C9EA7;
    margin: 0 5px;
}

/* Context text */

.iaf-results .iaf-results__context {
    color: #7B8791;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

/* Description */

.iaf-results .inv-cs__desc {
    max-width: 570px;

    margin-top: 28px;
    margin-bottom: 30px;

    color: #596974;

    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    letter-spacing: -0.012em;
}

/* ==========================================================
   BADGES — PREMIUM MINIMAL DESIGN
   ========================================================== */

.iaf-results .iaf-results__badges {
    gap: 9px;
}

.iaf-results .iaf-results__badge {
    min-height: 34px;

    padding: 7px 14px;

    border-radius: 100px;

    font-size: 12px;
    font-weight: 500;

    border: none;
}

/* Dark service pill */

.iaf-results .iaf-results__badge--service {
    background: #1E3B50;
    color: #FFFFFF;
}

/* Green dot */

.iaf-results .iaf-results__badge--service::before {
    content: "";

    display: inline-block;

    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    background: #49B99A;
    border-radius: 50%;
}

/* Country badge */

.iaf-results .iaf-results__badge--location {
    background: #EDF4F8;
    color: #34566B;
}

.iaf-results .iaf-results__badge--location img {
    width: 18px;
    height: 18px;
}

/* Case Study badge */

.iaf-results .iaf-results__badge--case {
    background: #FFF2CB;
    color: #80610A;
}

/* ==========================================================
   CTA BUTTON
   ========================================================== */

.iaf-results .inv-cs__card-cta {
    min-height: 47px;

    margin-top: 22px;
    padding: 12px 23px;

    background: #F5C842;
    border: 1px solid #E5B92E;
    border-radius: 100px;

    color: #16232B;

    font-size: 14px;
    font-weight: 500;

    box-shadow:
        0 3px 8px rgba(22, 35, 43, 0.07);
}

.iaf-results .inv-cs__card:hover
.inv-cs__card-cta,
.iaf-results .inv-cs__card-cta:hover {
    background: #16232B;
    border-color: #16232B;
    color: #FFFFFF;
}

/* ==========================================================
   RIGHT METRICS
   ========================================================== */

.iaf-results .inv-cs__card-stats {
    gap: 15px !important;
}

/* Metric cards */

.iaf-results .inv-cs__card-stat {
    position: relative;

    min-height: 140px;

    padding: 21px;

    background: #F2F8F5;

    border: 1px solid #E1EEE8 !important;
    border-radius: 18px;

    box-shadow: none;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.iaf-results .inv-cs__card:hover
.inv-cs__card-stat {
    background: #ECF7F1;
    border-color: #CBE4D8 !important;
}

/* Metric label */

.iaf-results .inv-cs__card-stat-label {
    color: #71818A;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

/* Metric value */

.iaf-results .inv-cs__card-stat-value {
    color: #17374A;

    font-size: clamp(29px, 2.6vw, 39px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

/* Soft accent at top of metric */

.iaf-results .inv-cs__card-stat::before {
    content: "";

    position: absolute;

    top: 19px;
    right: 19px;

    width: 7px;
    height: 7px;

    background: #49B99A;
    border-radius: 50%;

    opacity: 0.75;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .iaf-results .inv-cs__card {
        padding: 30px;
    }

    .iaf-results .inv-cs__headline {
        font-size: clamp(30px, 4.6vw, 39px);
    }

    .iaf-results .inv-cs__desc {
        margin-top: 21px;
        margin-bottom: 25px;
    }

    .iaf-results .inv-cs__card-stat {
        min-height: 125px;
    }

    .iaf-results .inv-cs__card-stat-value {
        font-size: 32px;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 680px) {

    .iaf-results .inv-cs__card {
        padding: 24px 19px;
        border-radius: 20px;
    }

    .iaf-results .inv-cs__headline {
        font-size: clamp(29px, 7.3vw, 36px);
    }

    .iaf-results .iaf-results__context {
        font-size: 12px;
    }

    .iaf-results .inv-cs__desc {
        margin-top: 19px;
        margin-bottom: 24px;

        font-size: 14px;
        line-height: 1.55;
    }

    .iaf-results .iaf-results__badge {
        min-height: 29px;

        padding: 6px 10px;
        font-size: 10px;
    }

    .iaf-results .inv-cs__card-cta {
        min-height: 44px;

        margin-top: 18px;
        padding: 11px 18px;

        font-size: 13px;
    }

    .iaf-results .inv-cs__card-stats {
        gap: 10px !important;
    }

    .iaf-results .inv-cs__card-stat {
        min-height: 105px;
        padding: 13px 12px;

        border-radius: 13px;
    }

    .iaf-results .inv-cs__card-stat-label {
        font-size: 11px;
    }

    .iaf-results .inv-cs__card-stat-value {
        font-size: clamp(23px, 6vw, 30px);
    }

    .iaf-results .inv-cs__card-stat::before {
        top: 13px;
        right: 13px;

        width: 6px;
        height: 6px;
    }
}


/* Case Study — Metric Value Size Fix */

.iaf-results .inv-cs__card-stat-value {
    font-size: clamp(22px, 2.2vw, 34px);
    white-space: nowrap;
    overflow-wrap: normal;
    letter-spacing: -0.045em;
}

@media (max-width: 680px) {
    .iaf-results .inv-cs__card-stat-value {
        font-size: clamp(17px, 4.5vw, 25px);
    }
}



/* ==========================================================
   INVOMIZE AMAZON FBA — CASE STUDY GHL POPUP

   Separate modal above the existing Case Study modal.
   The form iframe is created on the first opening.
   ========================================================== */

.iaf-cs-ghl-modal,
.iaf-cs-ghl-modal *,
.iaf-cs-ghl-modal *::before,
.iaf-cs-ghl-modal *::after {
    box-sizing: border-box;
}

.iaf-cs-ghl-modal {
    position: fixed;
    inset: 0;
    z-index: 10000010;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    font-family: var(
        --iaf-font-body,
        "Invomize Inter",
        Arial,
        sans-serif
    );

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.iaf-cs-ghl-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ==========================================================
   BACKDROP
   ========================================================== */

.iaf-cs-ghl-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 22, 31, 0.82);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================
   POPUP PANEL
   ========================================================== */

.iaf-cs-ghl-modal__panel {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    max-width: 620px;

    max-height: calc(100dvh - 48px);

    margin: 0;
    padding: 0;

    background: #FFFFFF;

    border: 1px solid #E5EBED;
    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.28);
}

/* ==========================================================
   POPUP HEADER
   ========================================================== */

.iaf-cs-ghl-modal__header {
    position: relative;
    flex: 0 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 27px 30px 23px;

    background: #FFFFFF;
    border-bottom: 1px solid #EDF0F0;
}

.iaf-cs-ghl-modal__heading {
    min-width: 0;
    padding-right: 12px;
}

.iaf-cs-ghl-modal__eyebrow {
    display: inline-flex;
    align-items: center;

    margin: 0 0 12px;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.06em;

    color: #49B99A;
}

.iaf-cs-ghl-modal__heading h2 {
    margin: 0 0 9px;
    padding: 0;

    font-family: var(--iaf-font-heading);
    font-size: clamp(25px, 2.7vw, 32px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.03em;

    color: #16232B;
}

.iaf-cs-ghl-modal__heading p {
    margin: 0;
    padding: 0;

    font-family: var(--iaf-font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    color: #697386;
}

/* ==========================================================
   CLOSE BUTTON
   ========================================================== */

.iaf-cs-ghl-modal__close {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    background: #F2F5F5;

    border: 1px solid #DFE6E7;
    border-radius: 50%;

    color: #16232B;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.iaf-cs-ghl-modal__close svg {
    display: block;
    width: 19px;
    height: 19px;
}

.iaf-cs-ghl-modal__close:hover {
    background: #E7F5EF;
    border-color: #49B99A;
    color: #16232B;
}

.iaf-cs-ghl-modal__close:focus-visible {
    outline: 3px solid #49B99A;
    outline-offset: 3px;
}

/* ==========================================================
   SCROLLABLE CONTENT
   ========================================================== */

.iaf-cs-ghl-modal__content {
    flex: 1 1 auto;
    min-height: 0;

    width: 100%;
    padding: 0;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #B7DACE #F1F5F3;
}

/* ==========================================================
   FORM CONTAINER
   ========================================================== */

.iaf-cs-ghl-modal__form {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 720px;

    background: #FFFFFF;
}

.iaf-cs-ghl-modal__iframe-slot {
    width: 100%;
    min-width: 0;
    min-height: 720px;
}

/* Actual GHL iframe */

.iaf-cs-ghl-modal__iframe {
    display: block;

    width: 100%;
    height: 720px;
    min-height: 720px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
}

/* ==========================================================
   SKELETON LOADER
   ========================================================== */

.iaf-cs-ghl-skeleton {
    position: absolute;
    z-index: 2;

    top: 0;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;

    gap: 21px;

    min-height: 720px;
    padding: 33px 30px;

    background: #FFFFFF;

    pointer-events: none;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

/* Remove skeleton when iframe loads */

.iaf-cs-ghl-modal__form.is-loaded
.iaf-cs-ghl-skeleton {
    opacity: 0;
    visibility: hidden;
}

/* Skeleton elements */

.iaf-cs-ghl-skeleton__line,
.iaf-cs-ghl-skeleton__field,
.iaf-cs-ghl-skeleton__button {
    display: block;

    background: linear-gradient(
        100deg,
        #E5E9E9 10%,
        #F3F6F5 35%,
        #E5E9E9 60%
    );

    background-size: 200% 100%;

    animation: iaf-cs-ghl-shimmer 1.6s linear infinite;
}

.iaf-cs-ghl-skeleton__line {
    width: 100%;
    height: 15px;

    border-radius: 6px;
}

.iaf-cs-ghl-skeleton__field {
    width: 100%;
    height: 58px;

    border: 1px solid #E0E6E5;
    border-radius: 13px;
}

.iaf-cs-ghl-skeleton__button {
    width: 100%;
    height: 56px;

    margin-top: 8px;

    border-radius: 13px;

    background: linear-gradient(
        100deg,
        #A8DDCC,
        #D1EFE5,
        #A8DDCC
    );

    background-size: 200% 100%;
}

@keyframes iaf-cs-ghl-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .iaf-cs-ghl-modal {
        padding: 18px;
    }

    .iaf-cs-ghl-modal__panel {
        max-height: calc(100dvh - 36px);
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .iaf-cs-ghl-modal {
        padding: 0;
    }

    .iaf-cs-ghl-modal__panel {
        width: 100%;
        max-width: 100%;

        height: 100dvh;
        max-height: 100dvh;

        border: none;
        border-radius: 0;
    }

    .iaf-cs-ghl-modal__header {
        gap: 12px;
        padding: 21px 18px 17px;
    }

    .iaf-cs-ghl-modal__eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
    }

    .iaf-cs-ghl-modal__heading h2 {
        font-size: 25px;
        line-height: 1.2;
    }

    .iaf-cs-ghl-modal__heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    .iaf-cs-ghl-modal__close {
        flex-basis: 35px;

        width: 35px;
        height: 35px;
    }

    .iaf-cs-ghl-modal__form,
    .iaf-cs-ghl-modal__iframe-slot,
    .iaf-cs-ghl-modal__iframe {
        min-height: 720px;
    }

    .iaf-cs-ghl-modal__iframe {
        height: 720px;
    }

    .iaf-cs-ghl-skeleton {
        min-height: 720px;
        padding: 25px 18px;
        gap: 18px;
    }

    .iaf-cs-ghl-skeleton__field {
        height: 53px;
    }

    .iaf-cs-ghl-skeleton__button {
        height: 53px;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .iaf-cs-ghl-modal,
    .iaf-cs-ghl-modal__close,
    .iaf-cs-ghl-skeleton {
        transition: none;
    }

    .iaf-cs-ghl-skeleton__line,
    .iaf-cs-ghl-skeleton__field,
    .iaf-cs-ghl-skeleton__button {
        animation: none;
    }
}
