:root {
    --bg: #070707;
    --card: #0f0f10;
    --muted: rgba(255, 255, 255, 0.65);
    --accent: linear-gradient(90deg, #6EE7B7, #60A5FA);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.02);
    --focus: 0 8px 30px rgba(96, 165, 250, 0.08);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

body {
    margin: 0;
    font-family: 'Fredoka', sans-serif;
    background: #0d0d0d;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-align: justify;
}

.contact-section {
    display: flex;
    gap: 40px;
    padding: 60px;
    border-radius: 20px;
    background: #111827;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    width: 90%;
    max-width: 1200px;
    margin-bottom: 50px;
}

.left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left .section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.left h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.left p {
    color: #bbb;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* GIF Image Container and Styles */
.left .gif-container {
    width: 80%;
    max-width: 600px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.left .gif-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Logo and Naming Styles */
.logo-and-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.logo-and-name img {
    width: 220px;
    height: auto;
}

/* Social Heading Section */
.social-heading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.social-heading-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    margin-bottom: 5px;
}

.social-heading-section .get-in-touch {
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-heading-section .get-in-touch i {
    animation: moveArrow 1.5s infinite ease-in-out;
}

@keyframes moveArrow {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Social Icons Section */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.social-icon-wrapper .circle-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: pulse 4s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* Hover Effect */
.social-icon-wrapper:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.social-icon-wrapper:hover i {
    color: var(--accent);
    transition: color 0.3s ease;
}

.social-icon-wrapper i {
    font-size: 24px;
    color: #fff;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon-wrapper:nth-child(1) .circle-anim {
    animation-delay: 0s;
}

.social-icon-wrapper:nth-child(2) .circle-anim {
    animation-delay: 0.5s;
}

.social-icon-wrapper:nth-child(3) .circle-anim {
    animation-delay: 1s;
}

.social-icon-wrapper:nth-child(4) .circle-anim {
    animation-delay: 1.5s;
}

.social-icon-wrapper:nth-child(5) .circle-anim {
    animation-delay: 2s;
}

.social-icon-wrapper:nth-child(6) .circle-anim {
    animation-delay: 2.5s;
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    50% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        transform: scale(0.6);
        opacity: 0.8;
    }
}

.animated-line {
    height: 2px;
    background: var(--accent);
    width: 0;
    margin-top: 20px;
    margin-bottom: 30px;
    animation: expandLine 3s ease-out forwards;
    transform-origin: center;
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.right {
    flex: 1.2;
    background: #0f172a;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
}

.right h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.field {
    flex: 1;
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.006));
    color: #fff;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.chip input {
    display: none;
}

.chip.checked {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.08), rgba(110, 231, 183, 0.04));
    border-color: rgba(96, 165, 250, 0.28);
    color: #fff;
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.06);
}

.with-icon {
    position: relative;
}

.with-icon i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    pointer-events: none;
}

.with-icon input {
    padding-left: 38px;
}

.submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.submit-row button {
    background: linear-gradient(90deg, #60A5FA, #6EE7B7);
    color: #052028;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.12);
    transition: opacity 0.3s ease;
}

.req {
    color: #ffb4b4;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Thank you card styles */
.thank-you-card {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.thank-you-card.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.thank-you-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thank-you-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.thank-you-card .note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 20px;
}

/* Form fade out effect */
.right.hide-form form {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

/* Custom popup styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.invalid-email-popup {
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    animation: fadeIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.invalid-email-popup h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #60A5FA;
}

.invalid-email-popup p {
    margin-top: 0;
    color: var(--muted);
    line-height: 1.4;
}

.invalid-email-popup button {
    background: #60A5FA;
    color: #0d0d0d;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s ease;
}

.invalid-email-popup button:hover {
    background: #3B82F6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* FAQ Section Styles */
.faq-section {
    width: 90%;
    max-width: 800px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-item {
    background: #111827;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Why Us Section */
.why-us-section {
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
    padding: 40px;
    background: #111827;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.why-us-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.why-us-section p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.why-us-points {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.why-us-point {
    background: #0f172a;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.1);
}

.why-us-point i {
    font-size: 2.5rem;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.why-us-point h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.why-us-point p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* Footer Styles */
.footer {
    width: 100%;
    background: #0f172a;
    padding: 50px 20px;
    color: #ddd;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section {
    margin-bottom: 30px;
    width: 22%;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social-icons a {
    color: var(--muted);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social-icons a:hover {
    color: #60A5FA;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--muted);
}

/* Floating WhatsApp Button */

/* Floating WhatsApp Button Fix - Make sure this is present or defined earlier */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    /* Ensure it stays on top */
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Adjustments (Start from here) --- */
@media (max-width: 980px) {
    body {
        padding: 10px;
    }

    .contact-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }

    .left h1 {
        font-size: 2rem;
    }

    .left .gif-container {
        width: 100%;
        max-width: 350px;
    }

    .field {
        width: 100% !important;
    }

    .left .section-heading {
        font-size: 1.8rem;
    }

    /* Footer & Why Us Adjustments for mid-size screens (Tablets) */
    .footer {
        justify-content: space-around;
    }

    .footer-section {
        width: 45%;
        text-align: left;
    }

    .footer-bottom {
        width: 100%;
    }

    .why-us-points {
        justify-content: center;
    }

    .why-us-point {
        flex: 0 1 45%;
    }
}

@media (max-width: 600px) {

    /* FIX 1: Prevent horizontal scrolling on small screens */
    body {
        overflow-x: hidden;
        padding: 0;
        /* Remove body padding so elements can use full width */
    }

    /* FIX 2: Ensure main sections and contact form fit the screen */
    .contact-section {
        width: 100%;
        /* Use full width */
        max-width: none;
        padding: 30px 15px;
        box-sizing: border-box;
        /* Important: Padding is included in the width */
    }

    /* FIX 3: Ensure why-us and faq sections use full width */
    .why-us-section,
    .faq-section {
        width: 100%;
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    /* --- Existing Phone-specific styles (Adjusted) --- */
    .right h2,
    .left .section-heading,
    .why-us-section h2,
    .faq-section h2 {
        font-size: 1.5rem;
    }

    .options-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Why Us section: Force points to stack for better visibility on small phones */
    .why-us-points {
        flex-direction: column;
        gap: 15px;
    }

    .why-us-point {
        flex: 1 1 100%;
    }

    /* Footer: Stack all sections vertically */
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 30px 15px;
        box-sizing: border-box;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    @media (max-width: 600px) {
    .thank-you-card {
        position: relative; /* absolute → relative for small screens */
        height: auto;
        min-height: 300px; /* adjust if needed */
        padding: 30px 20px;
        top: 0;
        left: 0;
        border-radius: 16px;
        transform: scale(1); /* ensure animation works */
        opacity: 1;         /* make visible */
    }

    .right.hide-form form {
        opacity: 1;       /* form can stay visible if needed */
        transform: translateY(0);
        pointer-events: auto;
    }
}


    /* WhatsApp button: Smaller and slightly higher/further in */
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}