/*==================================================
    EDUCATION CONTACT
==================================================*/

.education-contact {
    position: relative;

    padding: 110px 0;

    overflow: hidden;
}


.education-contact-container {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    box-sizing: border-box;
}



/*==================================================
    HEADER
==================================================*/

.education-contact-header {
    max-width: 700px;

    margin: 0 auto 60px;

    text-align: center;

    box-sizing: border-box;
}


.education-contact-header
.education-section-badge {
    display: inline-flex;

    padding: 8px 18px;

    border: 1px solid rgba(190, 157, 91, .35);

    border-radius: 50px;

    color: #b28d4c;

    font-size: 13px;
    font-weight: 700;
}


.education-contact-header h2 {
    margin: 18px 0 14px;

    color: #303229;

    font-size: clamp(30px, 4vw, 44px);

    font-weight: 800;

    line-height: 1.3;
}


.education-contact-header h2 span {
    color: #b28d4c;
}


.education-contact-header p {
    margin: 0;

    color: #777970;

    font-size: 16px;

    line-height: 1.9;
}



/*==================================================
    GRID
==================================================*/

.education-contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 70px;

    align-items: start;

    width: 100%;

    min-width: 0;
}



/*==================================================
    CONTACT INFO
==================================================*/

.education-contact-info {
    padding-top: 10px;

    min-width: 0;
}


.education-contact-intro > span {
    color: #a27e43;

    font-size: 13px;

    font-weight: 800;
}


.education-contact-intro h3 {
    margin: 12px 0;

    color: #303229;

    font-size: 28px;

    font-weight: 800;
}


.education-contact-intro p {
    max-width: 470px;

    margin: 0;

    color: #777970;

    font-size: 15px;

    line-height: 1.9;
}



/*==================================================
    CONTACT ITEMS
==================================================*/

.education-contact-items {
    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: 35px;

    width: 100%;

    min-width: 0;
}


.education-contact-item {
    display: flex;

    align-items: center;

    gap: 16px;

    width: 100%;

    min-width: 0;

    box-sizing: border-box;

    padding: 16px 18px;

    border: 1px solid rgba(45, 47, 39, .08);

    border-radius: 18px;

    background: rgba(255, 255, 255, .7);

    color: inherit;

    text-decoration: none;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.education-contact-item:hover {
    transform: translateX(-5px);

    border-color:
        rgba(178, 141, 76, .3);

    box-shadow:
        0 12px 30px rgba(40, 42, 35, .08);
}


.education-contact-item-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(178, 141, 76, .12);

    color: #a27e43;

    font-size: 18px;
}


.education-contact-item div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.education-contact-item span {
    color: #888980;

    font-size: 11px;

    font-weight: 700;
}


.education-contact-item strong {
    color: #303229;

    font-size: 14px;

    font-weight: 800;

    overflow-wrap: anywhere;
}



/*==================================================
    NOTE
==================================================*/

.education-contact-note {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;

    padding: 16px 18px;

    border-radius: 18px;

    background:
        rgba(178, 141, 76, .08);

    color: #777970;

    font-size: 13px;

    line-height: 1.7;

    box-sizing: border-box;
}


.education-contact-note i {
    color: #b28d4c;

    font-size: 18px;

    flex: 0 0 auto;
}



/*==================================================
    FORM WRAPPER
==================================================*/

.education-contact-form-wrapper {
    width: 100%;

    min-width: 0;

    box-sizing: border-box;

    padding: 32px;

    border: 1px solid rgba(45, 47, 39, .08);

    border-radius: 28px;

    background: rgba(255, 255, 255, .82);

    box-shadow:
        0 20px 55px rgba(40, 42, 35, .08);
}



/*==================================================
    FORM
==================================================*/

.education-contact-form {
    display: flex;

    flex-direction: column;

    gap: 22px;

    width: 100%;

    min-width: 0;

    box-sizing: border-box;
}


.education-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    width: 100%;

    min-width: 0;
}


.education-form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;

    width: 100%;

    min-width: 0;

    box-sizing: border-box;
}


.education-form-field label {
    color: #4d4f46;

    font-size: 13px;

    font-weight: 800;
}


.education-form-field input,
.education-form-field select,
.education-form-field textarea {
    width: 100%;

    max-width: 100%;

    box-sizing: border-box;

    border: 1px solid rgba(45, 47, 39, .11);

    border-radius: 14px;

    background: #fafaf7;

    color: #303229;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.education-form-field input,
.education-form-field select {
    height: 50px;

    padding: 0 15px;
}


.education-form-field textarea {
    padding: 14px 15px;

    resize: vertical;

    min-height: 145px;
}


.education-form-field input::placeholder,
.education-form-field textarea::placeholder {
    color: #aaa99f;
}


.education-form-field input:focus,
.education-form-field select:focus,
.education-form-field textarea:focus {
    border-color: #b28d4c;

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(178, 141, 76, .09);
}



/*==================================================
    FORM ERRORS
==================================================*/

.education-form-error {
    display: block;

    margin-top: 2px;

    color: #b44b4b;

    font-size: 12px;

    line-height: 1.6;
}



/*==================================================
    SUBMIT
==================================================*/

.education-contact-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 52px;

    padding: 0 25px;

    border: 0;

    border-radius: 15px;

    background: #303229;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


.education-contact-submit:hover {
    transform: translateY(-2px);

    background: #a27e43;

    box-shadow:
        0 12px 28px rgba(162, 126, 67, .2);
}



/*==================================================
    SUCCESS MESSAGE
==================================================*/

.education-contact-success {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    max-width: 700px;

    margin: 0 auto 35px;

    padding: 15px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(74, 126, 89, .18);

    border-radius: 16px;

    background: rgba(74, 126, 89, .08);

    color: #4d7657;

    font-size: 14px;

    line-height: 1.7;

    text-align: center;
}


.education-contact-success i {
    flex: 0 0 auto;

    font-size: 18px;
}



/*==================================================
    TABLET
==================================================*/

@media (max-width: 900px) {

    .education-contact-grid {
        grid-template-columns: 1fr;

        gap: 45px;

        width: 100%;
    }


    .education-contact-info {
        width: 100%;

        max-width: 700px;

        margin: 0 auto;

        padding-top: 0;
    }


    .education-contact-form-wrapper {
        width: 100%;

        max-width: 700px;

        margin: 0 auto;
    }

}



/*==================================================
    MOBILE
==================================================*/

@media (max-width: 600px) {

    .education-contact {
        padding: 80px 0;

        overflow: hidden;
    }


    .education-contact-container {
        width: calc(100% - 28px);

        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        box-sizing: border-box;
    }


    .education-contact-header {
        width: 100%;

        margin-bottom: 40px;

        padding: 0;

        box-sizing: border-box;
    }


    .education-contact-header h2 {
        font-size: clamp(27px, 8vw, 36px);
    }


    .education-contact-header p {
        font-size: 14px;

        line-height: 1.9;
    }


    .education-contact-grid {
        display: flex;

        flex-direction: column;

        align-items: center;

        width: 100%;

        gap: 40px;

        min-width: 0;
    }


    /*================================================
        CONTACT INFO
    =================================================*/

    .education-contact-info {
        width: 100%;

        max-width: 520px;

        margin: 0 auto;

        box-sizing: border-box;
    }


    .education-contact-intro {
        text-align: center;
    }


    .education-contact-intro p {
        max-width: 100%;
    }


    .education-contact-items {
        width: 100%;

        max-width: 520px;

        margin-left: auto;
        margin-right: auto;
    }


    .education-contact-item {
        width: 100%;

        box-sizing: border-box;
    }


    /*================================================
        FORM WRAPPER
    =================================================*/

    .education-contact-form-wrapper {
        width: 100%;

        max-width: 520px;

        margin-left: auto;
        margin-right: auto;

        padding: 20px;

        box-sizing: border-box;

        border-radius: 22px;
    }


    .education-contact-form {
        width: 100%;

        margin: 0 auto;

        box-sizing: border-box;
    }


    /*================================================
        FORM ROW
    =================================================*/

    .education-form-row {
        display: grid;

        grid-template-columns: 1fr;

        gap: 20px;

        width: 100%;

        margin: 0;

        box-sizing: border-box;
    }


    .education-form-field {
        width: 100%;

        max-width: 100%;

        margin: 0;

        box-sizing: border-box;
    }


    /*================================================
        FORM INPUTS
    =================================================*/

    .education-form-field input,
    .education-form-field select,
    .education-form-field textarea {
        width: 100%;

        max-width: 100%;

        box-sizing: border-box;
    }


    .education-form-field input,
    .education-form-field select {
        height: 50px;
    }


    .education-form-field textarea {
        min-height: 140px;
    }


    /*================================================
        SUBMIT
    =================================================*/

    .education-contact-submit {
        width: 100%;

        margin: 0 auto;

        box-sizing: border-box;
    }


    /*================================================
        NOTE
    =================================================*/

    .education-contact-note {
        align-items: flex-start;

        width: 100%;

        box-sizing: border-box;
    }

}



/*==================================================
    VERY SMALL SCREENS
==================================================*/

@media (max-width: 380px) {

    .education-contact {
        padding: 65px 0;
    }


    .education-contact-container {
        width: calc(100% - 20px);

        max-width: 360px;
    }


    .education-contact-form-wrapper {
        padding: 16px;

        border-radius: 20px;
    }


    .education-contact-form {
        gap: 18px;
    }


    .education-form-row {
        gap: 18px;
    }


    .education-contact-header h2 {
        font-size: 26px;
    }


    .education-contact-header p {
        font-size: 13px;
    }


    .education-contact-item {
        padding: 14px;

        gap: 12px;
    }


    .education-contact-item-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

}