:root {
    --green-dark: #35573E;
    --green-medium: #456D50;
    --green-light: #5A8065;
    --blue-dark: #36555E ;
    --blue-medium: #45646D ;
    --blue-light:#5A7780 ;
    --brown-dark: #764222 ;
    --brown-medium: #925B3A;
    --brown-light:#AB6E4C ;
    --tan-light: #FBF4DA;
    --purple-dark: #594F5B; 
}

html {
    scroll-behavior: smooth;
}

body{
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 32px;
    margin: 0;
}

h2{
    font-weight: 400;
    font-size: 44px;
    line-height: 48px;
    margin: 0 0 12px 0;
    letter-spacing: -0.9px;
}

p{
    margin: 0;
    letter-spacing: -0.4px;
}

.button-light,
.submit {
    border-radius: 39px;
    background-color: var(--tan-light);
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Geologica', sans-serif;
    font-size: 20px;
    cursor: pointer;
    letter-spacing: -0.4px;
}

.text-link, a {
    text-underline-offset: 5px;
    color: white;
    letter-spacing: -0.4px;

}


/* Header */

.header {
    background-image: url(assets/Rays-cropped.svg);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    height: 371px;
    background-color: var(--tan-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success .header {
    height: 1018px;
}

.nav {
    background-color: var(--tan-light);
    border-radius: 32px;
    display: flex;
    margin-top: 40px;
}
.nav.ecomm a{
    color:var(--green-light)
}
.nav.nonprofit a{
    color:var(--blue-light)
}
.nav.else a{
    color:var(--brown-light)
}

.success .nav a{
    color: var(--purple-dark);
}

.success .nav {
    background-color: #F9EDC4;
}

.nav-link{
    padding: 14px 24px;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    border-radius: 32px;
    text-decoration: none;
}

.nav-link.ecomm {
    background-color: var(--green-light);
    color: white !important;
}

.nav-link.nonprofit{
    background-color: var(--blue-light);
    color: white !important;
}

.nav-link.else{
    background-color: var(--brown-light);
    color: white !important;
}

.logo{
    position: absolute;
    top: 338px;
}

.success .logo {
    top: 962px;
}

.logo h1{
    display: none;
}

.logo img{
    width: 100%;
    margin-top: -32px;
}


.logo img:nth-of-type(2) {
    display: none;
}

/* Hero Styles */

.hero{
    margin-top: -1px;
}

.ecomm .hero {
    background-color: var(--green-light);
}

.nonprofit .hero {
    background-color: var(--blue-light);
}

.else .hero {
    background-color: var(--brown-light);
}

.hero-wrapper {
    display: flex;
    gap: 80px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 18px;
}

.hero-content{
    display: flex;
    flex-direction: column;
    color: white;
}

.button-wrapper{
    display: flex;
    gap: 26px;
    align-items: center;
}

.hero-content .button-wrapper{
    margin-top: 28px;
}

.hero-content .text-link{
    color: white;
}

.ecomm .button-light,
.ecomm .submit {
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    box-shadow: 0px 4px 0px 0px var(--green-dark);
    line-height: normal;
}

.nonprofit .button-light,
.nonprofit .submit {
    border: 2px solid var(--blue-dark);
    color: var(--blue-dark);
    box-shadow: 0px 4px 0px 0px var(--blue-dark);
    line-height: normal;
}

.else .button-light,
.else .submit {
    border: 2px solid var(--brown-dark);
    color: var(--brown-dark);
    box-shadow: 0px 4px 0px 0px var(--brown-dark);
    line-height: normal;
}

.hero-callout {
    border-radius: 24px;
    min-width: 396px;
}

.ecomm .hero-callout{
    background-color: var(--green-medium);
}

.nonprofit .hero-callout{
    background-color: var(--blue-medium);
}

.else .hero-callout{
    background-color: var(--brown-medium);
}

.callout-top{
    display: flex;
    gap: 12px;
    align-items: center;
    color: white;
    padding: 16px 0;
    font-size: 14px;
    line-height: normal;
    border-radius: 16px;
    justify-content: center;
}

.callout-top p:nth-of-type(2),
.callout-top p:nth-of-type(4) {
    font-size: 10px;
}

.ecomm .callout-top{
    background-color: var(--green-dark)
}

.nonprofit .callout-top{
    background-color: var(--blue-dark)
}

.else .callout-top{
    background-color: var(--brown-dark)
}

.callout-bottom{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 58px;
    color: white;
    font-size: 14px;
    line-height: 22px;
}

.callout-bottom p{
    max-width: 270px;
}

.callout-bottom img {
    width: 158px;
}


/* Form */

.form {
    padding: 120px 0;
}

.ecomm .form {
    background-color:var(--green-medium) ;
}

.nonprofit .form {
    background-color:var(--blue-medium) ;
}

.else .form {
    background-color:var(--brown-medium) ;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-heading {
    text-align: center;
    color: white;
    margin: 0 auto;
    max-width: 590px;

}

.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 60px;
    column-gap: 60px;
    margin-top: 64px;
}

.field-wrapper{
    display: flex;
    flex-direction: column;
}

label {
    color: rgba(255, 255, 255);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    padding-bottom: 16px;
}

label:has(+input:not(:placeholder-shown)),
label:has(+div>input:not(:placeholder-shown)),
label:has(+textarea:not(:placeholder-shown)){
    color: rgba(255, 255, 255, .56);
}

label:has(+ input:focus-within),
label:has(+div>input:focus-within),
label:has(+ textarea:focus-within){
    color: rgba(255, 255, 255, .56);
}

label span {
    font-weight: 300;
}

label span::before{
    content: "(";
}

label span::after{
    content: ")";
}

input:not(.submit),
textarea {
    background-color: transparent ;
    border-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, .32);
    color: white;
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 20px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-transition-delay: 99999s;
}

input:focus-visible,
textarea:focus-visible{
    outline: none;
}

input::placeholder,
textarea::placeholder{
    color:  rgba(255, 255, 255, .32);
}


input.titlecase{
    text-transform: capitalize;
}

.currency{
    position: relative;
}

.currency span {
    position: absolute;
    color: rgba(255, 255, 255, .32);
    font-family: 'Geologica', sans-serif;
    font-weight: 300;
    font-size: 20px;
    top: 0;
    right: 0;
}

.currency input {
    width: 100%;
}

.form-message{
    display: flex;
    flex-direction: column;
    margin: 60px 0px 72px ;
}

textarea{
    max-width: 700px;
    resize: none;
    overflow: hidden;
    min-height: 28px;
    max-height: 160px;
}

.submit {
    width: 100%;
}


input, textarea, select { 
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none; border-radius: 0; 
  background-image: none; 
  padding-left: 0px;
  padding-right: 0px;
}

/* Footer */

.ecomm footer {
    background-color: var(--green-dark);
}

.nonprofit footer {
    background-color: var(--blue-dark);
}

.else footer {
    background-color: var(--brown-dark);
}

.success footer {
    background-color: var(--purple-dark);
}

footer {
    padding: 120px 0 ;

}

.footer-wrapper{
    padding-top: 24px;
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    gap: 8px;
}

/* Success */

.success-hero{
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 590px;
    align-items: center;
    text-align: center;
    color: var(--purple-dark);
    padding: 72px 0 0 0;
}

/* Smaller Desktop Sizing */

@media only screen and (max-width: 1180px) {
    .hero-wrapper {
        gap: 54px;
    }
}

@media only screen and (max-width: 1090px) {
    .hero-wrapper {
        display: flex;
        flex-direction: column;
        max-width: 720px;
        margin: 0 auto;
        padding: 120px 24px;
        text-align: center;
    }

    .hero-content .button-wrapper {
        justify-content: center;
        flex-direction: column;
    }

    .footer-wrapper {
        max-width: 720px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .form-wrapper{
        padding: 0px 24px;
    }

}

/* Tablet and Mobile */

@media only screen and (max-width: 790px){
    h2 {
        font-size: 27px;
        line-height: 32px;
    }

    p {
        font-size: 17px;
        line-height: 26px;
    }
    
    .button-wrapper a {
        font-size: 17px;
    }

    .header{
        height: 310px;
        background-size: auto 150%;
    }

    .nav-link{
        padding: 12px 20px;
        font-size: 11px;
    }

    .button-light,
    .submit {
    padding: 17px 0px;
    font-size: 17px;
    width: 100%;
    }

    .hero-wrapper{
        padding: 120px 24px 1px 24px;
    }

    .logo {
        max-width: 310px;
        top: 298px;
    }
    
    .hero-callout{
        border-radius: 24px 24px 0 0;
        min-width: auto;
        font-size: 14px;
    }

    .callout-top p{
        font-size: 14px;
    }

    .callout-top p:nth-of-type(2),
    .callout-top p:nth-of-type(4) {
        font-size: 10px;
    }

    .callout-bottom p{
        font-size: 14px;
        line-height: 24px;
    }


    .form-grid{
        grid-template-columns: 1fr;
    }

    footer {
        padding: 0px;
    }

    .footer-wrapper{
        text-align: center;
        gap: 16px;
        border-top: none;
        padding: 80px 24px;
    }

    footer p {
        font-size: 14px;
        line-height: 24px;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
    }

    .footer-brand img {
        width: 72px;
    }

    .callout-bottom {
        padding: 50px 24px;
    }

}

@media screen and (max-width: 425px) {
    .header{
        height: 230px;
        background-size: auto 130%;
    }

    .logo {
        max-width: 165px;
        top: 230px;
    }
    
    .logo img:nth-of-type(2) {
        display: block;
    }
    
    .logo img:first-of-type {
        display: none;
    }


    .hero-wrapper{
        padding: 80px 24px 1px 24px;
    }
    
    .form{
        padding: 80px 0;
    }
    
    .success-hero {
        margin: 0px 24px;
    }
    
    .success .header {
        height: 708px;
        background-size: auto 40%;
    }
    
    .success .logo {
        top: 708px;
    }
    
    .footer-wrapper {
        padding: 80px 40px;
    }
}