/* ============================================================
   Global Compensation Initiative
   UI Style: CityGov OldTown-Inspired Government Portal
   ============================================================ */

/* ---------- Google Fonts import (handled in HTML) ---------- */

/* ---------- CSS Variables ---------- */
:root {
    /* OldTown Palette — warm civic tones */
    --primary:        black;   /* brick-red / dark crimson — primary brand */
    --primary-dark:   #6A1A27;   /* deeper crimson for hover/dark states */
    --primary-light:  #A83347;   /* lighter shade */
    --accent:         #C0873A;   /* warm amber gold — secondary accent */
    --charcoal:       #2D2D2D;   /* top bar, footer dark */
    --slate:          #3D4552;   /* secondary dark — nav text, headings */
    --white:          #FFFFFF;
    --off-white:      #F5F5F5;
    --section-bg:     #F0EDE8;   /* warm off-white for alternating sections */
    --card-bg:        #FFFFFF;
    --gray-light:     #E8E8E8;
    --gray-border:    #D0CCC8;
    --gray-mid:       #777777;
    --gray-dark:      #444444;
    --text-body:      #3A3A3A;
    --text-muted:     #666666;
    --treasury-green: #1B5E38;
    --wb-blue:        #006A9E;
    --eu-blue:        #003188;
    --error-red:      #CC1F1F;
    --success-green:  #1A7A40;
    /* Typography */
    --font-heading:   'Lato', sans-serif;
    --font-body:      'Open Sans', sans-serif;
    /* Sizes */
    --radius-xs:      3px;
    --radius-sm:      5px;
    --radius-md:      8px;
    --radius-lg:      14px;
    --shadow-xs:      0 1px 4px rgba(0,0,0,0.08);
    --shadow-sm:      0 2px 10px rgba(0,0,0,0.09);
    --shadow-md:      0 6px 20px rgba(0,0,0,0.12);
    --shadow-lg:      0 14px 40px rgba(0,0,0,0.15);
    --transition:     all 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--white); line-height: 1.65; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--slate); }
a { text-decoration: none; color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Section Labels & Headings ── */
.eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--slate);
    margin-bottom: 10px;
}

.red-rule {
    display: block;
    width: 44px;
    height: 3px;
    background: var(--primary);
    margin: 14px 0 28px;
    border-radius: 2px;
}

.red-rule.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: transparent;
    padding: 0;
    font-weight: 700;
    font-size: 0.82rem;
}
.btn-ghost:hover { color: var(--primary-dark); gap: 12px; }

/* ============================================================
   TOP UTILITY BAR
   ============================================================ */
.top-bar {
    background: var(--charcoal);
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    padding: 7px 0;
    font-family: var(--font-body);
    border-bottom: 2px solid var(--primary);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-left .agency-trio {
    display: flex;
    gap: 10px;
    align-items: center;
}

.agency-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.agency-pill.t { background: var(--treasury-green); }
.agency-pill.w { background: var(--wb-blue); }
.agency-pill.e { background: var(--eu-blue); }

.top-bar-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.top-bar-right a {
    color: rgba(255,255,255,0.65);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.top-bar-right a:hover { color: #fff; }

.top-bar-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.18); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.13); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    gap: 20px;
}

/* Seal / Logo */
.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.site-seal {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(139,38,53,0.3);
}
.site-seal i { color: #fff; font-size: 1.4rem; }

.brand-text { line-height: 1.2; }
.brand-text .portal-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--slate);
    letter-spacing: -0.01em;
    display: block;
}
.brand-text .portal-sub {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-top: 2px;
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    justify-content: flex-end;
}

.primary-nav a {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--slate);
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 72px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.primary-nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.primary-nav a.apply-btn {
    background: var(--primary);
    color: #fff;
    padding: 0 22px;
    margin: 12px 0 12px 8px;
    height: auto;
    border-radius: var(--radius-xs);
    border-bottom: none;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 7px;
}
.primary-nav a.apply-btn:hover { background: var(--primary-dark); color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--slate); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    padding: 12px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate);
    border-left: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mobile-nav a:hover { border-left-color: var(--primary); color: var(--primary); background: var(--off-white); }
.mobile-nav a.apply-btn { background: var(--primary); color: #fff; margin: 8px 16px; border-radius: var(--radius-xs); border-left: none; padding: 12px 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--charcoal);
background-image: url('../../gci.jpeg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

/* Layered background: a strong color wash + texture */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(45,45,45,0.92) 0%, rgba(45,45,45,0.72) 50%, rgba(45,45,45,0.4) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.015) 2px,
            rgba(255,255,255,0.015) 4px
        );
    z-index: 0;
}

/* Red accent stripe on left */
.hero-stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--primary);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 24px;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-left {}

.hero-overtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-xs);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Right panel — authority box */
.hero-right {}

.authority-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 28px 24px;
    backdrop-filter: blur(4px);
}

.authority-box-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-agencies { display: flex; flex-direction: column; gap: 12px; }

.auth-agency {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-xs);
    border-left: 3px solid transparent;
}
.auth-agency.t { border-left-color: #4CAF7E; }
.auth-agency.w { border-left-color: #4DB8E8; }
.auth-agency.e { border-left-color: #6689CC; }

.auth-agency-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}
.auth-agency-icon.t { background: var(--treasury-green); }
.auth-agency-icon.w { background: var(--wb-blue); }
.auth-agency-icon.e { background: var(--eu-blue); }

.auth-agency-info {}
.auth-agency-info strong { display: block; font-size: 0.82rem; color: #fff; font-family: var(--font-heading); margin-bottom: 1px; }
.auth-agency-info span   { font-size: 0.72rem; color: rgba(255,255,255,0.55); }

.authority-note {
    margin-top: 16px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    line-height: 1.55;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--primary);
    padding: 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
    margin: 0 auto;
}

.stat-item {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--primary-dark); }

.stat-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-text {}
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
}
.stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
}

/* ============================================================
   OVERVIEW SECTION
   ============================================================ */
.section-overview {
    background: var(--white);
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.overview-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 16px;
}

.mandate-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mandate-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.mandate-list li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }

/* Agency Role Cards */
.agency-roles { display: flex; flex-direction: column; gap: 1px; background: var(--gray-border); border: 1px solid var(--gray-border); border-radius: var(--radius-sm); overflow: hidden; }

.agency-role-card {
    background: var(--white);
    padding: 20px 22px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background 0.2s;
}
.agency-role-card:hover { background: var(--off-white); }

.role-stripe {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 40px;
}
.role-stripe.t { background: var(--treasury-green); }
.role-stripe.w { background: var(--wb-blue); }
.role-stripe.e { background: var(--eu-blue); }

.role-body {}
.role-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 7px;
}
.role-body h4 i { font-size: 0.8rem; color: var(--gray-mid); }
.role-body p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   SERVICES ICON GRID (How It Works)
   ============================================================ */
.section-services {
    background: var(--section-bg);
    padding: 72px 0;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
}

.services-header { text-align: center; margin-bottom: 48px; }
.services-header .red-rule { margin-left: auto; margin-right: auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-tile {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 28px 20px 24px;
    text-align: center;
    border: 1px solid var(--gray-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.service-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.service-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.service-tile:hover::before { transform: scaleX(1); }

.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(139,38,53,0.25);
}

.service-icon-wrap {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-tile h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 8px;
}

.service-tile p {
    font-size: 0.81rem;
    color: var(--text-muted);
    line-height: 1.62;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section-testimonials {
    background: var(--white);
    padding: 80px 0;
}

.testimonials-header { text-align: center; margin-bottom: 52px; }
.testimonials-header .red-rule { margin-left: auto; margin-right: auto; }

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

.t-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.t-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-light); transform: translateY(-3px); }

.t-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.t-quote-mark {
    font-size: 3rem;
    line-height: 0.8;
    color: var(--primary);
    opacity: 0.25;
    font-family: Georgia, serif;
    margin-bottom: 10px;
}

.t-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
    flex: 1;
    margin-bottom: 18px;
}

.t-stars { color: var(--accent); font-size: 0.8rem; margin-bottom: 16px; letter-spacing: 3px; }

.t-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.t-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.t-info {}
.t-info .t-name { font-weight: 700; font-size: 0.88rem; color: var(--slate); }
.t-info .t-loc  { font-size: 0.75rem; color: var(--gray-mid); margin-top: 2px; }
.t-info .t-ref  { font-size: 0.7rem; color: var(--primary); font-weight: 700; margin-top: 3px; letter-spacing: 0.04em; }

/* ============================================================
   APPLY / FORM SECTION
   ============================================================ */
.section-apply {
    background: var(--section-bg);
    padding: 80px 0;
    border-top: 1px solid var(--gray-border);
}

.apply-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.apply-sidebar {}
.apply-sidebar h3 {
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 6px;
}
.apply-sidebar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.sidebar-note {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.81rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}
.sidebar-note strong { color: var(--slate); }

.sidebar-help {
    background: var(--charcoal);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 20px 18px;
}
.sidebar-help h5 { font-size: 0.85rem; color: #fff; margin-bottom: 10px; font-family: var(--font-heading); }
.sidebar-help p { font-size: 0.78rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 12px; }
.sidebar-help a { color: var(--accent); font-size: 0.78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.sidebar-help a:hover { color: #fff; }

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    background: var(--off-white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.step-tab {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 1px solid var(--gray-border);
    transition: background 0.2s;
    cursor: default;
}
.step-tab:last-child { border-right: none; }

.step-tab-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gray-border);
    color: var(--gray-mid);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.step-tab-text {}
.step-tab-text .step-tab-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--gray-mid); transition: color 0.2s; }
.step-tab-text .step-tab-title { font-size: 0.82rem; font-weight: 700; color: var(--gray-mid); transition: color 0.2s; }

.step-tab.active      { background: var(--white); }
.step-tab.active .step-tab-num { background: var(--primary); color: #fff; }
.step-tab.active .step-tab-label,
.step-tab.active .step-tab-title { color: var(--slate); }

.step-tab.completed .step-tab-num { background: var(--success-green); color: #fff; }
.step-tab.completed .step-tab-label,
.step-tab.completed .step-tab-title { color: var(--text-muted); }

/* Form card */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 36px 36px;
    box-shadow: var(--shadow-xs);
}

.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }

.step-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}
.step-section-title i { color: var(--primary); }

/* Form fields */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label { font-size: 0.8rem; font-weight: 700; color: var(--slate); letter-spacing: 0.02em; }
.form-group label .req { color: var(--error-red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,38,53,0.1); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: var(--error-red); box-shadow: 0 0 0 3px rgba(204,31,31,0.1); }
.form-group textarea { resize: vertical; min-height: 110px; }

.char-counter { font-size: 0.72rem; color: var(--gray-mid); text-align: right; margin-top: 3px; }
.char-counter.warn { color: var(--error-red); }

.field-error { font-size: 0.72rem; color: var(--error-red); margin-top: 2px; display: none; }
.field-error.show { display: block; }

/* File upload */
.file-zone {
    border: 2px dashed var(--gray-border);
    border-radius: var(--radius-sm);
    padding: 26px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--off-white);
}
.file-zone:hover, .file-zone.dragover { border-color: var(--primary); background: rgba(139,38,53,0.04); }
.file-zone i { font-size: 1.7rem; color: var(--primary); margin-bottom: 8px; display: block; }
.file-zone p { font-size: 0.83rem; color: var(--gray-mid); }
.file-zone small { font-size: 0.73rem; color: var(--gray-mid); display: block; margin-top: 4px; }
.file-zone input[type="file"] { display: none; }
.files-list { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.file-chip { display: flex; align-items: center; gap: 8px; background: var(--off-white); border: 1px solid var(--gray-border); padding: 6px 10px; border-radius: var(--radius-xs); font-size: 0.78rem; color: var(--text-body); }
.file-chip i { color: var(--primary); }
.file-chip .rm { margin-left: auto; cursor: pointer; color: var(--error-red); }

/* Checkboxes */
.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.check-item { display: flex; gap: 11px; align-items: flex-start; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; min-width: 16px; accent-color: var(--primary); cursor: pointer; margin-top: 3px; }
.check-item label { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; cursor: pointer; }

/* Ref preview */
.ref-box {
    background: var(--charcoal);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 24px;
    border-left: 5px solid var(--primary);
}
.ref-box .ref-lab { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.ref-box .ref-num { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); letter-spacing: 0.05em; font-weight: 900; }
.ref-box .ref-note { font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 6px; }

/* Form nav */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-light);
    gap: 12px;
    flex-wrap: wrap;
}

.btn-prev-step {
    background: transparent;
    border: 1.5px solid var(--gray-border);
    color: var(--gray-mid);
    padding: 9px 20px;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-prev-step:hover { border-color: var(--slate); color: var(--slate); }

.btn-next-step {
    background: var(--slate);
    color: #fff;
    border: 1.5px solid var(--slate);
    padding: 9px 22px;
    border-radius: var(--radius-xs);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}
.btn-next-step:hover { background: var(--charcoal); border-color: var(--charcoal); }

.btn-submit-form {
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
    padding: 11px 28px;
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.btn-submit-form:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,38,53,0.3); }
.btn-submit-form:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; display: none; }
.btn-submit-form.loading .spinner { display: block; }
.btn-submit-form.loading .btn-txt { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.65);
    padding: 56px 0 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {}
.footer-seal-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-seal {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.footer-seal i { color: #fff; font-size: 1.2rem; }
.footer-brand-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 900; color: #fff; line-height: 1.2; }
.footer-brand-sub  { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.footer-brand > p { font-size: 0.8rem; line-height: 1.72; color: rgba(255,255,255,0.5); margin-top: 4px; }

.footer-col h5 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: var(--font-heading);
}

.footer-col-agencies { display: flex; flex-direction: column; gap: 10px; }

.footer-agency-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-xs);
    border-left: 3px solid transparent;
}
.footer-agency-row.t { border-left-color: #4CAF7E; }
.footer-agency-row.w { border-left-color: #4DB8E8; }
.footer-agency-row.e { border-left-color: #6689CC; }
.footer-agency-row span { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
.footer-agency-row i { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.81rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links a i { font-size: 0.65rem; color: var(--primary); }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin: 0; }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.35); line-height: 1.55; max-width: 580px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 0.74rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 24px;
    backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; }

.modal-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 44px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 5px solid var(--primary);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

.modal-icon-wrap {
    width: 64px; height: 64px;
    background: rgba(26,122,64,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
    color: var(--success-green);
}
.modal-box h3 { font-size: 1.4rem; color: var(--slate); margin-bottom: 10px; }
.modal-ref-display {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary);
    background: var(--off-white);
    padding: 9px 22px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
    margin: 14px 0;
    border: 1px dashed var(--primary);
    font-weight: 900;
}
.modal-box p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 22px; }
.modal-dismiss { background: var(--primary); color: #fff; border: none; padding: 11px 32px; border-radius: var(--radius-xs); font-size: 0.88rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); transition: var(--transition); }
.modal-dismiss:hover { background: var(--primary-dark); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 42px; height: 42px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 900;
    border: none;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content       { grid-template-columns: 1fr; gap: 32px; }
    .hero-right         { max-width: 560px; }
    .stats-inner        { grid-template-columns: repeat(3, 1fr); }
    .services-grid      { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid  { grid-template-columns: repeat(2, 1fr); }
    .apply-layout       { grid-template-columns: 1fr; }
    .footer-cols        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar-inner      { flex-direction: column; gap: 6px; text-align: center; }
    .top-bar-left       { flex-direction: column; gap: 6px; }
    .agency-trio        { flex-wrap: wrap; justify-content: center; }
    .primary-nav        { display: none; }
    .hamburger          { display: flex; }
    .hero               { min-height: 60vh; }
    .hero-content       { padding: 56px 24px; }
    .stats-inner        { grid-template-columns: 1fr; }
    .stat-item          { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat-item:last-child { border-bottom: none; }
    .overview-grid      { grid-template-columns: 1fr; gap: 36px; }
    .services-grid      { grid-template-columns: 1fr 1fr; }
    .testimonials-grid  { grid-template-columns: 1fr; }
    .form-row           { grid-template-columns: 1fr; }
    .form-card          { padding: 24px 18px; }
    .footer-cols        { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom      { flex-direction: column; text-align: center; }
    .footer-legal       { flex-wrap: wrap; justify-content: center; }
    .form-nav           { flex-direction: column; }
    .btn-next-step, .btn-submit-form { margin-left: 0; width: 100%; justify-content: center; }
    .btn-prev-step      { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .modal-box { padding: 32px 18px; }
    .step-indicator { flex-direction: column; border-radius: var(--radius-sm); }
    .step-tab { border-right: none; border-bottom: 1px solid var(--gray-border); }
    .step-tab:last-child { border-bottom: none; }
}

/* ============================================================
   TESTIMONIALS — CAROUSEL
   ============================================================ */

/* Remove old grid layout for testimonials */
.testimonials-grid { display: none; }

/* Outer wrapper — gives space for arrows */
.carousel-outer {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 56px;
}

/* Hide overflow on the track window */
.carousel-track-wrap {
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* The sliding track */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide — full width of the wrapper */
.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    /* Override the card hover lift so it doesn't conflict with sliding */
    transform: none !important;
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-border);
    background: var(--white);
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.carousel-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.carousel-dot:hover  { background: var(--primary-light); }
.carousel-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

/* Pause control */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.carousel-pause {
    background: transparent;
    border: 1.5px solid var(--gray-border);
    color: var(--gray-mid);
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    letter-spacing: 0.04em;
}
.carousel-pause:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.carousel-pause.paused {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Progress bar under the active slide */
.carousel-progress-bar {
    height: 3px;
    background: var(--gray-light);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}
.carousel-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    transition: width linear;
}

/* Mobile — hide arrows, allow swipe */
@media (max-width: 600px) {
    .carousel-outer  { padding: 0 8px; }
    .carousel-arrow  { display: none; }
}

/* ============================================================
   VIDEO TUTORIALS SECTION
   ============================================================ */
.section-videos {
    background: var(--white);
    padding: 80px 0;
    border-top: 1px solid var(--gray-border);
}

.videos-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 40px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Video card */
.video-card {
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--gray-light);
}

/* Thumbnail / video area */
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--charcoal);
    overflow: hidden;
}

.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Overlay with play button (hidden once video starts) */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.38);
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.video-thumb video.playing + .video-overlay { opacity: 0; }

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    padding-left: 4px; /* optical centering of play icon */
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}
.video-thumb:hover .play-btn {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Hide overlay when native controls are clicked — handled via JS */
.video-overlay.hidden { display: none; }

/* Info below video */
.video-info {
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(139,38,53,0.07);
    padding: 3px 9px;
    border-radius: 2px;
    align-self: flex-start;
}

.video-info h4 {
    font-size: 0.95rem;
    color: var(--slate);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 4px;
}

.video-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

/* Developer note */
.videos-note {
    margin-top: 32px;
    font-size: 0.78rem;
    color: var(--gray-mid);
    background: var(--off-white);
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.65;
}
.videos-note i { color: var(--accent); margin-top: 1px; flex-shrink: 0; }
.videos-note code {
    font-family: monospace;
    background: var(--gray-light);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.82em;
    color: var(--slate);
}

@media (max-width: 900px) {
    .videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .videos-grid { grid-template-columns: 1fr; }
}
