.header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: clamp(10%, 2vw, 50%);
    align-items: center;
    margin: auto;
}

header {
    position: sticky;
    top: 10px;
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 0.5s ease;
    z-index: 999;
    width: 70%;
}

header.homepage {
    position: fixed;
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 0.5s ease;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
}

.homepage.header a {
    color: white;
}

.header a {
    color: black;
    text-decoration: none;
}

.header a.custom-button {
    color: white;
}

header.scrolled {
    background-color: lightgray;
}

nav.buttons a {
    margin: 0 20px;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

.imgLogo {
    max-height: 100px;
}

.hr-feature-container {
    display: flex;
    justify-content: space-between;
    background-color: white;
    align-items: center;
    width: 80%;
    margin: 5%;
    border-radius: 5px;
}

.hr-feature-background {
    background-color: black;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hr-feature-text,
.track-feature-text {
    padding: 3rem;
    width: 50%;
    text-decoration: none;
}

.hr-feature-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: fill;
}

.hr-feature-image {
    width: 45%;
    height: auto;
    object-fit: cover;
}

.hr-feature-text li {
    list-style: url("/.resources/pitstop-landing-magnolia/webresources/icons/hrListIcon.svg");
    margin: 10px;
}

footer {
    font-size: 14px;
    margin: 5% 10%;
}

footer h3 {
    font-weight: bold;
    font-size: 22px;
}

.newsletter-wrapper h3 {
    color: #4F46E5;
}

footer a {
    text-decoration: none;
    color: black;
}

.track-feature-image,
.track-feature-text {
    flex: 1 1 50%;
}

.track-feature-stats {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 100px);
    gap: 10px;
}

.track-feature-image img,
.payroll-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.track-feature-text {
    padding: 100px;
}

.payroll-left,
.payroll-right {
    flex: 1 1 50%;
}

.payroll {
    padding: 5% 10%;
    background-color: black;
    color: white;
}

.payroll-container {
    padding-bottom: 5%;
}

.payroll-left,
.payroll-left h2 {
    font-weight: bold;
}

.testimonial-section {
    padding: 50px 20px;
}

.testimonial-card {
    background: #000;
    color: #fff;
    padding: 20px 30px;
    border-radius: 5px;
    box-sizing: border-box;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: space-between;
    font-size: 20px;
    cursor: grab;
    max-width: 600px;
}

.stars {
    color: #ffd700;
    font-size: 25px;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 15px;
}

.reviewer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.review {
    margin-bottom: 20px;
}

.swiper-buttons {
    background: #ddd;
    border: none;
    width: 40px;
    height: 40px;
    padding: 10px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 575px) {
    .testimonial-card {
        padding: 15px 20px;
        font-size: 16px;
        min-width: auto;
    }

    .swiper-wrapper {
        padding: 0;
    }

    .stars {
        font-size: 20px;
    }

    .reviewer-info {
        font-size: 13px;
    }

    .reviewer-image {
        width: 40px;
        height: 40px;
    }
}

.feature-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    background: #fff;
    border-radius: 10px;
}

.feature-grid-card img {
    max-width: 95%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.feature-grid-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-grid-card p {
    font-size: 0.85rem;
    color: black;
}

.feature-grid-row {
    margin-bottom: 10%;
}

.section-form {
    margin: 5%;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.contact-form-info, .contact-form {
    width: 40%;
}

.contact-form-info {
    margin-bottom: 30px;
}

#formErrorsDisplay {
    display: none;
}

.form-row .form-item {
    display: flex;
    gap: 10px;
}

.form-item label {
    margin-bottom: 0;
}

.button-wrapper input {
    padding: 15px 25px;
    font-size: 14px;
    color: white;
    background-color: #4F46E5;
    border-radius: 5px;
    border-width: 1px;
    border-color: #4F46E5;
}

.button-wrapper {
    text-align: right;
}

@media (max-width: 1024px) {
    .hr-feature-container,
    .track-feature-container,
    .payroll-container, .section-form {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .hr-feature-text,
    .track-feature-text, .contact-form-info, .contact-form {
        width: 100%;
        padding: 1rem;
    }

    .hr-feature-image,
    .track-feature-image {
        width: 80%;
        margin-top: 1rem;
    }

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

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav.buttons {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 998;
    }

    nav.buttons.show {
        display: flex;
    }

    nav.buttons.show a {
        color: black;
    }

    nav.buttons.show .custom-button {
        color: white;
    }

    nav.buttons a {
        margin: 10px 0;
        color: black;
    }

    header {
        width: 100%;
        padding: 10px;
    }

    .logo img {
        max-height: 60px;
    }
}

.newsletter-wrapper fieldset, .hero-form-wrapper fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.newsletter-wrapper .form-row, .newsletter-wrapper label, .hero-form-wrapper .form-row, .hero-form-wrapper label {
    margin: 0;
}

.newsletter-wrapper .button-wrapper input, .hero-form-wrapper .button-wrapper input {
    padding: 12px 24px;
    font-size: 14px;
    color: white;
    background-color: #4F46E5;
    border-radius: 5px;
    border-width: 1px;
    border-color: #4F46E5;
    text-decoration: none;
}

.hero-form-wrapper fieldset {
    justify-content: space-between;
    width: 100%;
}

.hero-form-wrapper .form-row {
    flex: 1;
}

.hero-form-wrapper input[type="email"] {
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-form-wrapper fieldset {
        flex-direction: column;
        align-items: center;
    }

    .hero-form-wrapper input[type="submit"] {
        font-size: 14px;
    }
}

/* Center the modal prominently */
.modal-dialog.modal-dialog-centered {
    margin-top: 4rem !important;
    margin-right: auto;
    margin-left: auto;
    max-width: 400px;
}

.modal-content {
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
    border: none;
    padding: 32px 24px 16px 24px;
    background: #fff;
}

.modal-header {
    background: #212121;
    padding-bottom: 12px;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    justify-content: center;
    text-align: center;
}

/* Success modal header */
.modal-header.success {
    background: #4caf50;
    color: #fff;
}

.modal-header.warning {
    background: #ffeb3b;
    color: #212121;
}

.modal-header.error {
    background: #f44336;
    color: #fff;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212121;
}

.modal-body {
    color: #333;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-warning,
.btn-danger,
.btn-success {
    min-width: 100px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-close {
    position: absolute;
    right: 20px;
    top: 18px;
    filter: invert(50%);
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #5C3BFE;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin360 1s linear infinite;
}

@keyframes spin360 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

