* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* This prevents horizontal scrolling */
}

a {
    text-decoration: unset;
}

/* Responsive h1 */
h1 {
    /* clamp(minimum, preferred, maximum) */
    font-size: clamp(1.5rem, 5vw, 3rem);
}

h2 {
    /* clamp(minimum, preferred, maximum) */
    font-size: clamp(1.4rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

h3 {
    /* clamp(minimum, preferred, maximum) */
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4 {
    /* clamp(minimum, preferred, maximum) */
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.2;
    font-weight: 600;
    /* Usually needs a bit more weight since it's smaller */
    margin-bottom: 0.75rem;
}

/* 1. The entire scrollbar area */
::-webkit-scrollbar {
    width: 10px;
    /* Width for vertical scrollbars */
    height: 10px;
    /* Height for horizontal scrollbars */
}

/* 2. The track (the background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* 3. The thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
    /* Creates a "gap" effect around the thumb */
}

/* 4. Hover effect on the thumb */
::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.text-center {
    text-align: center;
}

.text-center.view-more {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem 0;
}

@media (min-width: 576px) {
    .container {
        width: 540px;
    }

    main {
        padding: unset;
    }
}

@media (min-width: 768px) {
    .container {
        width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1220px;
    }
}

/* forms css */
:root {
    --primary-green: #59a640;
    --primary-blue: #374268;
    --error-red: #cc0000;
    --border-color: #ccc;
    --focus-color: var(--primary-green);
}

.form-container {
    max-width: 1000px;
    width: 100%;
    background: white;
    padding: 50px 70px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- Header Styling --- */
.form-header h1 {
    color: var(--primary-blue);
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- Form Grid Layout --- */
.form-grid {
    display: grid;
    /* Two equal columns for desktop */
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin-bottom: 20px;
}

/* Makes the grid single column on small screens */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Form Group Styling --- */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
    /* Spans all columns in the grid */
}

label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
    font-size: 0.95em;
}

input,
textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--focus-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(89, 166, 64, 0.2);
}

/* --- Validation Styling --- */
input.invalid,
textarea.invalid {
    border-color: var(--error-red) !important;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.error-message {
    color: var(--error-red);
    font-size: 0.85em;
    margin-top: 5px;
    height: 1.2em;
    /* Reserve space to prevent layout jump */
}

/* --- Button Styling --- */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.submit-button:hover {
    background-color: #4a8c32;
}

.button-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    /* Placeholder icon styling */
    background-color: white;
    border-radius: 50%;
}

/* --- Footer Styling --- */
.form-footer {
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.privacy-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* forms css */

.footer-section a {
    display: flex;
}

.footer-container .social-icon img {
    height: 25px;
}

.section-background-gradient {
    background: linear-gradient(135deg, #2d9e4a 0%, #001f8f 100%);
}

/* .not-working {
    background: red;
    color: white !important;
} */

/* New Timeline Css Logic */
/* New Temp Timeline logic */
.timeline-circle-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 5px solid var(--primary-green);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    z-index: 3;
}

/* The Year (Positioned ABOVE the circle) */
.timeline-circle-year {
    position: absolute;
    left: 50%;
    bottom: 25px;
    /* Sits 25px above the center point */
    transform: translateX(-50%);
    /* Only horizontal centering */
    text-align: center;
    min-width: 150px;
    z-index: 3;
}

.timeline-circle-year p {
    font-size: 1.1em;
    font-weight: bold;
}

/* The Content (Positioned BELOW the circle) */
.timeline-circle-content {
    position: absolute;
    left: 50%;
    /* Depends on the circles width */
    top: 15px;
    /* Sits 25px below the center point */
    transform: translateX(-50%);
    /* Only horizontal centering */
    text-align: center;
    min-width: 150px;
    z-index: 3;
}

/* Target every second item */
.timeline-circle-container:nth-child(even) .timeline-circle-year {
    /* Move Year from Top to Bottom */
    bottom: auto;
    top: 25px;
}

.timeline-circle-container:nth-child(even) .timeline-circle-content {
    /* Move Content from Bottom to Top */
    top: auto;
    bottom: 15px;
    display: flex;
    flex-direction: column-reverse;
}

.timeline-circle-content-inner-line-container {
    /* Moves the container back by half its width */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers children (line and dot) horizontally */
    /* width: 2px; */
    /* Set width to match the line to avoid "invisible" width issues */
}

.timeline-circle-content-inner-line-vertical {
    width: 2px;
    height: 35px;
    background: var(--light-text);
}

.timeline-circle-content-inner-line-circle {
    width: 6px;
    height: 6px;
    background: black;
    border-radius: 50%;
}

/* EVERY SECOND ITEM (Even) */
.timeline-circle-container:nth-child(even)
    .timeline-circle-content-inner-line-container {
    flex-direction: column-reverse;
    /* Puts the dot on the opposite side */
    margin-top: 5px;
    /* Adjust spacing when below the circle */
}

/* For items where the content is ABOVE the timeline (Odd) */
.timeline-circle-container:nth-child(odd)
    .timeline-circle-content-inner-line-container {
    margin-bottom: 5px;
    /* Adjust spacing when above the circle */
}

@media screen and (max-width: 1024px) {
    /* 1. Reset the List Layout */
    .timeline-list {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px;
        /* Space for the vertical line and circles */
        gap: 30px;
        /* Vertical spacing between milestones */
    }

    /* 2. Vertical Green Dashed Line */
    .timeline-list::before {
        width: 4px;
        height: 100%;
        top: 0;
        left: 18px;
        /* Position line inside the padding */
        transform: none;
        background-image: linear-gradient(
            to bottom,
            var(--light-green) 50%,
            transparent 50%
        );
        background-size: 4px 15px;
        background-repeat: repeat-y;
    }

    /* 3. Reset the Item Container */
    .timeline-circle-container {
        display: block;
        /* Switch from flex to block for simple stacking */
        width: 100%;
        /* height: auto; */
        position: relative;
        height: fit-content;
        display: flex;
        flex-direction: column-reverse;
    }

    /* 4. Position the Circle on the Line */
    .timeline-circle {
        /* position: relative; */
        left: -20px;
        /* Align center of circle (30px) with line (20px) */
        top: 0;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
    }

    .timeline-circle-year,
    .timeline-circle-content {
        /* padding-left: 30px; */
        position: relative !important;
        inset: auto !important;
        /* Resets top, bottom, left, right all at once */
        transform: none !important;
        text-align: left !important;
        width: 100%;
        display: block !important;
        flex-direction: column !important;
        /* Ensures no column-reverse is active */
    }

    .timeline-circle-content p {
        /* display: none; */
    }

    /* 6. Hide the connector lines entirely */
    .timeline-circle-content-inner-line-container {
        display: none !important;
    }
}

@media screen and (max-width: 576px) {
    .logo img {
        height: 35px;
    }
}
