body {
    background-image: url(images/wheat-field-banner.webp);
    background-size: cover;
    background-position: center;
}

main {
    background-color:rgba(0,0,0,0);
}

h1 {
    margin: 3rem;
    color: white;
    text-shadow: 0px 2px 8px rgba(0,0,0,0.64);
}

#contact-us {
    width: 92%;
    max-width: 112.25rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem
}

.contact-info {
    width: 24%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.88rem;
}

.contact p {
    font-size: 0.88rem;
    text-wrap: wrap;
}

.alert-tag, .contact-us-heading{
    display: flex;
    flex-direction: row;
    gap: 0.88rem;
}

.alert {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(249,249,249,0.56);
    border-radius: 1rem;
    border: 1px dashed rgba(0,0,0,0.16);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

h3 {
    font-size: 0.75rem;
}

.alert p {
    font-size: 0.75rem;
    line-height: 1.25rem;
}

.contact-section {
    width: 74%;
    background-color: rgba(249,249,249,0.72);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-us-heading {
    align-items: center;
}

h2 {
    font-size: 1.5rem;
    color: #084999;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.form-group {
    position: relative;
    width: 100%;
}

label {
    position: absolute;
    transform: translateY(0%);
    top: 0.75rem;
    left: 1rem;
    color: rgba(0,0,0,0.48);
    font-size: 0.88rem;
    transition: 0.2s ease all;
}

input {
    width: 100%;
    height: 2.5rem;
    background-color: white !important;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.16);
    padding: 0.75rem;
    font-size: 0.88rem;
}

textarea {
    width: 100%;
    background-color: white !important;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.16);
    line-height: 1.25rem;
    padding: 0.75rem;
    font-size: 0.88rem;
}

.submit {
    display: flex;
    flex-direction: row;
    justify-content: right;
    width: 100%;
}

button {
    background-color: #084999;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    border: none;

}

input:focus + label, textarea:focus + label,
input:not(:placeholder-shown) + label, textarea:not(:placeholder-shown) + label {
    top: 0;
    left: 0.5rem;
    transform: translateY(-50%);
    font-size: 0.66rem;
    color: white;
    padding: 2px 4px;
    background-color: #084999;

}

input::placeholder, textarea::placeholder {
      opacity: 0;
      transition: opacity 0.2s;
    }

input:focus::placeholder, textarea:focus::placeholder,
input:not(:placeholder-shown)::placeholder, textarea:not(:placeholder-shown)::placeholder {
      opacity: 1;
    }

/*for thank you part*/
.thankyou-text {
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.5rem;
}

#animated-mail {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#mail-circle {
    animation: spin 3s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#mail {
    position: absolute;
    top: 50%;
    left: 50%;
    animation: bob 1.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes bob {
    0% {
        transform: translate(-56%, -45%);
    }

    50%{
        transform: translate(-56%, -55%);
    }

    100%{
        transform: translate(-56%, -45%);
    }
}

@media (max-width: 60rem) {
    h1 {
        font-size: 1.5rem;
        margin: 1.5rem;
    }

    #contact-us {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        width: 100%;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        
    }

    .contact-info > div {
        width: 100%;
    }

    .contact-section {
        width: 100%
    }

}

@media (max-width: 38rem){

     h3 {
        font-size: 0.75rem;
    }

    .alert p {
        font-size: 0.66rem;
        line-height: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
    }

    .contact-info > div {
        width: 100%;
    }

    .contact img {
        height: 1rem;
        width: 1rem;
    }

    .contact p {
        font-size: 0.66rem;
        
    }

    .form-row {
        display: flex;
        flex-direction: column;
    }

    .g-recaptcha {
    transform: scale(0.8);
    transform-origin: 0 0;
  }
}
