@import url('https://fonts.googleapis.com/css2?family=Anton+SC&family=Nova+Square&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --primary-color: #415393;
    --secondary-color: #F79D58;
    --tertiary-color: #32D5D2;
    --quarternary-color: #EFEAEE;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --max-width: 1400px;
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img{
    display: flex;
    width: 100%;
}

a{
    text-decoration: none;
    transition: 0.3s;
}

body{
    font-family: "Montserrat", "sans-serif";
}

nav{
    max-width: var(--max-width);
    margin-inline: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav__logo{
    display: flex;
    align-items: center;
    /* gap: .5rem; */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: "Nova Square", "sans-serif"
}

.nav__logo div{
    /* width: 50px; */
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    /* font-size: 1.5rem; */
    line-height: 1rem;
    color: var(--secondary-color);
    /* background-color: var(--primary-color); */
    /* border-radius: 10%; */
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
    width: 100%;
    padding: 0;
    margin: 0;
}

.nav__links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__links a:hover {
    color: var(--primary-color);
}

.nav__links a i {
    font-size: 1.2rem;
}

.nav__hamburger {
    display: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.nav__hamburger:hover {
    color: var(--primary-color);
}

.nav__button {
    color: var(--text-dark);
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__button:hover {
    color: var(--primary-color);
}

.nav__socials {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav__socials a{
    padding: 5px 7px;
    font-size: 1.5rem;
    color: var(--text-dark);
    background-color: var(--quarternary-color);
    border-radius: 100%;
}

.nav__socials a:hover{
    color: var(--white);
    background-color: var(--text-light);
}

.nav__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.nav__contact__card{
    padding: 5px 7px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--quarternary-color);
    border-radius: 10px;
}

.nav__contact__card:hover{
    background-color: var(--secondary-color);
}

.nav__contact__card span{
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav__contact__card p{
    margin-bottom: 5px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-light);
}

.nav__contact__card h4{
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header__container{
    max-width: var(--max-width);
    margin: auto;
    /* padding: 2rem 1rem; */
    padding: 2rem 1rem 2rem 2rem; /* top, right, bottom, left */
    display: grid;
    gap: 2rem;
    text-align: center;
}

.header__container h1{
    margin-bottom: 1rem;
    font-size: 4rem;
    font-weight: 700;
    line-height: 5rem;
    color: var(--primary-color);
}

.header__container h1 span{
    color: var(--primary-color)
}

/* Special case for the #dynamic-word span */
.header__container h1 span#dynamic-word {
    color: var(--secondary-color);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.header__image img {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
}

.header__container h1 span#dynamic-word.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.header__container p{
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5rem;
}

.header__container button{
    width: 100%;
    padding: 1rem 2rem;
    outline: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
}

.header__container button:hover{
    color: var(--white);
    background-color: var(--secondary-color);
}

/* Deck Section */
.deck__section {
    max-width: var(--max-width);
    margin: 4rem auto;
    padding: 4rem 1rem;
    text-align: center;
    background-color: var(--quarternary-color);
    border-radius: 20px;
}

.deck__content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.deck__content p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal__content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--text-dark);
}

.modal__content h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
}

/* Progress Indicator */
.form__progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--quarternary-color);
}

.progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.progress__step.active {
    opacity: 1;
}

.step__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--quarternary-color);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.progress__step.active .step__number {
    background-color: var(--primary-color);
    color: var(--white);
}

.step__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* Form Steps */
.form__step {
    display: none;
}

.form__step.active {
    display: block;
    animation: fadeInStep 0.3s;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form__step h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
}

/* Form Styles */
.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.field__description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    margin-top: -0.25rem;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--quarternary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: "Montserrat", "sans-serif";
    transition: border-color 0.3s;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Inline form groups for ranges */
.form__group--inline {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.form__group-half {
    flex: 1;
}

.form__group-half label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form__group-half input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--quarternary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: "Montserrat", "sans-serif";
    transition: border-color 0.3s;
}

.form__group-half input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Form Buttons */
.form__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form__next,
.form__prev,
.form__submit {
    padding: 1rem 2rem;
    outline: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.form__next {
    width: 100%;
    color: var(--white);
    background-color: var(--primary-color);
}

.form__next:hover {
    background-color: var(--secondary-color);
}

.form__prev {
    flex: 1;
    color: var(--text-dark);
    background-color: var(--quarternary-color);
}

.form__prev:hover {
    background-color: var(--text-light);
    color: var(--white);
}

.form__submit {
    flex: 2;
    color: var(--white);
    background-color: var(--primary-color);
}

.form__submit:hover {
    background-color: var(--secondary-color);
}

.form__success {
    text-align: center;
    padding: 2rem;
}

.form__success i {
    font-size: 4rem;
    color: var(--tertiary-color);
    margin-bottom: 1rem;
}

.form__success p {
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* Powered By Section */
.powered-by {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.powered-by p {
    font-size: 1rem;
    color: var(--text-light);
}

.powered-by__brand {
    font-family: "Nova Square", sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.powered-by__brand:hover {
    color: var(--secondary-color);
}

.footer__container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1rem;
    font-size: 0.75rem;
}

.footer__content {
    padding: 0 1rem;
    line-height: 1.6;
}

.footer__content p {
    margin: 0.5rem 0;
}

/* Hide mobile breaks on desktop */
.mobile-break {
    display: none;
}

/* Mobile footer styling */
@media (max-width: 768px) {
    .footer__container {
        font-size: 0.65rem;
        padding: 1rem 0.5rem;
    }

    .footer__content {
        padding: 0 1.5rem;
        line-height: 1.5;
    }

    .footer__content p {
        margin: 0.4rem 0;
    }

    /* Show line breaks on mobile */
    .mobile-break {
        display: block;
    }
}

@media (min-width: 540px) {
    .nav__contact {
        gap: 2rem;
    }

    .nav__contact__card {
        gap: 1rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__hamburger {
        display: block;
        position: absolute;
        right: 1rem;
    }

    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav__links.active {
        max-height: 300px;
    }

    .nav__links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--quarternary-color);
    }

    .nav__links li:last-child {
        border-bottom: none;
    }

    .nav__links a {
        display: flex;
        justify-content: center;
        padding: 1rem;
        width: 100%;
    }
}

@media (min-width: 768px) {
    nav {
        padding: 1rem;
    }

    .header__container{
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: center;
        text-align: left;
    }

    .header__image{
        grid-area: 1/2/2/3;
    }
}
