.hero_section-wrapper{
    background-image: url('https://res.cloudinary.com/deklnqsqn/image/upload/f_auto,q_auto:best/payee_t6tlso.png');
    min-height: 100px;
    background-size: cover;
    margin-top: 4.4rem;
    background-color: var(--black);
}

.hero_section > h1{
    color: var(--white);
    font-size: 2rem;
    font-weight: 400;
    padding-top: 2rem;
}

.payee_form{
    background-color: var(--white);
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
}
.payee_form-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    margin-bottom: 1rem;
}
.payee_form-header > div:first-child{
    display: flex;
    align-items: center;
    gap: 10px;
}

.payee_form-header > div:first-child select{
    padding: 5px 3px;
    width: 100%;
    flex: 1;
    outline: none;
    border: 1px solid var(--border);
    background-color: transparent;
    transition: border 0.3s linear;
    cursor:pointer;
}

.payee_form-header > div:first-child select:focus{
    border-color: var(--primary);
}

.payee_form-header > div:last-child{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.payee_form-header > div:last-child a{
    text-decoration: none;
    color: #2C4FAA;
    font-weight: 300;
    font-size: 0.875rem;
}

.payee_form_section{
    border-top: 1px solid #D9D9D9;
    padding: 1rem 0;
}

.payee_form_section > div:first-child {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 27px;
}

.payee_form_section > div:first-child > p:first-child{
    color: var(--black);
    font-weight: 600;
}

.payee_form_section > div:first-child > p:last-child{
    background-color: var(--grey);
    flex: 1;
    padding: 7px 10px;
    min-height: 1.5rem;
}

.payee_form-item label{
    color: var(--black);
}

.payee_form-item input[type="number"],.payee_form-item input[type="text"] {
   width: 100%;
    display: block;
    margin-top: 5px;
    padding: 5px;
    outline: none;
    transition: border 0.3s linear;
    border: 1px solid var(--border);
}

.payee_form-item input[type="number"]:focus,.payee_form-item input[type="text"]:focus{
    border: 1px solid var(--primary);
}

.payee_form-item section{
    display: flex;
    gap: 29px;
    align-items: center;
    margin-top: 5px;
}

.payee_form-item section div{
    display: flex;
    gap: 5px;
    align-items: center;
}

.payee_form-item section div input[type='checkbox']{
    accent-color: var(--black);
}

.payee_form_section > section{
    display: grid;
    gap:20px;
}

.payee_form_submit-btn{
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 15px;
    cursor: pointer;
}

.payee_form_submit-btn:disabled{
    cursor: not-allowed;
}

.summary{
    margin: 1rem 0 3rem 0;
    background-color: var(--white);
}

.summary > h2{
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary > p{
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    max-width: 20rem;
    color: var(--text);
}
.spinner{
    height: 1.2rem;
    width: 1.2rem;
    border: 2.5px solid var(--grey);
    border-top-color: var(--white);
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* Keyframes for rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@media (min-width: 600px) {
    body{
        background: #F8F8F9;
    }

    .hero_section-wrapper{
        min-height:200px;
    }

    .payee_form{
        padding: 37px 20px;
        margin-top: -4.5rem;
    }

    .hero_section > h1{
        font-size: 2.5rem;
        padding-top: 3rem;
    }

    .payee_form_section{
      padding: 2rem 0 3rem 0;
    }

    .payee_form_section > section{
        grid-template-columns: repeat(3,1fr);
    }

    .payee_form-header > div:first-child select{
        width: 200px;
    }

    .payee_form_section > div:first-child > p:last-child{
        max-width: 221px;
    }

    .payee_form_submit-btn{
        max-width: 260px;
    }

    .summary{
        padding: 37px 20px;
        margin-top: 3rem;
    }
}

@media (min-width: 768px){
    .payee_form-header{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .payee_form,
    .summary{
        padding: 37px 48px;
    }
}

@media (min-width: 1024px) {
    .hero_section > h1{
        font-size: 2.625rem;
        line-height: 60px;
    }
    .payee-wrapper {
        display: flex;
        align-items: flex-start;
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .summary {
        margin-top: -4.5rem;
        position: sticky;
        top: 6rem;
        margin-bottom: 0;
    }
}
