/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #d4ecfc 0%, #e8f4e6 30%, #f0e8d0 70%, #e8f4e6 100%);
    color: #3a3a3a;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FLOATING CLOUDS ===== */
.cloud {
    position: fixed;
    background: url('images/cloud-small.png') no-repeat center/contain;
    width: 200px;
    height: 80px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: floatCloud 30s linear infinite;
}

.cloud-1 {
    top: 5%;
    left: -200px;
    animation-duration: 45s;
    width: 180px;
}

.cloud-2 {
    top: 20%;
    left: -200px;
    animation-duration: 60s;
    animation-delay: 10s;
    width: 240px;
    opacity: 0.25;
}

.cloud-3 {
    top: 50%;
    left: -200px;
    animation-duration: 55s;
    animation-delay: 25s;
    width: 160px;
    opacity: 0.3;
}

@keyframes floatCloud {
    0% {
        transform: translateX(-200px);
    }

    100% {
        transform: translateX(calc(100vw + 300px));
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #a8d8f0 0%, #c6e6f5 30%, #dff0d8 60%, #e8f4e6 100%);
    text-align: center;
    padding: 40px 20px 0;
    overflow: hidden;
    min-height: 500px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-banner {
    margin: 0 auto 20px;
    max-width: 420px;
    animation: gentleBounce 3s ease-in-out infinite;
}

.logo-banner-img {
    width: 100%;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.church-scene {
    margin: 0 auto;
    max-width: 380px;
}

.church-scene-img {
    width: 100%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

@keyframes gentleBounce {

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

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

/* Cloud Divider */
.cloud-divider {
    position: relative;
    width: 100%;
    margin-top: -140px;
    z-index: 3;
    line-height: 0;
}

.cloud-divider-img {
    width: 100%;
    min-height: 60px;
    object-fit: cover;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: linear-gradient(180deg, #e8f4e6, #dff0d8);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container--simple {
    justify-content: center;
}

.nav-link {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #4a6741;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-install {
    background: linear-gradient(135deg, #f5c842, #e8a820);
    color: #5a3e10 !important;
    border-radius: 25px;
    padding: 10px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(232, 168, 32, 0.45);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-install:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(232, 168, 32, 0.55);
    color: #5a3e10 !important;
}

.install-star {
    font-size: 1.1rem;
}

/* ===== FREE STORIES SECTION ===== */
.free-stories-section {
    background: linear-gradient(180deg, #dff0d8 0%, #c8e0b8 100%);
    padding: 50px 20px 60px;
    position: relative;
}

.free-badge-row {
    text-align: center;
    margin-bottom: 40px;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5c842, #e8a820);
    color: #5a3e10;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
    box-shadow: 0 3px 10px rgba(232, 168, 32, 0.4);
}

.free-stories-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #2c4a25;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.free-stories-subtitle {
    font-size: 1rem;
    color: #4a6a42;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

.free-stories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Story Cards */
.story-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(44, 74, 37, 0.13);
    border: 2px solid rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    box-shadow: 0 14px 36px rgba(44, 74, 37, 0.22);
}

.story-card-img-wrap {
    position: relative;
    line-height: 0;
    flex-shrink: 0;
}

.story-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.story-free-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f5c842, #e8a820);
    color: #5a3e10;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.story-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.story-card-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 0.88rem;
    color: #2c4a25;
    line-height: 1.3;
}

.story-card-summary {
    font-size: 0.75rem;
    color: #5a7a52;
    line-height: 1.5;
    flex: 1;
}

.story-card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.cat-tag {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3a5a32;
    background: rgba(106, 155, 90, 0.15);
    border: 1px solid rgba(106, 155, 90, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== TAGLINE ===== */
.tagline-section {
    background: linear-gradient(180deg, #dff0d8 0%, #c6deb8 100%);
    padding: 50px 20px 40px;
    text-align: center;
    position: relative;
}

.tagline {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: #2c4a25;
    text-transform: uppercase;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tagline-line {
    display: block;
}

/* ===== CATEGORIES ===== */
.categories-section {
    background: linear-gradient(180deg, #c6deb8 0%, #b8d4a8 50%, #c6deb8 100%);
    padding: 20px 20px 60px;
    position: relative;
}

.categories-header {
    text-align: center;
    margin-bottom: 30px;
}

.categories-title {
    margin-bottom: 10px;
}

.categories-subtitle {
    font-size: 0.95rem;
    color: #4a6a42;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto 24px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-6px) scale(1.05);
}

.category-circle {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.category-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.category-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item:hover .category-circle {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.category-label {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #2c4a25;
    line-height: 1.2;
}

.category-desc {
    font-size: 0.62rem;
    color: #4a6a42;
    line-height: 1.3;
    max-width: 100px;
}

.bible-note {
    text-align: center;
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.88rem;
    color: #3a5a32;
    background: rgba(255,255,255,0.45);
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    margin: 8px auto 0;
    display: block;
    max-width: fit-content;
}

.c-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.c-purple {
    background: linear-gradient(135deg, #b39ddb, #9575cd);
}

.c-green {
    background: linear-gradient(135deg, #66bb6a, #43a047);
}

.c-pink {
    background: linear-gradient(135deg, #ef5350, #e53935);
}

.c-teal {
    background: linear-gradient(135deg, #26a69a, #00897b);
}

.c-blue {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.c-lavender {
    background: linear-gradient(135deg, #ce93d8, #ab47bc);
}

.category-label {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #3a5a32;
    text-align: center;
    line-height: 1.3;
}

.cloud-divider-bottom {
    margin-top: 10px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: linear-gradient(180deg, #c6deb8 0%, #a8c898 50%, #8ab878 100%);
    padding: 50px 20px 60px;
    position: relative;
}

.section-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-transform: uppercase;
    color: #2c4a25;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.testimonial-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* Square rounded character avatars */
.char-avatar {
    border-radius: 16px !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
}

.char-name {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #2c4a25;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.55);
    padding: 2px 10px;
    border-radius: 20px;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1) rotate(3deg);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 0.82rem;
    color: #3a5a32;
    line-height: 1.4;
    font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #6a9b5a, #4a7a3a);
    padding-top: 0;
    overflow: hidden;
}


.footer-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px 20px;
    background: linear-gradient(180deg, rgba(74, 122, 58, 0.9), rgba(50, 90, 40, 0.95));
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
    margin: 0 auto 20px;
}

.footer-pill-btn {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 26px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.footer-pill-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

.footer-install-btn {
    background: linear-gradient(135deg, #f5c842, #e8a820) !important;
    color: #5a3e10 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(232, 168, 32, 0.45);
}

.footer-install-btn:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 6px 18px rgba(232, 168, 32, 0.55);
    color: #5a3e10 !important;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 12px;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-sparkle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.3) rotate(15deg);
    }
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE: TABLET (≤ 768px) ===== */
@media (max-width: 768px) {

    /* --- Hero --- */
    .hero-section {
        min-height: auto;
        padding: 30px 15px 0;
    }

    .logo-banner {
        max-width: 260px;
    }

    .church-scene {
        max-width: 240px;
    }

    .cloud-divider {
        margin-top: -40px;
    }

    /* --- Nav --- */
    .nav-install {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    /* --- Free Stories: horizontal scroll on mobile --- */
    .free-stories-section {
        padding: 36px 0 48px;
    }

    .free-badge-row {
        padding: 0 20px;
        margin-bottom: 28px;
    }

    .free-stories-grid {
        grid-template-columns: repeat(5, 260px);
        gap: 16px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 8px 20px 20px;
        max-width: 100%;
        /* Hide scrollbar but keep scrolling */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .free-stories-grid::-webkit-scrollbar {
        display: none;
    }

    .story-card {
        scroll-snap-align: start;
        min-width: 260px;
    }

    /* --- Categories: 3 columns on tablet --- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 10px;
    }

    .category-circle {
        width: 64px;
        height: 64px;
        min-width: 64px;
        min-height: 64px;
    }

    /* --- Testimonials: 3 cols --- */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .testimonial-card {
        max-width: unset;
    }

    .testimonial-avatar {
        width: 100%;
        height: auto;
    }

    .char-avatar {
        border-radius: 12px !important;
    }

    .testimonial-text {
        font-size: 0.72rem;
    }
}

/* ===== RESPONSIVE: MOBILE (≤ 480px / iPhone) ===== */
@media (max-width: 480px) {

    /* --- Hero --- */
    .hero-section {
        padding: 24px 12px 0;
        min-height: auto;
    }

    .logo-banner {
        max-width: 220px;
        margin-bottom: 12px;
    }

    .church-scene {
        max-width: 200px;
    }

    .cloud-divider {
        margin-top: -20px;
    }

    /* --- Tagline --- */
    .tagline {
        font-size: 1.6rem;
    }

    /* --- Free Stories: narrow cards, horizontal scroll --- */
    .free-stories-section {
        padding: 28px 0 40px;
    }

    .free-stories-grid {
        grid-template-columns: repeat(5, 220px);
        gap: 12px;
        padding: 8px 16px 16px;
    }

    .story-card {
        min-width: 220px;
    }

    .story-card-title {
        font-size: 0.82rem;
    }

    .story-card-summary {
        font-size: 0.7rem;
    }

    /* --- Categories: 3 columns on mobile --- */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 8px;
    }

    .category-circle {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
    }

    .category-label {
        font-size: 0.6rem;
    }

    .category-desc {
        font-size: 0.55rem;
    }

    /* --- Testimonials: 2 cols --- */
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .testimonial-card {
        max-width: unset;
        flex-direction: column;
        text-align: center;
    }

    .testimonial-avatar {
        width: 100%;
        height: auto;
        margin-bottom: 8px;
    }

    .char-avatar {
        border-radius: 12px !important;
    }

    /* --- Footer --- */
    .footer-pill-btn {
        font-size: 0.78rem;
        padding: 8px 18px;
    }

    .cs-store-badges {
        flex-direction: row;
    }

    .cs-store-img {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1400px) {
    .hero-section {
        padding-top: 60px;
        min-height: 600px;
    }

    .logo-banner {
        max-width: 500px;
    }

    .church-scene {
        max-width: 440px;
    }

    .categories-grid {
        gap: 36px;
    }

    .category-circle {
        width: 100px;
        height: 100px;
    }
}

/* ===== COMING SOON MODAL ===== */
.cs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 50, 25, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cs-modal-overlay.cs-open {
    opacity: 1;
    pointer-events: all;
}

.cs-modal-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(240,255,235,0.92));
    border-radius: 28px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.4);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cs-modal-overlay.cs-open .cs-modal-box {
    transform: scale(1) translateY(0);
}

.cs-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #555;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-modal-close:hover {
    background: rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.cs-modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: cs-bounce 1.2s ease infinite;
}

@keyframes cs-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cs-modal-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.6rem;
    color: #2c4a25;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cs-modal-text {
    font-size: 0.95rem;
    color: #4a6a42;
    line-height: 1.65;
    margin-bottom: 24px;
}

.cs-modal-text strong {
    color: #2c4a25;
}

.cs-store-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.cs-store-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cs-store-img:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 22px rgba(0,0,0,0.2);
}

.cs-modal-footer-note {
    font-size: 0.8rem;
    color: #7a9a72;
    margin-top: 4px;
}

/* ===== CONTACT MODAL ===== */

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(44, 74, 37, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.contact-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.contact-modal-box {
    position: relative;
    background: linear-gradient(160deg, #fffdf6 0%, #f0f8e8 60%, #e6f4fc 100%);
    border-radius: 28px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(44, 74, 37, 0.25), 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.contact-modal-overlay.open .contact-modal-box {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(74, 122, 58, 0.12);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    color: #4a6741;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    line-height: 1;
}

.contact-modal-close:hover {
    background: rgba(74, 122, 58, 0.22);
    transform: rotate(90deg) scale(1.1);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.contact-modal-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
    animation: gentleBounce 3s ease-in-out infinite;
}

.contact-modal-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.75rem;
    color: #2c4a25;
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
}

.contact-modal-subtitle {
    font-size: 0.88rem;
    color: #5a7a52;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: #4a6741;
    letter-spacing: 0.5px;
}

.contact-input,
.contact-textarea {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #3a3a3a;
    background: rgba(255, 255, 255, 0.75);
    border: 2px solid rgba(106, 155, 90, 0.28);
    border-radius: 14px;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    resize: none;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #a0b89a;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #6a9b5a;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(106, 155, 90, 0.15);
}

.contact-input.error,
.contact-textarea.error {
    border-color: #e55353;
    box-shadow: 0 0 0 4px rgba(229, 83, 83, 0.12);
}

.contact-textarea {
    min-height: 120px;
}

.contact-submit {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a3e10;
    background: linear-gradient(135deg, #f5c842, #e8a820);
    border: none;
    border-radius: 25px;
    padding: 14px 28px;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(232, 168, 32, 0.45);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
    border-radius: 25px;
}

.contact-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 22px rgba(232, 168, 32, 0.55);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 10px 0 6px;
}

.contact-success-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    animation: gentleBounce 2s ease-in-out infinite;
}

.contact-success-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.5rem;
    color: #2c4a25;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-success-text {
    font-size: 0.92rem;
    color: #5a7a52;
    line-height: 1.5;
    margin-bottom: 22px;
}

.contact-close-btn {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #6a9b5a, #4a7a3a);
    border: none;
    border-radius: 25px;
    padding: 12px 32px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 122, 58, 0.35);
    transition: all 0.3s ease;
}

.contact-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 122, 58, 0.45);
}

/* Error banner */
.contact-error {
    background: rgba(229, 83, 83, 0.1);
    border: 1px solid rgba(229, 83, 83, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    margin-top: 6px;
}

.contact-error p {
    font-size: 0.85rem;
    color: #c0392b;
}

/* Mobile */
@media (max-width: 480px) {
    .contact-modal-box {
        padding: 32px 22px 26px;
        border-radius: 22px;
    }

    .contact-modal-title {
        font-size: 1.45rem;
    }
}