/* =========================================
           GLOBAL CSS
           ========================================= */
:root {
    --chd-home-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0ea5e9 100%);
    --chd-home-blue-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 50%, #0ea5e9 100%);
    --chd-home-hero-overlay-grad: linear-gradient(180deg, rgba(31, 41, 55, 0.4) 0%, rgba(17, 24, 39, 0.8) 100%);
    --chd-home-bg-light: #ffffff;
    --chd-home-text-dark: #1f2937;
    --chd-home-text-muted: #6b7280;
    --chd-home-accent: #2563eb;
    --chd-home-accent-glow: rgba(168, 85, 247, 0.3);
    --chd-home-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --chd-home-shadow-lg: 0 20px 40px -10px rgba(99, 102, 241, 0.15);
    --chd-home-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    color: var(--chd-home-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* REUSABLE CONTAINER */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
           HEADER & NAVIGATION CSS
           ========================================= */
.chd-home-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    backdrop-filter: blur(12px);
    transition: var(--chd-home-transition);
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chd-home-header.chd-home-scrolled {
    padding: 8px 0;
    box-shadow: var(--chd-home-shadow);
    background: rgba(255, 255, 255, 0.95);
}

.chd-home-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--chd-home-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.chd-home-nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.chd-home-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--chd-home-text-muted);
    position: relative;
    padding: 4px 0;
    transition: var(--chd-home-transition);
}

.chd-home-nav-link:hover {
    color: #6366f1;
}

.chd-home-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--chd-home-primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.chd-home-nav-link:hover::after {
    width: 100%;
}

.chd-home-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chd-home-btn-search {
    color: var(--chd-home-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--chd-home-transition);
}

.chd-home-btn-search:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--chd-home-text-dark);
}

.chd-home-btn-primary {
    background: var(--chd-home-primary-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    transition: var(--chd-home-transition);
    position: relative;
    overflow: hidden;
}

.chd-home-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    filter: brightness(1.1);
}

.chd-home-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1001;
}

.chd-home-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--chd-home-text-dark);
    border-radius: 3px;
    transition: var(--chd-home-transition);
    transform-origin: center;
}

.chd-home-toggle.chd-home-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.chd-home-toggle.chd-home-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.chd-home-toggle.chd-home-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.chd-home-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--chd-home-bg-light);
    padding: 100px 24px 40px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: var(--chd-home-shadow-lg);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 24px;
    visibility: hidden;
}

.chd-home-mobile-menu.chd-home-active {
    transform: translateY(0);
    visibility: visible;
}

/* =========================================
           HERO SECTION CSS
           ========================================= */
.chd-home-hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 50px 0;
    background: #000;
}

.chd-home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('/assets/images/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
    animation: chd-home-hero-zoom-in 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes chd-home-hero-zoom-in {
    from {
        transform: scale(1.15);
    }

    to {
        transform: scale(1);
    }
}

.chd-home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--chd-home-hero-overlay-grad);
    z-index: 2;
}

.chd-home-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.chd-home-hero-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: chd-home-hero-float 30s infinite alternate ease-in-out;
}

.chd-home-hero-shape-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -150px;
}

.chd-home-hero-shape-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -150px;
    animation-delay: -8s;
}

@keyframes chd-home-hero-float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 120px);
    }
}

.chd-home-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chd-home-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.chd-home-hero-title {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 32px;
    letter-spacing: -3px;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.chd-home-hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.6;
    font-weight: 400;
}

.chd-home-hero-actions {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.chd-home-hero-btn-secondary {
    position: relative;
    background: var(--chd-home-primary-gradient);
    color: #fff;
    font-weight: 700;
    padding: 20px 52px;
    border-radius: 18px;
    font-size: 1.15rem;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.3);
    transition: var(--chd-home-transition);
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    z-index: 1;
}

.chd-home-hero-btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.chd-home-hero-btn-secondary:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 40px rgba(168, 85, 247, 0.4);
}

.chd-home-hero-btn-secondary:hover::after {
    opacity: 1;
}

.chd-home-hero-fade-up {
    animation: chd-home-hero-entry 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chd-home-hero-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chd-home-hero-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: chd-home-hero-ripple-eff 0.6s linear;
    pointer-events: none;
}

@keyframes chd-home-hero-ripple-eff {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================
           REFACTORED SPACING UTILS
           ========================================= */
.chd-home-section-standard {
    padding: 50px 0;
    position: relative;
}

.chd-home-badge-standard {
    margin-bottom: 12px;
}

.chd-home-title-standard {
    margin-bottom: 16px;
}

.chd-home-desc-standard {
    margin-bottom: 30px;
}

/* =========================================
           FEATURED SECTION CSS
           ========================================= */
.chd-home-featured-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 244, 255, 0.6) 100%);
    overflow: hidden;
}

.chd-home-featured-bg-shape {
    position: absolute;
    top: 10%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.chd-home-featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 40px;
}

.chd-home-featured-header-content {
    max-width: 700px;
}

.chd-home-featured-badge {
    display: inline-block;
    background: #eef2ff;
    color: #6366f1;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.1);
}

.chd-home-featured-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--chd-home-text-dark);
    letter-spacing: -1.5px;
}

.chd-home-featured-desc {
    font-size: 1.15rem;
    color: var(--chd-home-text-muted);
    line-height: 1.6;
}

.chd-home-featured-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.chd-home-swiper-prev,
.chd-home-swiper-next {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--chd-home-primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--chd-home-transition);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.25);
    border: none;
    z-index: 10;
}

.chd-home-swiper-prev:hover,
.chd-home-swiper-next:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1);
}

.chd-home-featured-swiper {
    padding-bottom: 40px;
    margin: 0 -20px;
    padding: 20px;
}

.chd-home-featured-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--chd-home-transition);
    height: 100%;
    opacity: 0;
    transform: translateY(40px);
    position: relative;
}

.chd-home-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1.5px;
    background: var(--chd-home-primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.15;
    transition: var(--chd-home-transition);
}

.chd-home-featured-card.chd-home-reveal {
    opacity: 1;
    transform: translateY(0);
}

.chd-home-featured-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -10px rgba(168, 85, 247, 0.25);
    filter: brightness(1.03);
}

.chd-home-featured-card:hover::before {
    opacity: 0.8;
}

.chd-home-featured-card-img {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.chd-home-featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chd-home-featured-card:hover .chd-home-featured-card-img img {
    transform: scale(1.15);
}

.chd-home-featured-card-body {
    padding: 32px;
}

.chd-home-featured-card-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--chd-home-text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.chd-home-featured-card-location {
    font-size: 1rem;
    color: var(--chd-home-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.chd-home-featured-card-location i {
    color: #a855f7;
}

.chd-home-featured-card-text {
    font-size: 1rem;
    color: var(--chd-home-text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

.chd-home-featured-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: #f8f9ff;
    color: var(--chd-home-text-dark);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--chd-home-transition);
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.chd-home-featured-card-btn:hover {
    background: var(--chd-home-primary-gradient);
    color: #fff;
    transform: scale(1.02);
    border-color: transparent;
}

/* =========================================
           STATES SECTION CSS
           ========================================= */
.chd-home-states-section {
    background: linear-gradient(180deg, rgba(243, 244, 255, 0.6) 0%, #ffffff 100%);
    overflow: hidden;
}

.chd-home-states-bg-blob {
    position: absolute;
    top: 20%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.chd-home-states-header {
    text-align: center;
    margin-bottom: 40px;
}

.chd-home-states-badge {
    display: inline-block;
    background: #fdf2f8;
    color: #ec4899;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.1);
}

.chd-home-states-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--chd-home-text-dark);
    letter-spacing: -2px;
}

.chd-home-states-desc {
    font-size: 1.15rem;
    color: var(--chd-home-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.chd-home-states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.chd-home-states-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--chd-home-transition);
    opacity: 0;
    transform: translateY(50px);
}

.chd-home-states-card.chd-home-reveal {
    opacity: 1;
    transform: translateY(0);
}

.chd-home-states-card:nth-child(1),
.chd-home-states-card:nth-child(2) {
    grid-column: span 2;
}

.chd-home-states-card:nth-child(7),
.chd-home-states-card:nth-child(8) {
    grid-column: span 2;
}

.chd-home-states-card:hover {
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.2);
}

.chd-home-states-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.chd-home-states-card:hover .chd-home-states-card-img {
    transform: scale(1.1);
}

.chd-home-states-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    z-index: 2;
    transition: var(--chd-home-transition);
}

.chd-home-states-card:hover .chd-home-states-card-overlay {
    background: linear-gradient(to top, rgba(99, 102, 241, 0.85) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
}

.chd-home-states-card-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.chd-home-states-card-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1;
    margin-right: 15px;
    transition: var(--chd-home-transition);
}

.chd-home-states-card:hover .chd-home-states-card-details {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.chd-home-states-card-name {
    display: block;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.chd-home-states-card-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

.chd-home-states-card-arrow {
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.3rem;
    transform: translateX(20px);
    opacity: 0;
    transition: var(--chd-home-transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.chd-home-states-card:hover .chd-home-states-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================
           STATS SECTION CSS
           ========================================= */
.chd-home-stats-section {
    background: linear-gradient(135deg, rgba(243, 244, 255, 0.4) 0%, rgba(253, 242, 248, 0.4) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.chd-home-stats-header {
    text-align: center;
    margin-bottom: 40px;
}

.chd-home-stats-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #1f2937;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chd-home-stats-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--chd-home-text-dark);
    letter-spacing: -1px;
}

.chd-home-stats-desc {
    font-size: 1.05rem;
    color: var(--chd-home-text-muted);
}

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

.chd-home-stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--chd-home-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    opacity: 0;
    transform: translateY(30px);
}

.chd-home-stats-card.chd-home-reveal {
    opacity: 1;
    transform: translateY(0);
}

.chd-home-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.chd-home-stats-icon {
    font-size: 1.8rem;
    background: var(--chd-home-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    display: inline-block;
}

.chd-home-stats-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--chd-home-text-dark);
    margin-bottom: 4px;
}

.chd-home-stats-label {
    font-size: 0.95rem;
    color: var(--chd-home-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
           HOW IT WORKS SECTION CSS (UPGRADED)
           ========================================= */
.chd-home-how-section {
    background: linear-gradient(180deg, #ffffff 0%, rgba(239, 246, 255, 0.6) 100%);
    overflow: hidden;
}

.chd-home-how-header {
    text-align: center;
    margin-bottom: 40px;
}

.chd-home-how-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.1);
}

.chd-home-how-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--chd-home-text-dark);
    letter-spacing: -1.5px;
}

.chd-home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.chd-home-how-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 22px;
    padding: 50px 32px;
    text-align: center;
    transition: var(--chd-home-transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    box-shadow: 0 10px 30px rgb(0 0 0 / 23%);
    z-index: 1;
}

/* Abstract Glow Shape */
.chd-home-how-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    top: -50px;
    left: -50px;
    z-index: -1;
    transition: var(--chd-home-transition);
}

/* Shine Sweep Effect */
.chd-home-how-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    transition: 0.8s ease;
    z-index: 2;
    pointer-events: none;
}

.chd-home-how-card.chd-home-reveal {
    opacity: 1;
    transform: translateY(0);
}

.chd-home-how-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

.chd-home-how-card:hover::after {
    left: 200%;
}

.chd-home-how-icon-wrapper {
    width: 84px;
    height: 84px;
    margin: 0 auto 28px;
    background: var(--chd-home-blue-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    position: relative;
    transition: var(--chd-home-transition);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    animation: chd-home-float 4s infinite ease-in-out;
}

@keyframes chd-home-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.chd-home-how-card:hover .chd-home-how-icon-wrapper {
    transform: scale(1.1) rotate(8deg);
    animation-play-state: paused;
}

.chd-home-how-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--chd-home-text-dark);
    margin-bottom: 12px;
}


/* =========================================
           PREMIUM FOOTER CSS
           ========================================= */
.chd-home-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    color: #f8fafc;
    padding-top: 60px;
    padding-bottom: 30px;
}

.chd-home-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.chd-home-footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--chd-home-blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.chd-home-footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.chd-home-footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #fff;
}

.chd-home-footer-links {
    list-style: none;
}

.chd-home-footer-links li {
    margin-bottom: 12px;
}

.chd-home-footer-links a {
    color: #94a3b8;
    transition: var(--chd-home-transition);
    font-size: 0.95rem;
    position: relative;
}

.chd-home-footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.chd-home-footer-socials {
    display: flex;
    gap: 15px;
}

.chd-home-footer-social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--chd-home-transition);
}

.chd-home-footer-social-btn:hover {
    background: var(--chd-home-blue-gradient);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
}

.chd-home-footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.chd-home-footer-bottom {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
           BACK TO TOP CSS
           ========================================= */
.chd-home-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--chd-home-blue-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.chd-home-back-to-top.chd-home-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chd-home-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

/* =========================================
           RESPONSIVE UTILS
           ========================================= */
@media (max-width: 1024px) {
    .chd-home-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .chd-home-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .chd-home-back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 992px) {
    .chd-home-nav {
        display: none;
    }

    .chd-home-btn-search {
        display: none;
    }

    .chd-home-toggle {
        display: flex;
    }
}

.chd-home-title-standard,
.chd-home-featured-title,
.chd-home-states-title,
.chd-home-stats-title,
.chd-home-how-title,
.chd-home-cta-title {
    background: linear-gradient(90deg, #43cdf6, #0ee945);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

section:nth-of-type(odd) {
    background: #ffffff;
}

section:nth-of-type(even) {
    background: #f1f5f9;
}

/* =========================================
   FULL RESPONSIVE FIX
   ========================================= */

@media (max-width: 1024px) {

    /* STATES GRID */
    .chd-home-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* STATS GRID */
    .chd-home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* HOW SECTION */
    .chd-home-how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    /* STATES GRID MOBILE */
    .chd-home-states-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .chd-home-states-card {
        height: 260px;
    }

    /* STATS GRID MOBILE */
    .chd-home-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* HOW IT WORKS MOBILE */
    .chd-home-how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chd-home-how-card {
        padding: 30px 20px;
    }

    /* HERO TEXT MOBILE FIX */
    .chd-home-hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .chd-home-hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* FEATURED HEADER STACK */
    .chd-home-featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .chd-home-featured-nav {
        align-self: flex-end;
    }
}

/* =========================================
   PREMIUM BLUE CTA
   ========================================= */

.chd-home-cta-premium {
    padding: 50px 0;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%) !important;
    position: relative;
    overflow: hidden;
}

.chd-home-cta-premium::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    filter: blur(80px);
}

.chd-home-cta-premium-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
    border-radius: 18px;
    padding: 20px;
}

.chd-home-cta-content {
    color: #fff;
}

.chd-home-cta-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.chd-home-cta-desc {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

.chd-home-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chd-home-btn-light {
    background: #ffffff;
    color: #1e40af;
    padding: 16px 38px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    transition: 0.3s ease;
}

.chd-home-btn-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.chd-home-btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    padding: 14px 38px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s ease;
}

.chd-home-btn-outline-light:hover {
    background: #ffffff;
    color: #1e40af;
}

.chd-home-cta-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    transition: 0.4s ease;
}

.chd-home-cta-image img:hover {
    transform: scale(1.03);
}

/* MOBILE */

@media (max-width: 992px) {
    .chd-home-cta-premium-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .chd-home-cta-buttons {
        justify-content: center;
    }

    .chd-home-cta-title {
        font-size: 2.2rem;
    }
}


/* ============================= */
/* MOBILE MENU LIST FIX */
/* ============================= */

/* Remove bullets + reset */
.chd-home-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

/* Spacing between items */
.chd-home-mobile-list li {
    margin-bottom: 14px;
}

/* Link styling */
.chd-home-mobile-link {
    display: block;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    padding: 8px 0;
    transition: 0.2s ease;
}

/* Hover effect */
.chd-home-mobile-link:hover {
    color: #2563eb;
    transform: translateX(4px);
}




/* =========================================================
                    CHURCHES PAGE CSS
========================================================= */


/* =========================================
           GLOBAL STYLES & VARIABLES
           ========================================= */
:root {
    --chd-churches-primary: #2563eb;
    --chd-churches-secondary: #0ea5e9;
    --chd-churches-navy: #0f172a;
    --chd-churches-bg-light: #f8fafc;
    --chd-churches-text-dark: #1e293b;
    --chd-churches-text-muted: #64748b;
    --chd-churches-border: #e2e8f0;
    --chd-churches-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #0ea5e9 100%);
    --chd-churches-glass: rgba(255, 255, 255, 0.7);
    --chd-churches-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    --chd-churches-radius: 8px;
    --chd-churches-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
           PREMIUM HERO & SEARCH SECTION
           ========================================= */
.chd-churches-hero {
    background: linear-gradient(135deg, #ff7e54 0%, #19a067 50%, #32e533 100%) !important;
    padding: 110px 0 30px;
    position: relative;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: visible;
    /* Changed to visible to allow absolute dropdown */
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    min-height: auto;
    /* Ensure height is determined by content, not fixed */
}

.chd-churches-badge {
    display: inline-block;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chd-churches-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #dbeafe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.chd-churches-hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 45px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Fixed Search Wrapper with Relative Positioning */
.chd-churches-search-wrapper {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1000;
    /* Ensure high stacking for dropdown */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: visible;
    /* Crucial for absolute dropdown visibility */
}

.chd-churches-search-bar {
    background: transparent;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chd-churches-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.chd-churches-input-group i {
    color: var(--chd-churches-primary);
    font-size: 1.1rem;
}

.chd-churches-search-input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--chd-churches-text-dark);
}

.chd-churches-state-picker {
    position: relative;
    display: none;
    width: 230px;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .chd-churches-state-picker {
        display: block;
    }
}

.chd-churches-state-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    color: var(--chd-churches-navy);
    font-weight: 700;
    font-size: 0.98rem;
    transition: var(--chd-churches-transition);
}

.chd-churches-state-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.chd-churches-state-trigger i {
    color: var(--chd-churches-primary);
    font-size: 0.88rem;
    transition: transform 0.25s ease;
}

.chd-churches-state-picker.is-open .chd-churches-state-trigger {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.chd-churches-state-picker.is-open .chd-churches-state-trigger i {
    transform: rotate(180deg);
}

.chd-churches-state-trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chd-churches-state-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    max-height: 340px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
    z-index: 1100;
}

.chd-churches-state-picker.is-open .chd-churches-state-menu {
    display: grid;
    gap: 6px;
}

.chd-churches-state-menu::-webkit-scrollbar {
    width: 8px;
}

.chd-churches-state-menu::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 999px;
}

.chd-churches-state-option {
    width: 100%;
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 13px 16px;
    border-radius: 8px;
    color: var(--chd-churches-navy);
    transition: var(--chd-churches-transition);
}

.chd-churches-state-option span {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
}

.chd-churches-state-option small {
    color: var(--chd-churches-text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.chd-churches-state-option:hover,
.chd-churches-state-option:focus-visible {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    outline: none;
}

.chd-churches-state-option.is-active {
    background: var(--chd-churches-gradient);
    color: #fff;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.chd-churches-state-option.is-active small {
    color: rgba(255, 255, 255, 0.78);
}

.chd-churches-search-btn {
    background: var(--chd-churches-gradient);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--chd-churches-transition);
}

.chd-churches-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ABSOLUTE SUGGESTIONS DROPDOWN (RESTORED & FIXED) */
.chd-churches-suggestions {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    animation: chdFadeIn 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--chd-churches-border);
    text-align: left;
}

@keyframes chdFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chd-churches-suggestion-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.chd-churches-suggestion-item:hover {
    background: #f8fafc;
}

.chd-churches-suggestion-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    object-fit: cover;
}

.chd-churches-suggestion-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--chd-churches-navy);
}

.chd-churches-suggestion-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--chd-churches-text-muted);
}

.chd-churches-hero-divider {
    width: 120px;
    height: 4px;
    background: #fff;
    opacity: 0.3;
    border-radius: 10px;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
}

/* =========================================
           MAIN CONTENT LAYOUT
           ========================================= */
.chd-churches-main {
    background: #f8fafc;
    padding: 70px 0;
    position: relative;
    z-index: 1;
    /* Keep below dropdown */
}

.chd-churches-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar Design */
.chd-churches-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--chd-churches-border);
    z-index: 10;
}

.chd-churches-filter-group {
    margin-bottom: 24px;
}

.chd-churches-filter-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--chd-churches-navy);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chd-churches-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chd-churches-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--chd-churches-text-dark);
    cursor: pointer;
    transition: 0.2s;
}

.chd-churches-checkbox-item:hover {
    color: var(--chd-churches-primary);
}

.chd-churches-checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--chd-churches-primary);
}

.chd-churches-sidebar-clear-btn {
    width: 100%;
    padding: 12px;
    background: #f8f9ff;
    color: var(--chd-churches-primary);
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
    margin-top: 10px;
}

.chd-churches-sidebar-clear-btn:hover {
    background: var(--chd-churches-primary);
    color: #fff;
}

/* Titles Styling */
.chd-churches-grid-title {
    background: linear-gradient(90deg, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 10px;
}

/* =========================================
           CHURCH GRID & ELEVATED CARDS
           ========================================= */
.chd-churches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
}

.chd-churches-card {
    background: #fff;
    border-radius: var(--chd-churches-radius);
    position: relative;
    transition: var(--chd-churches-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    opacity: 0;
    transform: translateY(30px);
}

.chd-churches-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.chd-churches-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.15);
}

.chd-churches-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--chd-churches-radius) + 2px);
    background: var(--chd-churches-gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--chd-churches-transition);
}

.chd-churches-card:hover::after {
    opacity: 0.4;
}

.chd-churches-card-img-box {
    position: relative;
    width: calc(100% - 20px);
    aspect-ratio: 16/10;
    border-radius: var(--chd-churches-radius);
    overflow: hidden;
    margin: 10px;
}

.chd-churches-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chd-churches-card:hover .chd-churches-card-img-box img {
    transform: scale(1.1);
}

.chd-churches-card-body {
    padding: 10px 15px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chd-churches-card-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--chd-churches-navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.chd-churches-card-loc {
    font-size: 0.9rem;
    color: var(--chd-churches-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.chd-churches-card-loc i {
    color: var(--chd-churches-primary);
}

.chd-churches-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chd-churches-tag {
    background: #f1f5f9;
    color: var(--chd-churches-navy);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.chd-churches-card-btn {
    background: #f8fafc;
    color: var(--chd-churches-primary);
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    transition: var(--chd-churches-transition);
    border: 1px solid var(--chd-churches-border);
}

.chd-churches-card:hover .chd-churches-card-btn {
    background: var(--chd-churches-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* =========================================
           MODERN LOAD MORE
           ========================================= */
.chd-churches-loader-wrapper {
    margin-top: 60px;
    text-align: center;
}

.chd-churches-glass-btn {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    padding: 14px 42px;
    border-radius: 60px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

/* Hover */
.chd-churches-glass-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

/* Active press */
.chd-churches-glass-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.chd-churches-glass-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-image: none;
    background: #e2e8f0;
    color: #94a3b8;
}

/* =========================================
           RESPONSIVE STYLES
           ========================================= */
@media (max-width: 1150px) {
    .chd-churches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .chd-churches-layout {
        grid-template-columns: 1fr;
    }

    .chd-churches-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        border-radius: 0;
        transition: 0.5s;
        z-index: 2000;
        padding-top: 60px;
    }

    .chd-churches-sidebar.active {
        left: 0;
    }

    .chd-churches-mobile-filter-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .chd-churches-grid {
        grid-template-columns: 1fr;
    }
}

.chd-home-hero-ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: chd-home-ripple-eff 0.6s linear;
    pointer-events: none;
}

@keyframes chd-home-ripple-eff {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.chd-churches-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

.chd-churches-sidebar-overlay.active {
    display: block;
}






/* ====================================================================
                    Church Details Page CSS
==================================================================== */

/* =========================================
           GLOBAL STYLES & VARIABLES
           ========================================= */
:root {
    --chd-detail-primary: #2563eb;
    --chd-detail-secondary: #0ea5e9;
    --chd-detail-navy: #0f172a;
    --chd-detail-bg-light: #f8fafc;
    --chd-detail-text-dark: #1e293b;
    --chd-detail-text-muted: #64748b;
    --chd-detail-border: #e2e8f0;
    --chd-detail-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 50%, #0ea5e9 100%);
    --chd-detail-glass: rgba(255, 255, 255, 0.8);
    --chd-detail-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    --chd-detail-radius: 24px;
    --chd-detail-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chd-detail-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--chd-detail-border);
}

/* =========================================
           HEADER MODIFICATION
           ========================================= */
.chd-detail-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: 0.3s;
}

.chd-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chd-detail-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--chd-detail-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chd-detail-nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.chd-detail-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chd-detail-text-muted);
    transition: 0.3s;
    position: relative;
}

.chd-detail-nav-link:hover,
.chd-detail-nav-link.active {
    color: var(--chd-detail-primary);
}

.chd-detail-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--chd-detail-primary);
    border-radius: 2px;
}

/* =========================================
           HERO / OVERVIEW SECTION (#overview)
           ========================================= */
#overview {
    padding-top: 100px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.chd-detail-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.chd-detail-hero-img-box {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--chd-detail-shadow);
}

.chd-detail-hero-img-box img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.chd-detail-hero-content {
    text-align: left;
}

.chd-detail-badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--chd-detail-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chd-detail-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--chd-detail-navy);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.chd-detail-hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.chd-detail-meta-tag {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--chd-detail-navy);
    border: 1px solid var(--chd-detail-border);
}

.chd-detail-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.chd-detail-btn-primary {
    background: var(--chd-detail-gradient);
    color: #fff;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.chd-detail-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.chd-detail-btn-outline {
    border: 2.5px solid var(--chd-detail-border);
    color: var(--chd-detail-navy);
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.chd-detail-btn-outline:hover {
    background: #f1f5f9;
    border-color: var(--chd-detail-primary);
    color: var(--chd-detail-primary);
}

/* =========================================
           ABOUT SECTION (#about)
           ========================================= */
.chd-detail-about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.chd-detail-glass-card {
    background: #fff;
    border: 1px solid var(--chd-detail-border);
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--chd-detail-shadow);
    position: sticky;
    top: 120px;
}

.chd-detail-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.chd-detail-info-row:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.chd-detail-info-icon {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    color: var(--chd-detail-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chd-detail-info-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--chd-detail-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.chd-detail-info-text p {
    font-weight: 700;
    color: var(--chd-detail-navy);
    margin: 0;
}

/* =========================================
           SERVICES SECTION (#services)
           ========================================= */
.chd-detail-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.chd-detail-service-card {
    background: #fbfcfe;
    border: 1px solid var(--chd-detail-border);
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

.chd-detail-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--chd-detail-primary);
    background: #fff;
    box-shadow: var(--chd-detail-shadow);
}

.chd-detail-service-day {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--chd-detail-navy);
    margin-bottom: 5px;
}

.chd-detail-service-time {
    font-size: 1.25rem;
    color: var(--chd-detail-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.chd-detail-service-type {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--chd-detail-border);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================
           MINISTRIES SECTION (#ministries)
           ========================================= */
.chd-detail-ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.chd-detail-ministry-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--chd-detail-border);
    transition: 0.3s;
}

.chd-detail-ministry-card:hover {
    transform: translateY(-8px);
    border-color: var(--chd-detail-primary);
    box-shadow: var(--chd-detail-shadow);
}

.chd-detail-ministry-icon {
    font-size: 2.5rem;
    background: var(--chd-detail-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* =========================================
           GALLERY SECTION (#gallery)
           ========================================= */
.chd-detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.chd-detail-gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    position: relative;
}

.chd-detail-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.chd-detail-gallery-item:hover img {
    transform: scale(1.1);
}

.chd-detail-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.3);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.chd-detail-gallery-item:hover .chd-detail-gallery-overlay {
    opacity: 1;
}

/* =========================================
           LOCATION SECTION (#location)
           ========================================= */
.chd-detail-location-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.chd-detail-map-box {
    height: 400px;
    background: #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.chd-detail-address-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--chd-detail-border);
}


/* =========================================
           FOOTER MODIFICATION (CHURCH SPECIFIC)
           ========================================= */
.chd-detail-footer {
    background: var(--chd-detail-navy);
    color: #fff;
    padding: 80px 0 40px;
}

.chd-detail-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 20px;
}

.chd-detail-footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: inline-block;
}

.chd-detail-footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--chd-detail-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chd-detail-footer-links {
    list-style: none;
}

.chd-detail-footer-links li {
    margin-bottom: 15px;
}

.chd-detail-footer-links a {
    color: #94a3b8;
    transition: 0.3s;
}

.chd-detail-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
           STICKY BOTTOM NAV (MOBILE)
           ========================================= */
.chd-detail-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid var(--chd-detail-border);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    z-index: 999;
}

.chd-detail-mobile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--chd-detail-text-muted);
}

.chd-detail-mobile-btn i {
    font-size: 1.2rem;
}

.chd-detail-mobile-btn.active {
    color: var(--chd-detail-primary);
}

/* =========================================
           RESPONSIVE STYLES
           ========================================= */
@media (max-width: 1024px) {

    .chd-detail-hero-grid,
    .chd-detail-about-grid,
    .chd-detail-location-grid {
        grid-template-columns: 1fr;
    }

    .chd-detail-hero-img-box img {
        height: 350px;
    }

    .chd-detail-nav-links {
        display: none;
    }

    .chd-detail-mobile-nav {
        display: flex;
    }

    .chd-detail-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chd-detail-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}



/* ================================================================
                    States Page CSS
================================================================ */

/* =========================================
           GLOBAL BRANDING & VARIABLES
           ========================================= */
:root {
    --navy: #0b1c2d;
    --blue: #2563eb;
    --gold: #f59e0b;
    --cream: #f8f6f2;
    --white: #ffffff;
    --text-dark: #0b1c2d;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --transition: all 0.3s ease;
}

/* =========================================
           HERO SECTION
           ========================================= */

.section-padding {
    padding: 40px 0;
}

.chd-states-hero {
    background: linear-gradient(to bottom, #91fff9 0%, #deeff4 100%) !important;
    padding: 100px 0 30px;
    text-align: center;
}

.chd-states-hero-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    display: block;
}

.chd-states-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 60px;
}

.chd-states-hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

.chd-states-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.chd-states-search-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 5px 5px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chd-states-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 1rem;
    font-family: inherit;
}

.chd-states-search-bar i {
    color: var(--text-muted);
    margin-right: 15px;
}

/* =========================================
           REGION FILTER TABS
           ========================================= */
.chd-states-filters {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    position: sticky;
    top: 63px;
    z-index: 100;
}

.chd-states-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.chd-states-tab {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.chd-states-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.chd-states-tab.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* =========================================
           STATES GRID
           ========================================= */
.chd-states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.chd-states-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chd-states-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.chd-states-card-icon {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 20px;
    opacity: 0.7;
}

.chd-states-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 5px;
}

.chd-states-card-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.chd-states-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.chd-states-card-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition);
    color: var(--navy);
}

.chd-states-card:hover .chd-states-card-btn {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* =========================================
           FEATURED STATES
           ========================================= */
.chd-states-featured {
    background: var(--cream);
}

.chd-states-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.chd-states-featured-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
}

.chd-states-featured-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 28, 45, 0.9) 0%, transparent 70%);
}

.chd-states-featured-content {
    position: relative;
    z-index: 2;
}

.chd-states-featured-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.chd-states-featured-count {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 20px;
    display: block;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
}

.btn-gold:hover {
    transform: scale(1.05);
}

/* =========================================
           QUICK STATS STRIP
           ========================================= */
.chd-states-stats {
    background: #eff6ff;
    padding: 40px 0;
    border-top: 1px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
}

.chd-states-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.chd-states-stat-item h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blue);
}

.chd-states-stat-item p {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* =========================================
           LOAD MORE
           ========================================= */
.chd-states-load-more {
    text-align: center;
    padding: 20px 0;
}

.btn-load {
    padding: 16px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 700;
    color: var(--navy);
    transition: var(--transition);
}

.btn-load:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* =========================================
           RESPONSIVE
           ========================================= */
@media (max-width: 1024px) {
    .chd-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chd-states-featured-grid {
        grid-template-columns: 1fr;
    }

    .chd-states-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .chd-states-grid {
        grid-template-columns: 1fr;
    }

    .chd-states-hero-title {
        font-size: 2.2rem;
    }
}



/* ==================================================================
                            About Page CSS
===================================================================*/

/* =========================================
           GLOBAL BRANDING & VARIABLES
           ========================================= */
:root {
    --navy: #0b1c2d;
    --blue: #2563eb;
    --gold: #f59e0b;
    --cream: #f8f6f2;
    --white: #ffffff;
    --text-dark: #0b1c2d;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --transition: all 0.3s ease;
}

.section-padding {
    padding: 50px 0;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}

/* =========================================
           SECTION 1: HERO
           ========================================= */
.chd-about-hero {
    background: linear-gradient(to bottom, #91fff9 0%, #deeff4 100%) !important;
    padding: 140px 0 80px;
    text-align: center;
}

.chd-about-hero-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: block;
}

.chd-about-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.chd-about-hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.chd-about-hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--navy);
}

/* =========================================
           SECTION 2: OUR STORY
           ========================================= */
.chd-about-story-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.chd-about-story-title {
    font-size: 3rem;
    color: var(--navy);
}

.chd-about-story-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Timeline */
.chd-about-timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.chd-about-timeline-item {
    position: relative;
    flex: 1;
}

.chd-about-timeline-item::before {
    content: '';
    position: absolute;
    top: -37px;
    left: 0;
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
}

.chd-about-timeline-year {
    display: block;
    font-weight: 800;
    color: var(--navy);
    font-size: 1rem;
}

.chd-about-timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* =========================================
           SECTION 3: THE PROBLEM
           ========================================= */
.chd-about-problem {
    background: var(--cream) !important;
}

.chd-about-problem-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.chd-about-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.chd-about-problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
}

.chd-about-problem-card i {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 20px;
    display: block;
}

.chd-about-problem-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.chd-about-problem-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
           SECTION 4: HOW IT WORKS
           ========================================= */
.chd-about-how {
    text-align: center;
}

.chd-about-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.chd-about-how-item {
    position: relative;
}

.chd-about-how-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--blue);
}

.chd-about-how-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.chd-about-how-item p {
    color: var(--text-muted);
}

/* =========================================
           SECTION 5: OUR VALUES
           ========================================= */
.chd-about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chd-about-value-card {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.chd-about-value-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
}

.chd-about-value-card h4 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.chd-about-value-card p {
    color: var(--text-muted);
}

/* =========================================
           SECTION 6: GROWTH STATS
           ========================================= */
.chd-about-stats {
    background: var(--navy) !important;
    color: var(--white);
    padding: 60px 0;
}

.chd-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.chd-about-stat-item h4 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.chd-about-stat-item p {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

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

    .chd-about-story-grid,
    .chd-about-problem-grid,
    .chd-about-how-grid,
    .chd-about-values-grid,
    .chd-about-team-grid {
        grid-template-columns: 1fr !important;
        gap: 50px;
    }

    .chd-about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .chd-about-cta-flex {
        flex-direction: column;
        gap: 20px;
    }

    .chd-about-timeline {
        flex-wrap: wrap;
        gap: 30px;
    }
}



/* ============================================================================
                                Contact Page CSS
=============================================================================*/

/* =========================================
           GLOBAL BRANDING & VARIABLES
           ========================================= */
:root {
    --navy: #0b1c2d;
    --blue: #2563eb;
    --gold: #f59e0b;
    --cream: #f8f6f2;
    --white: #ffffff;
    --text-dark: #0b1c2d;
    --text-muted: #64748b;
    --border: #eef2f6;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    text-align: center;
}

/* =========================================
           PREMIUM HOVER ANIMATION (SLIDE UP)
           ========================================= */
.premium-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.premium-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.premium-card:hover {
    color: var(--white) !important;
    border-color: transparent;
    transform: translateY(-5px);
}

.premium-card:hover::before {
    transform: translateY(0);
}

.premium-card:hover h4,
.premium-card:hover h3,
.premium-card:hover p,
.premium-card:hover i,
.premium-card:hover span {
    color: var(--white) !important;
}

.premium-card:hover .icon-circle {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* =========================================
           SECTION 1: HERO
           ========================================= */
.chd-contact-hero {
    background: linear-gradient(to bottom, #91fff9 0%, #deeff4 100%) !important;
    padding: 140px 0 60px;
    text-align: center;
}

.chd-contact-hero-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blue);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    display: block;
}

.chd-contact-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.chd-contact-hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

.chd-contact-hero-divider {
    width: 60px;
    height: 4px;
    background: var(--blue);
    margin: 0 auto;
    border-radius: 10px;
    opacity: 0.8;
}

/* =========================================
           SECTION 2: MAIN CONTACT SPLIT
           ========================================= */
.chd-contact-main-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

/* Info Card */
.chd-contact-info-card {
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.chd-contact-info-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.chd-contact-info-item:last-of-type {
    border-bottom: none;
}

.chd-contact-info-item i {
    font-size: 1.4rem;
    color: var(--blue);
    margin-top: 5px;
    width: 25px;
}

.chd-contact-info-text h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--navy);
}

.chd-contact-info-text p {
    font-size: 1rem;
    color: var(--text-muted);
}

.chd-contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.chd-contact-social-btn {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.1rem;
}

.chd-contact-social-btn:hover {
    background: var(--blue);
    color: #fff;
}

/* Form Card */
.chd-contact-form-card {
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

.chd-contact-form-group {
    margin-bottom: 25px;
}

.chd-contact-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.chd-contact-input,
.chd-contact-select,
.chd-contact-textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.chd-contact-input:focus,
.chd-contact-select:focus,
.chd-contact-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.chd-contact-textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    background: var(--blue);
    color: #fff;
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: var(--navy);
    transform: translateY(-3px);
}

#form-success {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    border: 1px solid #a7f3d0;
}

/* =========================================
           SECTION 3: QUICK CONTACT OPTIONS
           ========================================= */
.chd-contact-quick-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.chd-contact-quick-card {
    padding: 40px;
    text-align: center;
    border-radius: 16px;
    cursor: pointer;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--blue);
    font-size: 1.4rem;
    transition: 0.3s;
}

/* =========================================
           SECTION 4: MAP SECTION
           ========================================= */
.chd-contact-map-section {
    position: relative;
    height: 500px;
}

.chd-contact-map-frame {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2);
}

.chd-contact-map-info {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

/* =========================================
           SECTION 6: FINAL CTA
           ========================================= */
.chd-contact-cta {
    background: var(--navy) !important;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    border-radius: 30px;
}

.chd-contact-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    font-weight: 800;
}

.btn-gold:hover {
    transform: scale(1.05);
}

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

    .chd-contact-main-grid,
    .chd-contact-quick-strip {
        grid-template-columns: 1fr;
    }

    .chd-contact-map-info {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 40px 24px;
        text-align: center;
    }

    .chd-contact-map-section {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    .chd-contact-map-frame {
        height: 350px;
    }
}

/* Card text clamp for consistent heights */
.chd-churches-card-desc,
.chd-home-featured-card-text {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.chd-churches-card,
.chd-home-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chd-churches-card-body,
.chd-home-featured-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chd-churches-card-btn,
.chd-home-featured-card-btn {
    margin-top: auto;
}

.chd-detail-gallery-grid.single {
    grid-template-columns: minmax(260px, 520px);
    justify-content: center;
}

.chd-detail-gallery-item img {
    cursor: zoom-in;
}

.chd-detail-gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.chd-detail-gallery-modal.active {
    display: flex;
}

.chd-detail-gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.chd-detail-gallery-modal-content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 980px);
    max-height: 85vh;
    background: #0f172a;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.chd-detail-gallery-modal-content img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.chd-detail-gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chd-detail-service-card {
    align-items: flex-start;
}

.chd-detail-service-time {
    font-size: 1rem;
    line-height: 1.45;
    white-space: normal;
}

.chd-detail-location-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--chd-detail-text-muted);
    font-size: 0.95rem;
}

.chd-detail-location-meta i {
    color: var(--chd-detail-primary);
    margin-right: 8px;
}

/* =========================================
           Detail Page Enhancements
   ========================================= */
.chd-detail-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chd-detail-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--chd-detail-navy);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.12);
    transition: all 0.3s ease;
}

.chd-detail-hero-link i {
    color: var(--chd-detail-primary);
}

.chd-detail-hero-link:hover {
    background: #e0e7ff;
    transform: translateY(-1px);
}

.chd-detail-hero-fact {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.chd-detail-hero-fact-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chd-detail-primary);
    font-size: 0.95rem;
}

.chd-detail-hero-fact-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--chd-detail-text-muted);
    font-weight: 700;
}

.chd-detail-hero-fact-text p {
    margin: 4px 0 0;
    font-weight: 700;
    color: var(--chd-detail-navy);
    font-size: 0.95rem;
}

.chd-detail-highlight {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.chd-detail-highlight-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--chd-detail-navy);
    margin-bottom: 12px;
}

.chd-detail-highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chd-detail-highlight-chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--chd-detail-navy);
    font-size: 0.85rem;
    font-weight: 600;
}

.chd-detail-section-sub {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 30px;
    color: var(--chd-detail-text-muted);
    font-size: 1rem;
}

.chd-detail-location-extra {
    margin-bottom: 24px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.chd-detail-location-extra span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--chd-detail-text-muted);
    margin-bottom: 4px;
}

.chd-detail-location-extra p {
    margin: 0;
    color: var(--chd-detail-navy);
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 520px) {

    .chd-detail-hero-links {
        flex-direction: column;
        align-items: flex-start;
    }
}


p.chd-detail-hero-desc {
    padding-bottom: 10px;
}

.chd-detail-hero-fact-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf2ff;
    color: var(--chd-detail-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.chd-detail-hero-fact-text span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--chd-detail-text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.chd-detail-hero-fact-text p {
    margin: 0;
    font-weight: 700;
    color: var(--chd-detail-navy);
    font-size: 0.95rem;
    line-height: 1.3;
}

/* =========================================
           Hero Refresh + State Suggestions
   ========================================= */
.chd-states-hero,
.chd-about-hero,
.chd-contact-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.14), transparent 32%),
        radial-gradient(circle at 88% 22%, rgba(245, 158, 11, 0.12), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.08), transparent 34%),
        linear-gradient(135deg, #f5f9ff 0%, #fffdf7 44%, #eef6ff 100%) !important;
}

.chd-about-hero,
.chd-contact-hero {
    overflow: hidden;
}

.chd-states-hero {
    overflow: visible;
    z-index: 8;
}

.chd-states-hero::before,
.chd-about-hero::before,
.chd-contact-hero::before,
.chd-states-hero::after,
.chd-about-hero::after,
.chd-contact-hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.chd-states-hero::before,
.chd-about-hero::before,
.chd-contact-hero::before {
    width: 340px;
    height: 340px;
    left: -110px;
    top: -110px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.02) 68%, transparent 72%);
}

.chd-states-hero::after,
.chd-about-hero::after,
.chd-contact-hero::after {
    width: 300px;
    height: 300px;
    right: -100px;
    top: 40px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03) 66%, transparent 72%);
}

.chd-states-hero .container,
.chd-about-hero .container,
.chd-contact-hero .container {
    position: relative;
    z-index: 1;
}

.chd-states-hero-title,
.chd-about-hero-title,
.chd-contact-hero-title {
    text-shadow: 0 10px 30px rgba(11, 28, 45, 0.08);
}

.chd-states-search-wrapper {
    position: relative;
    z-index: 20;
}

.chd-states-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
    text-align: left;
    z-index: 40;
}

.chd-states-suggestion-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.chd-states-suggestion-item:hover,
.chd-states-suggestion-item:focus-visible {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    outline: none;
}

.chd-states-suggestion-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.chd-states-suggestion-title {
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.2;
}

.chd-states-suggestion-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.chd-states-suggestion-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chd-states-filters {
    position: sticky;
    z-index: 5;
}

@media (max-width: 640px) {
    .chd-states-suggestion-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .chd-states-suggestion-badge {
        align-self: flex-start;
    }
}

/* =========================================
           Shared Logo Image
   ========================================= */
.chd-home-logo,
.chd-home-footer-logo,
.chd-detail-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.chd-site-logo-img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
}

.chd-site-logo-img-footer {
    height: 66px;
}

.chd-site-logo-img-detail {
    height: 42px;
}

@media (max-width: 640px) {
    .chd-site-logo-img {
        height: 42px;
    }

    .chd-site-logo-img-footer {
        height: 54px;
    }

    .chd-site-logo-img-detail {
        height: 34px;
    }
}

/* =========================================
           Public Color Layer
   ========================================= */
:root {
    --chd-home-primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 46%, #f97316 100%);
    --chd-home-blue-gradient: linear-gradient(135deg, #06b6d4 0%, #2563eb 48%, #8b5cf6 100%);
    --chd-home-accent-glow: rgba(249, 115, 22, 0.22);
    --chd-churches-secondary: #8b5cf6;
    --chd-churches-gradient: linear-gradient(135deg, #0ea5e9 0%, #6366f1 48%, #f97316 100%);
    --chd-detail-secondary: #8b5cf6;
    --chd-detail-gradient: linear-gradient(135deg, #06b6d4 0%, #2563eb 46%, #8b5cf6 100%);
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.07), transparent 22%),
        radial-gradient(circle at 100% 4%, rgba(249, 115, 22, 0.08), transparent 24%),
        radial-gradient(circle at 12% 100%, rgba(16, 185, 129, 0.07), transparent 22%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.07), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #fffdf7 34%, #f6fffb 68%, #f7f4ff 100%);
}

.chd-home-header,
.chd-detail-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.chd-home-header.chd-home-scrolled,
.chd-detail-header.chd-home-scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px -28px rgba(37, 99, 235, 0.28);
}

.chd-home-featured-section,
.chd-home-states-section,
.chd-home-stats-section,
.chd-home-how-section,
.chd-churches-main,
.chd-states-featured,
.chd-states-stats,
.chd-about-problem,
.chd-about-how,
.chd-about-stats,
.chd-contact-map-section {
    position: relative;
    overflow: hidden;
}

.chd-home-featured-section {
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.95) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(246, 244, 255, 0.95) 100%);
}

.chd-home-states-section {
    background: linear-gradient(180deg, rgba(238, 249, 255, 0.96) 0%, rgba(255, 251, 241, 0.96) 100%);
}

.chd-home-stats-section {
    background: linear-gradient(180deg, rgba(255, 246, 250, 0.96) 0%, rgba(244, 251, 255, 0.96) 100%);
}

.chd-home-how-section {
    background: linear-gradient(180deg, rgba(244, 255, 250, 0.97) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.chd-home-cta-premium {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 25%, rgba(34, 197, 94, 0.22), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(251, 191, 36, 0.24), transparent 26%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 42%, #7c3aed 100%);
}

.chd-home-cta-premium-wrapper {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px -40px rgba(15, 23, 42, 0.55);
}

.chd-churches-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.17), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.15), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(139, 92, 246, 0.12), transparent 30%),
        linear-gradient(135deg, #f2fbff 0%, #fff8ef 45%, #f6f2ff 100%);
}

.chd-churches-hero-divider {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(249, 115, 22, 0.45), transparent);
}

.chd-churches-main {
    background: linear-gradient(180deg, #f7fbff 0%, #fffaf2 48%, #f6fff9 100%);
}

.chd-states-hero {
    background:
        radial-gradient(circle at 10% 18%, rgba(14, 165, 233, 0.18), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.16), transparent 26%),
        radial-gradient(circle at 55% 100%, rgba(124, 58, 237, 0.1), transparent 28%),
        linear-gradient(135deg, #f3fbff 0%, #fffdf4 44%, #f4f0ff 100%) !important;
}

.chd-about-hero {
    background:
        radial-gradient(circle at 10% 18%, rgba(16, 185, 129, 0.16), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(59, 130, 246, 0.14), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.12), transparent 28%),
        linear-gradient(135deg, #f2fffb 0%, #f5f9ff 52%, #fffaf2 100%) !important;
}

.chd-contact-hero {
    background:
        radial-gradient(circle at 12% 16%, rgba(236, 72, 153, 0.12), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(14, 165, 233, 0.14), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(135deg, #fff5fa 0%, #f4fbff 50%, #fffaf2 100%) !important;
}

.chd-states-featured {
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.96) 0%, rgba(247, 251, 255, 0.96) 54%, rgba(246, 243, 255, 0.96) 100%);
}

.chd-states-stats {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.96) 0%, rgba(255, 247, 250, 0.96) 100%);
}

.chd-about-story-grid {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 249, 255, 0.92) 52%, rgba(255, 248, 239, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    padding: 42px;
    box-shadow: 0 28px 70px -42px rgba(15, 23, 42, 0.18);
}

.chd-about-problem {
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.chd-about-how {
    background: linear-gradient(180deg, rgba(239, 249, 255, 0.96) 0%, rgba(246, 255, 251, 0.96) 100%);
}

.chd-about-stats {
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.22), transparent 24%),
        radial-gradient(circle at 86% 16%, rgba(249, 115, 22, 0.18), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 46%, #7c3aed 100%) !important;
}

.chd-contact-map-section {
    background: linear-gradient(180deg, rgba(242, 250, 255, 0.96) 0%, rgba(255, 248, 240, 0.96) 100%);
}

.chd-contact-cta {
    background:
        radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.24), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.22), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 42%, #7c3aed 100%) !important;
    box-shadow: 0 32px 80px -48px rgba(15, 23, 42, 0.65);
}

.chd-detail-section#overview {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.chd-detail-section#about {
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.chd-detail-section#services {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.97) 0%, rgba(248, 244, 255, 0.97) 100%) !important;
}

.chd-detail-section#ministries {
    background: linear-gradient(180deg, rgba(246, 255, 251, 0.97) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.chd-detail-section#gallery {
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%) !important;
}

.chd-detail-section#location {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.97) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
}

.chd-detail-section#contact {
    background: linear-gradient(180deg, rgba(248, 244, 255, 0.97) 0%, rgba(255, 248, 239, 0.97) 100%) !important;
}

.chd-home-featured-card,
.chd-home-states-card,
.chd-home-stats-card,
.chd-home-how-card,
.chd-churches-sidebar,
.chd-churches-card,
.chd-states-card,
.chd-about-problem-card,
.chd-about-value-card,
.chd-contact-info-card,
.chd-contact-form-card,
.chd-contact-quick-card,
.chd-contact-map-info,
.chd-detail-glass-card,
.chd-detail-service-card,
.chd-detail-ministry-card,
.chd-detail-address-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.93) 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px -36px rgba(30, 41, 59, 0.22);
}

.chd-home-featured-card:hover,
.chd-home-states-card:hover,
.chd-home-stats-card:hover,
.chd-home-how-card:hover,
.chd-churches-card:hover,
.chd-states-card:hover,
.chd-about-problem-card:hover,
.chd-about-value-card:hover,
.chd-contact-quick-card:hover,
.chd-detail-service-card:hover,
.chd-detail-ministry-card:hover {
    box-shadow: 0 28px 70px -34px rgba(37, 99, 235, 0.24);
}

.chd-home-stats-icon,
.chd-about-how-icon,
.chd-states-card-icon,
.chd-contact-social-btn:hover,
.chd-detail-ministry-icon {
    box-shadow: 0 18px 36px -18px rgba(37, 99, 235, 0.28);
}

.chd-churches-tag,
.chd-detail-highlight-chip {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.11) 52%, rgba(249, 115, 22, 0.14) 100%);
    border-color: rgba(99, 102, 241, 0.16);
}

.chd-detail-hero-img-box,
.chd-detail-map-box,
.chd-detail-gallery-item,
.chd-states-featured-card {
    box-shadow: 0 30px 80px -44px rgba(15, 23, 42, 0.34);
}

.chd-home-footer,
.chd-detail-footer {
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.16), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(249, 115, 22, 0.14), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 44%, #1d4ed8 100%);
}

@media (max-width: 768px) {
    .chd-about-story-grid {
        padding: 28px;
    }
}

/* =========================================
           Add Church Page
   ========================================= */
.chd-submit-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 72px;
    text-align: center;
    background:
        radial-gradient(circle at 10% 16%, rgba(14, 165, 233, 0.18), transparent 24%),
        radial-gradient(circle at 88% 20%, rgba(249, 115, 22, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 28%),
        linear-gradient(135deg, #f4fbff 0%, #fffaf2 48%, #f6f1ff 100%) !important;
}

.chd-submit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.14);
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    box-shadow: 0 18px 44px -28px rgba(37, 99, 235, 0.28);
}

.chd-submit-title {
    margin: 22px auto 18px;
    max-width: 860px;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.chd-submit-desc {
    max-width: 740px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
}

.chd-submit-section {
    padding: 60px 0 40px;
}

.chd-submit-shell {
    margin-top: -26px;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 40px;
    align-items: start;
}

.chd-submit-aside,
.chd-submit-form-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.chd-submit-info-card {
    padding: 40px;
}

.chd-submit-info-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.chd-submit-info-card p {
    color: #64748b;
    line-height: 1.75;
    font-size: 0.95rem;
}

.chd-submit-points {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.chd-submit-point {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.chd-submit-point:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.chd-submit-point i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    font-size: 1.1rem;
}

.chd-submit-point strong {
    display: block;
    color: #0f172a;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.chd-submit-point span {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chd-submit-form-card {
    padding: 45px;
}

.chd-submit-alert {
    margin-bottom: 18px;
    padding: 15px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.chd-submit-alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.chd-submit-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.chd-submit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.chd-submit-field {
    display: grid;
    gap: 8px;
}

.chd-submit-field-full {
    grid-column: 1 / -1;
}

.chd-submit-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.3px;
}

.chd-submit-field input,
.chd-submit-field select,
.chd-submit-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    padding: 14px 18px;
    color: #0f172a;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.chd-submit-field input:focus,
.chd-submit-field select:focus,
.chd-submit-field textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

.chd-submit-field textarea {
    min-height: 150px;
    resize: vertical;
}

.chd-submit-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.chd-submit-actions p {
    margin: 0;
    max-width: 440px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chd-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 18px 30px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.chd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

/* =========================================
           Thank You Page
   ========================================= */
.chd-thanks-page {
    padding: 150px 0 50px;
    background:
        radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.14), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.18), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #fffaf2 48%, #f7f3ff 100%) !important;
}

.chd-thanks-shell {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.chd-thanks-visual {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 28px;
}

.chd-thanks-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.16);
}

.chd-thanks-ring-one {
    animation: chd-thanks-spin 14s linear infinite;
}

.chd-thanks-ring-two {
    inset: 18px;
    border-style: dashed;
    animation: chd-thanks-spin-reverse 18s linear infinite;
}

.chd-thanks-core {
    position: absolute;
    inset: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e 0%, #14b8a6 48%, #2563eb 100%);
    color: #fff;
    font-size: 2.6rem;
    box-shadow: 0 26px 60px -24px rgba(34, 197, 94, 0.52);
    animation: chd-thanks-pulse 2.8s ease-in-out infinite;
}

.chd-thanks-spark {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #facc15 100%);
    box-shadow: 0 10px 20px -10px rgba(249, 115, 22, 0.6);
}

.chd-thanks-spark-a {
    top: 12px;
    left: 44px;
    animation: chd-thanks-float 3.6s ease-in-out infinite;
}

.chd-thanks-spark-b {
    top: 34px;
    right: 22px;
    background: linear-gradient(135deg, #8b5cf6 0%, #2563eb 100%);
    animation: chd-thanks-float 4.1s ease-in-out infinite 0.4s;
}

.chd-thanks-spark-c {
    bottom: 26px;
    left: 22px;
    background: linear-gradient(135deg, #22c55e 0%, #06b6d4 100%);
    animation: chd-thanks-float 3.8s ease-in-out infinite 0.8s;
}

.chd-thanks-spark-d {
    right: 40px;
    bottom: 8px;
    animation: chd-thanks-float 4.2s ease-in-out infinite 1.1s;
}

.chd-thanks-card {
    padding: 42px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 34px 80px -48px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(18px);
}

.chd-thanks-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.chd-thanks-title {
    margin: 18px 0 16px;
    display: block;
    text-align: center;
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: clamp(3.1rem, 6.6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    font-weight: 700;
    font-style: italic;
    color: #0f172a;
    animation: chd-thanks-title-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chd-thanks-title-word {
    display: inline-block;
    position: relative;
    padding: 0 0.18em 0.06em;
    background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 55%, #f97316 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 12px 30px rgba(59, 130, 246, 0.12);
    animation: chd-thanks-title-shimmer 6.5s ease-in-out infinite 1s;
}

.chd-thanks-title-word::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 0.12em;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.32), rgba(249, 115, 22, 0.18));
    filter: blur(4px);
    z-index: -1;
    opacity: 0.9;
    animation: chd-thanks-title-glow 4.2s ease-in-out infinite;
}

.chd-thanks-text {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1.08rem;
    line-height: 1.8;
}

.chd-thanks-text strong {
    color: #0f172a;
}

.chd-thanks-meta {
    margin: 28px auto 0;
    max-width: 620px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.chd-thanks-meta div {
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.chd-thanks-meta strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 0.95rem;
}

.chd-thanks-meta span {
    display: block;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.94rem;
}

.chd-thanks-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.chd-thanks-btn-primary,
.chd-thanks-btn-secondary {
    min-width: 210px;
    justify-content: center;
}

.chd-thanks-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-weight: 700;
}

@keyframes chd-thanks-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes chd-thanks-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes chd-thanks-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes chd-thanks-float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.08);
    }
}

@keyframes chd-thanks-title-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes chd-thanks-title-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chd-thanks-title-glow {

    0%,
    100% {
        opacity: 0.72;
        transform: scaleX(0.92);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.02);
    }
}

@media (max-width: 1024px) {
    .chd-submit-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .chd-submit-grid,
    .chd-thanks-meta {
        grid-template-columns: 1fr;
    }

    .chd-submit-form-card,
    .chd-submit-info-card,
    .chd-thanks-card {
        padding: 26px;
    }

    .chd-thanks-title {
        font-size: clamp(2.6rem, 10.5vw, 4rem);
    }

    .chd-submit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .chd-submit-btn {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================
           About + States Enhancement Layer
   ========================================= */
.chd-about-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 22px 18px 10px;
}

.chd-about-hero-title {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.chd-about-hero-desc {
    max-width: 700px;
}

.chd-about-hero-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.chd-about-hero .btn-primary,
.chd-about-hero .btn-outline {
    min-width: 190px;
    border-radius: 18px;
    box-shadow: 0 18px 40px -28px rgba(37, 99, 235, 0.35);
}

.chd-about-hero .btn-outline {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(10px);
}

.chd-about-hero-metrics {
    margin: 34px auto 0;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.chd-about-hero-metric {
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 48px -36px rgba(15, 23, 42, 0.22);
}

.chd-about-hero-metric strong {
    display: block;
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.chd-about-hero-metric span {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.chd-about-section-kicker,
.chd-states-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(99, 102, 241, 0.14);
    color: #4338ca;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    width: max-content;
}

.chd-about-section-head,
.chd-states-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}

.chd-about-section-title,
.chd-states-section-title {
    margin-top: 14px;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a !important;
}

.chd-about-section-copy,
.chd-states-section-copy {
    margin-top: 14px;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75;
}

.chd-about-section-head-light .chd-about-section-title,
.chd-states-section-head-light .chd-states-section-title {
    color: #fff;
}

.chd-about-section-head-light .chd-about-section-copy,
.chd-states-section-head-light .chd-states-section-copy {
    color: rgba(255, 255, 255, 0.78);
}

.chd-about-story-section {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.78) 0%, rgba(255, 250, 243, 0.82) 100%);
}

.chd-about-story-grid {
    gap: 56px;
    align-items: stretch;
    border-radius: 34px;
    overflow: hidden;
}

.chd-about-story-lead,
.chd-about-values-intro {
    display: grid;
    align-content: start;
    gap: 18px;
}

.chd-about-story-title {
    line-height: 1;
    letter-spacing: -0.04em;
}

.chd-about-story-text {
    display: grid;
    gap: 16px;
}

.chd-about-story-text p {
    margin-bottom: 0;
}

.chd-about-story-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.chd-about-story-stat {
    padding: 18px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.chd-about-story-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.chd-about-story-stat span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}

.chd-about-problem-card,
.chd-about-value-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.chd-about-problem-card::before,
.chd-about-value-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #f97316 100%);
    opacity: 0.9;
}

.chd-about-problem-card {
    padding: 34px;
}

.chd-about-problem-card i {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chd-about-problem-card:hover,
.chd-about-value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px -36px rgba(37, 99, 235, 0.28);
}

.chd-about-how {
    position: relative;
}

.chd-about-how-grid {
    gap: 24px;
}

.chd-about-how-item {
    padding: 34px 28px 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 250, 255, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 26px 60px -42px rgba(15, 23, 42, 0.22);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chd-about-how-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px -42px rgba(37, 99, 235, 0.26);
}

.chd-about-step-index {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(67, 56, 202, 0.72);
    letter-spacing: 0.12em;
}

.chd-about-how-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(249, 115, 22, 0.12) 100%);
    box-shadow: 0 18px 36px -26px rgba(37, 99, 235, 0.35);
}

.chd-about-story-grid-values {
    align-items: start;
}

.chd-about-value-card {
    padding: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.94) 100%);
}

.chd-about-stats {
    padding-top: 72px;
    padding-bottom: 72px;
}

.chd-about-stats-grid {
    gap: 18px;
    margin-top: 24px;
}

.chd-about-stat-item {
    padding: 28px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.45);
}

.chd-states-section-head {
    margin-bottom: 34px;
}

.chd-states-section-head-compact {
    margin-bottom: 28px;
}

.chd-states-directory {
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.86) 0%, rgba(255, 249, 242, 0.88) 100%);
}

.chd-states-search-wrapper {
    max-width: 720px;
}

.chd-states-search-bar {
    border-radius: 26px;
    padding: 10px 12px 10px 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 60px -38px rgba(15, 23, 42, 0.22);
}

.chd-states-search-bar input {
    padding: 16px 0;
}

.chd-states-filters {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px -28px rgba(15, 23, 42, 0.22);
}

.chd-states-tab {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.16);
}

.chd-states-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 18px 34px -24px rgba(79, 70, 229, 0.42);
}

.chd-states-grid {
    contain: layout paint;
}

.chd-states-card,
.chd-states-featured-card {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.chd-states-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 251, 255, 0.94) 100%);
    box-shadow: 0 22px 58px -42px rgba(15, 23, 42, 0.2);
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.chd-states-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 28px 68px -38px rgba(37, 99, 235, 0.22);
}

.chd-states-card-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
}

.chd-states-card-btn {
    border-radius: 14px;
    font-weight: 800;
}

.chd-states-featured-card {
    border-radius: 30px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.chd-states-featured-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 34px 84px -44px rgba(15, 23, 42, 0.34);
}

.chd-states-stats {
    padding-top: 58px;
    padding-bottom: 58px;
}

.chd-states-stats-grid {
    gap: 18px;
    margin-top: 24px;
}

.chd-states-stat-item {
    padding: 24px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 44px -34px rgba(15, 23, 42, 0.18);
}

.btn-load {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 16px 22px;
    border-radius: 18px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    box-shadow: 0 22px 50px -30px rgba(37, 99, 235, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-load:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 56px -28px rgba(79, 70, 229, 0.38);
}

@media (max-width: 1024px) {

    .chd-about-hero-metrics,
    .chd-about-story-stats,
    .chd-about-stats-grid,
    .chd-states-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .chd-about-hero-metrics,
    .chd-about-story-stats,
    .chd-about-stats-grid,
    .chd-states-stats-grid {
        grid-template-columns: 1fr;
    }

    .chd-about-hero-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .chd-about-how-item,
    .chd-about-value-card,
    .chd-about-problem-card,
    .chd-about-story-grid,
    .chd-states-card {
        border-radius: 22px;
    }
}

/* =========================================
           States Performance Reset
   ========================================= */
.chd-states-directory {
    background: linear-gradient(180deg, #fbfdff 0%, #fffaf4 100%);
}

.chd-states-search-bar {
    background: #fff;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.16);
}

.chd-states-filters {
    background: #fff;
    box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.16);
}

.chd-states-tab.active {
    box-shadow: 0 12px 24px -18px rgba(79, 70, 229, 0.34);
}

.chd-states-card,
.chd-states-featured-card,
.chd-states-stat-item {
    backface-visibility: visible;
}

.chd-states-card {
    contain: none;
    content-visibility: visible;
    transform: none;
    box-shadow: 0 12px 28px -22px rgba(15, 23, 42, 0.16);
}

.chd-states-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -22px rgba(37, 99, 235, 0.18);
}

.chd-states-featured-card {
    transform: none;
    box-shadow: 0 18px 36px -24px rgba(15, 23, 42, 0.24);
}

.chd-states-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px -24px rgba(15, 23, 42, 0.26);
}

.chd-states-stat-item {
    box-shadow: 0 12px 26px -20px rgba(15, 23, 42, 0.14);
}

/* ====================================================================
                    Booking System Styles
==================================================================== */
#booking {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.chd-booking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--chd-detail-glass);
    border: 1px solid var(--chd-detail-border);
    backdrop-filter: blur(20px);
    border-radius: var(--chd-detail-radius);
    padding: 50px;
    box-shadow: var(--chd-detail-shadow);
    position: relative;
    z-index: 2;
}

.chd-booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.chd-booking-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--chd-detail-navy);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.chd-booking-desc {
    color: var(--chd-detail-text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.chd-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.chd-booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chd-booking-field-full {
    grid-column: span 2;
}

.chd-booking-field label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--chd-detail-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chd-booking-input {
    background: #fff;
    border: 1px solid var(--chd-detail-border);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--chd-detail-text-dark);
    transition: var(--chd-detail-transition);
}

.chd-booking-input:focus {
    outline: none;
    border-color: var(--chd-detail-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.chd-booking-submit-btn {
    background: var(--chd-detail-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: var(--chd-detail-transition);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chd-booking-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

.chd-booking-submit-btn:active {
    transform: translateY(0);
}

/* Success Card */
.chd-booking-success-card {
    text-align: center;
    padding: 60px 40px;
}

.chd-booking-success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 25px;
    animation: chd-scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chd-booking-details-box {
    background: #f8fafc;
    border: 1px solid var(--chd-detail-border);
    border-radius: 18px;
    padding: 30px;
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
}

.chd-booking-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.chd-booking-detail-item:last-child {
    border-bottom: none;
}

.chd-booking-detail-label {
    font-weight: 600;
    color: var(--chd-detail-text-muted);
}

.chd-booking-detail-value {
    font-weight: 700;
    color: var(--chd-detail-navy);
}

@keyframes chd-scale-up {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chd-booking-grid {
        grid-template-columns: 1fr;
    }

    .chd-booking-field-full {
        grid-column: span 1;
    }

    .chd-booking-container {
        padding: 30px 20px;
    }
}

/* ====================================================================
                     Listing Plans & Pricing Styles
==================================================================== */

.chd-pricing-toggle-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 45px;
    background: #f1f5f9;
    padding: 8px 18px;
    border-radius: 99px;
    width: fit-content;
    margin: 0 auto 40px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.chd-pricing-toggle-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chd-pricing-toggle-label.active {
    color: #2563eb;
}

.chd-pricing-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.chd-pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.chd-pricing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.chd-pricing-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chd-pricing-switch input:checked+.chd-pricing-slider {
    background-color: #2563eb;
}

.chd-pricing-switch input:checked+.chd-pricing-slider:before {
    transform: translateX(22px);
}

.chd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 45px;
}

.chd-pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 35px 28px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
}

.chd-pricing-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
}

.chd-pricing-card.selected {
    border-color: #2563eb;
    border-width: 2px;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 10px 10px -5px rgba(37, 99, 235, 0.03);
}

.chd-pricing-card-selected-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    display: none;
    z-index: 10;
}

.chd-pricing-card.selected .chd-pricing-card-selected-badge {
    display: block;
}

.chd-pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.chd-pricing-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 48px;
}

.chd-pricing-card-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.chd-pricing-card-price .price-symbol {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    align-self: flex-start;
    margin-top: 2px;
}

.chd-pricing-card-price .price-val {
    line-height: 1;
}

.chd-pricing-card-price .price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.chd-pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chd-pricing-card-features li {
    font-size: 0.85rem;
    color: #475569;
    position: relative;
    padding-left: 24px;
    line-height: 1.45;
}

.chd-pricing-card-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 0.82rem;
}

/* ====================================================================
                  Proposal Page Premium SaaS Styles
==================================================================== */
.chd-proposal-page {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background-color: #f8fafc;
}

/* Hero Section */
.chd-proposal-page .chd-proposal-hero {
    background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0b0f19 100%) !important;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.chd-proposal-page .chd-proposal-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.chd-proposal-page .chd-proposal-hero-content {
    z-index: 2;
}

.chd-proposal-page .chd-proposal-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.chd-proposal-page .chd-proposal-hero-title {
    color: #ffffff !important;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.chd-proposal-page .chd-proposal-hero-desc {
    color: #cbd5e1 !important;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 35px;
    font-weight: 500;
}

.chd-proposal-page .chd-proposal-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chd-proposal-page .chd-proposal-hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.4;
}

.chd-proposal-page .chd-proposal-hero-bullets li i {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.chd-proposal-page .chd-proposal-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.chd-proposal-page .chd-proposal-hero-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 50px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chd-proposal-page .chd-proposal-hero-mockup:hover {
    transform: scale(1.03) rotate(0.5deg);
}

.chd-proposal-page .chd-proposal-hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
}

/* Pricing Section */
.chd-proposal-page .chd-proposal-pricing-section {
    padding: 100px 0 80px;
    background-color: #f8fafc;
}

.chd-proposal-page .chd-proposal-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.chd-proposal-page .chd-proposal-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.chd-proposal-page .chd-proposal-section-header p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.5;
}

.chd-proposal-page .chd-proposal-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.chd-proposal-page .chd-proposal-pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 45px 32px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.01), 0 2px 4px -1px rgba(15, 23, 42, 0.01);
}

.chd-proposal-page .chd-proposal-pricing-card:hover {
    transform: translateY(-8px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
}

.chd-proposal-page .chd-proposal-pricing-card.selected {
    border-color: #2563eb;
    border-width: 2px;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 10px 10px -5px rgba(37, 99, 235, 0.03);
}

.chd-proposal-page .chd-proposal-pricing-card-selected-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    display: none;
    z-index: 10;
}

.chd-proposal-page .chd-proposal-pricing-card.selected .chd-proposal-pricing-card-selected-badge {
    display: block;
}

/* Professional card accent */
.chd-proposal-page .chd-proposal-pricing-card.popular {
    border-color: #cbd5e1;
}

.chd-proposal-page .chd-proposal-pricing-card.popular:before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 99px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
    z-index: 9;
}

.chd-proposal-page .chd-proposal-pricing-card.popular.selected:before {
    display: none;
    /* Hide 'most popular' when selected badge is showing */
}

.chd-proposal-page .chd-proposal-pricing-card-premium-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chd-proposal-page .chd-proposal-pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.chd-proposal-page .chd-proposal-pricing-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 48px;
}

.chd-proposal-page .chd-proposal-pricing-card-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    display: flex;
    align-items: baseline;
}

.chd-proposal-page .chd-proposal-pricing-card-price .price-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    align-self: flex-start;
    margin-top: 4px;
}

.chd-proposal-page .chd-proposal-pricing-card-price .price-val {
    line-height: 1;
}

.chd-proposal-page .chd-proposal-pricing-card-price .price-period {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 4px;
}

.chd-proposal-page .chd-proposal-pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.chd-proposal-page .chd-proposal-pricing-card-features li {
    font-size: 0.88rem;
    color: #475569;
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.chd-proposal-page .chd-proposal-pricing-card-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 0.85rem;
}

/* Why Choose Us Section */
.chd-proposal-page .chd-proposal-why-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.chd-proposal-page .chd-proposal-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.chd-proposal-page .chd-proposal-why-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: left;
    transition: all 0.3s ease;
}

.chd-proposal-page .chd-proposal-why-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.chd-proposal-page .chd-proposal-why-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.chd-proposal-page .chd-proposal-why-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.chd-proposal-page .chd-proposal-why-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Process Timeline Section */
.chd-proposal-page .chd-proposal-process-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.chd-proposal-page .chd-proposal-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

.chd-proposal-page .chd-proposal-process-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
}

.chd-proposal-page .chd-proposal-step-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.chd-proposal-page .chd-proposal-process-step h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.chd-proposal-page .chd-proposal-process-step p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Trust Section */
.chd-proposal-page .chd-proposal-trust-section {
    padding: 40px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.chd-proposal-page .chd-proposal-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.chd-proposal-page .chd-proposal-trust-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
}

.chd-proposal-page .chd-proposal-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.chd-proposal-page .chd-proposal-trust-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}

.chd-proposal-page .chd-proposal-trust-badge i {
    color: #2563eb;
}

/* Form & Consultation Section */
.chd-proposal-page .chd-proposal-form-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.chd-proposal-page .chd-proposal-form-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

.chd-proposal-page .chd-proposal-form-info {
    position: sticky;
    top: 30px;
}

.chd-proposal-page .chd-proposal-form-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.6px;
}

.chd-proposal-page .chd-proposal-form-info p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.chd-proposal-page .chd-proposal-form-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chd-proposal-page .chd-proposal-form-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chd-proposal-page .chd-proposal-form-benefits li i {
    color: #2563eb;
    font-size: 1.25rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.chd-proposal-page .chd-proposal-form-benefits li strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.chd-proposal-page .chd-proposal-form-benefits li span {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.4;
}

.chd-proposal-page .chd-proposal-form-tip {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 16px;
    padding: 20px;
}

.chd-proposal-page .chd-proposal-form-tip h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #b45309;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chd-proposal-page .chd-proposal-form-tip p {
    font-size: 0.85rem;
    color: #b45309;
    line-height: 1.5;
    margin: 0;
}

.chd-proposal-page .chd-proposal-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.chd-proposal-page .chd-proposal-form-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
}

.chd-proposal-page .chd-proposal-form-card p {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 30px;
}

.chd-proposal-page .chd-proposal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.chd-proposal-page .chd-proposal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chd-proposal-page .chd-proposal-field-full {
    grid-column: span 2;
}

.chd-proposal-page .chd-proposal-field label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    letter-spacing: 0.3px;
}

.chd-proposal-page .chd-proposal-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.chd-proposal-page .chd-proposal-input::placeholder {
    color: #94a3b8;
}

.chd-proposal-page .chd-proposal-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.chd-proposal-page .chd-proposal-textarea {
    min-height: 130px;
    resize: vertical;
}

.chd-proposal-page .chd-proposal-pills-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.chd-proposal-page .chd-proposal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.chd-proposal-page .chd-proposal-pill {
    padding: 10px 20px;
    border-radius: 99px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chd-proposal-page .chd-proposal-pill:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
}

.chd-proposal-page .chd-proposal-pill.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.chd-proposal-page .chd-proposal-selected-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #b45309;
}

.chd-proposal-page .chd-proposal-selected-box strong {
    font-weight: 700;
}

.chd-proposal-page .chd-proposal-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
    text-align: center;
}

.chd-proposal-page .chd-proposal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
}

.chd-proposal-page .chd-proposal-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Success Card */
.chd-proposal-page .chd-proposal-success-box {
    text-align: center;
    padding: 40px 20px;
}

.chd-proposal-page .chd-proposal-success-box i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.chd-proposal-page .chd-proposal-success-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.chd-proposal-page .chd-proposal-success-box p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 25px;
}

.chd-proposal-page .chd-proposal-success-btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.chd-proposal-page .chd-proposal-success-btn:hover {
    background: #1d4ed8;
}

.chd-proposal-page .chd-proposal-error-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-weight: 700;
}

/* Modern Footer Enhancements */
.chd-home-footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    padding: 80px 0 40px !important;
}

.chd-home-footer-logo img {
    height: 40px;
    margin-bottom: 16px;
}

.chd-home-footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8 !important;
}

.chd-home-footer-title {
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.chd-home-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chd-home-footer-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.chd-home-footer-links a:hover {
    color: #ffffff !important;
}

.chd-home-footer-divider {
    border: 0;
    border-top: 1px solid #1e293b;
    margin: 40px 0 24px;
}

.chd-home-footer-bottom p {
    color: #64748b !important;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .chd-proposal-page .chd-proposal-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .chd-proposal-page .chd-proposal-form-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .chd-proposal-page .chd-proposal-hero-bullets {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .chd-proposal-page .chd-proposal-hero-title {
        font-size: 2.2rem;
    }

    .chd-proposal-page .chd-proposal-form-grid {
        grid-template-columns: 1fr;
    }

    .chd-proposal-page .chd-proposal-field-full {
        grid-column: span 1;
    }

    .chd-proposal-page .chd-proposal-form-card {
        padding: 30px 20px;
    }
}