/* ==========================================================================
   Data Handling Section :: Redesigned with Your Brand Colors
   ========================================================================== */

/* -------------------------------------------------------------------------- */
/* 1. Section Setup & Theming
/* -------------------------------------------------------------------------- */

#data-handling {
    /* Applying your brand's primary font */
    font-family: var(--font-primary, sans-serif);
    
    background-color: var(--neutral-white);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background flares using your primary blue */
#data-handling::before, 
#data-handling::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.1; /* Made even more subtle */
    background: radial-gradient(circle, var(--primary-blue) 0%, rgba(255,255,255,0) 70%);
    filter: blur(20px); /* Adds to the softness */
}

#data-handling::before {
    top: -150px;
    right: -150px;
}

#data-handling::after {
    bottom: -150px;
    left: -150px;
}

/* -------------------------------------------------------------------------- */
/* 2. Typography
/* -------------------------------------------------------------------------- */

#data-handling h2 {
    text-align: center;
    font-size: clamp(2.25rem, 5vw, 2.75rem); /* Responsive font size */
    font-weight: 800;
    color: var(--neutral-dark);
    margin: 0 auto 4rem auto;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.step-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark);
}

.step-body p {
    margin: 0;
    line-height: 1.6;
    color: var(--neutral-medium);
    font-size: 0.95rem;
}

/* Semantic highlighting using your --primary-blue-subtle */
.text-highlight {
    text-decoration: none;
    background: linear-gradient(to top, var(--primary-blue-subtle) 60%, transparent 60%);
    border-radius: 2px;
}

/* -------------------------------------------------------------------------- */
/* 3. Steps Grid & Connecting Line
/* -------------------------------------------------------------------------- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Anchor for the connecting line */
    z-index: 1;
}

/* ✨ Connecting line, styled with your --neutral-border color */
@media (min-width: 992px) {
    .steps-grid::before {
        content: '';
        position: absolute;
        top: 44px; /* Vertically aligned with the icons */
        left: 10%;
        width: 80%; /* Spans across the grid */
        height: 2px;
        background: repeating-linear-gradient(
            to right,
            var(--neutral-border),
            var(--neutral-border) 4px,
            transparent 4px,
            transparent 10px
        );
        z-index: -1;
    }
}

/* -------------------------------------------------------------------------- */
/* 4. Step Card & Icon Styling
/* -------------------------------------------------------------------------- */

.step {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-border);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Softer initial shadow */
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Staggered entrance animation */
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.215, 0.610, 0.355, 1) forwards;
}

.step:nth-child(2) { animation-delay: 0.15s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue-light);
    /* Shadow combines a soft black shadow with your brand color for a "glow" effect */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 0 30px var(--primary-blue-subtle);
}

.step-icon {
    width: 6.5rem;  /* Increased from 5.5rem */
    height: 6.5rem; /* Increased from 5.5rem */
    background-color: var(--primary-blue);
    color: var(--neutral-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    /* Clean "punched out" look using your --neutral-light color */
    box-shadow: 0 0 0 6px var(--neutral-light); /* Adjusted for new size */
    transition: transform 0.4s ease, background-color 0.3s ease;
}

/* Rule 2: Increase the font size of the icon itself */
.step-icon .material-icons {
    font-size: 3.5rem; /* Increased from 2.5rem */
    line-height: 1;
}

/* ✨ Hover effect transitions to your --primary-blue-hover color */
.step:hover .step-icon {
    transform: scale(1.05);
    background-color: var(--primary-blue-hover);
}

/* -------------------------------------------------------------------------- */
/* 5. Animations
/* -------------------------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Disclaimer Section :: Redesigned
   ========================================================================== */

.disclaimer-section {
    /* Layout: Using CSS Grid for a clean, structured alignment */
    display: grid;
    grid-template-columns: auto 1fr; /* Icon column sized to content, text takes the rest */
    align-items: center; /* Vertically aligns the icon with the entire text block */
    gap: 2rem;

    /* Sizing & Spacing */
    max-width: 800px;
    margin: 6rem auto; /* Gives the section ample space */
    padding: 2.5rem 0;

    /* Visuals: Framed by simple, elegant borders instead of a box */
    border-top: 1px solid var(--neutral-border);
    border-bottom: 1px solid var(--neutral-border);
    font-family: var(--font-primary, sans-serif);
}

/* A styled container for the icon */
.disclaimer-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--neutral-light); /* Soft background */
    border-radius: 50%;
}

.disclaimer-icon-wrapper .material-icons {
    font-size: 36px;
    color: var(--neutral-medium-dark); /* Muted, serious color */
}

/* The text content container */
.disclaimer-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0 0 0.5rem 0; /* Tighter margin for a cleaner look */
}

.disclaimer-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-medium);
    margin: 0;
}

/* Space between the two paragraphs */
.disclaimer-content p + p {
    margin-top: 1rem;
}

/* Styling for the <strong> tag to make it stand out clearly */
.disclaimer-content strong {
    font-weight: 700;
    color: var(--neutral-dark);
}

/* ==========================================================================
   Contact Us Section
   ========================================================================== */

.contact-section {
    max-width: 1024px;
    margin: 6rem auto;
    padding: 3rem;
    background-color: var(--neutral-white);
    border: 1px solid var(--neutral-border);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);

    /* --- ADD THIS LINE --- */
    scroll-margin-top: 6rem; /* Adjust this value if needed */
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--neutral-medium-dark);
    max-width: 500px;
    margin: 0 auto;
}

/* Re-using your existing styles by targeting the new form */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-medium-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--neutral-border);
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: #F9FAFB;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: var(--neutral-white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-subtle);
}

.contact-form ::placeholder {
    color: #9CA3AF;
    opacity: 1;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    cursor: pointer;
}

/* Grid layout for the form columns */
.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Ensure the textarea takes up the full height of its column */
.contact-form .form-group-full,
.contact-form .form-group-full textarea {
    height: 100%;
}
.contact-form .form-group-full {
    display: flex;
    flex-direction: column;
}
.contact-form .form-group-full textarea {
    flex-grow: 1;
}

.contact-form .form-submit-group {
    margin-top: 2rem;
    text-align: right;
}

.contact-form button[type="submit"] {
    padding: 1rem 2.5rem; /* More padding for a primary action button */
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-white);
    background-image: linear-gradient(to right, var(--primary-blue), var(--primary-blue-hover));
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(29, 78, 216, 0.35);
}

/* --- Three-Column Pricing Section --- */

.content-section {
    max-width: 1280px;
    margin: 4rem auto; /* Adds vertical spacing between sections */
    padding: 0 2rem;
}

.content-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Grid container for the three cards */
.pricing-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch; /* Ensures cards are the same height */
}

/* Styling for each individual pricing card */
.pricing-card-three {
    background-color: var(--neutral-white);
    border: 1px solid var(--neutral-border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Needed for the badge */
}

.pricing-card-three:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Card Heading */
.pricing-card-three h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-top: 0;
    margin-bottom: 0.5rem;
    background: none; /* Override the global h-tag gradient */
    -webkit-text-fill-color: initial;
}

/* Price Display */
.price-three {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.price-three span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-medium);
    margin-left: 0.5rem;
}

.price-description {
    color: var(--neutral-medium-dark);
    font-size: 1rem;
    margin-bottom: 2rem;
    min-height: 40px; /* Ensures alignment even if text wraps */
}

/* Feature List */
.pricing-card-three ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.pricing-card-three li {
    font-size: 1rem;
    color: var(--neutral-medium-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card-three li::before {
    content: '✓';
    flex-shrink: 0;
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Button in Cards */
.pricing-card-three .button-primary {
    display: block;
    text-align: center;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
    border: 1px solid var(--primary-blue-light);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pricing-card-three .button-primary:hover {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
}

/* "Most Popular" Recommended Card Styling */
.recommended-three {
    border-color: var(--primary-blue);
    border-width: 2px;
    transform: scale(1.05); /* Makes it slightly larger */
}

.recommended-three:hover {
    transform: scale(1.05) translateY(-10px); /* Keeps it larger on hover */
}

/* Highlighted button for the recommended plan */
.recommended-three .button-primary {
    background-color: var(--primary-blue);
    color: var(--neutral-white);
}

.recommended-three .button-primary:hover {
    background-color: var(--primary-blue-hover);
}


/* "Most Popular" Badge */
.badge-three {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-image: linear-gradient(to right, var(--primary-blue), var(--primary-blue-hover));
    color: var(--neutral-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- Responsive Adjustments for Pricing Section --- */
@media (max-width: 900px) {
    .pricing-grid-three {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
    }

    .recommended-three {
        transform: scale(1); /* Reset scaling for stacked layout */
    }

    .recommended-three:hover {
        transform: translateY(-10px); /* Re-apply hover effect */
    }
}


@media (max-width: 640px) {

    /* --- Contact Section --- */

    .contact-section {
        /* Adjust margin to ensure it has space from screen edges */
        margin: 4rem 1rem; 
        /* Adjust padding for a better feel on mobile */
        padding: 2rem 1.5rem;
    }

    .contact-header h2 {
        font-size: 2rem; 
    }

    .contact-header p {
        font-size: 1rem;
        /* max-width is not needed when the parent has padding */
        max-width: 100%;
    }

    .contact-form .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form .form-submit-group {
        text-align: center;
    }

    .contact-form button[type="submit"] {
        width: 100%; 
        padding: 1rem 2rem;
    }


    /* --- Disclaimer Section --- */

    .disclaimer-section {
        /* Use margin for side spacing, and padding for internal spacing */
        margin: 4rem 1rem;
        padding: 2rem 1rem; /* Consistent internal padding */
        grid-template-columns: 1fr;
        text-align: center; 
        gap: 1.5rem; 
    }

    .disclaimer-icon-wrapper {
        margin: 0 auto; 
    }
    
    .disclaimer-content h3,
    .disclaimer-content p {
        /* Padding is now on the parent, so not needed here */
        padding: 0; 
    }
}