* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

.footer-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.contact-container {
    background: #fff;
    width: 500px;
    margin: 20px 0;
    padding: 20px;
    /* padding: 25px 40px 10px 40px; */
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.contact-container .text {
    font-size: 35px;
    font-weight: 600;
    text-align: center;
    background: -webkit-linear-gradient(90deg, #ffe730 0%, #57bcc7 50%, #ed5379 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-container form {
    padding: 30px 0 0 0;
}

.contact-container form .form-row {
    display: flex;
    margin: 32px 0;
}

form .form-row .input-data {
    width: 100%;
    height: 40px;
    margin: 0 20px;
    position: relative;
}

form .form-row .text-area {
    height: 70px;
}

.input-data input, 
.textarea textarea {
    display: block;
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    font-size: 18px;
    border-bottom: 2px solid rgba(0,0,0,0.12);
}

.textarea textarea, .input-data #contact {
    resize: none;
    padding-top: 10px;
}

.textarea textarea:valid ~ label,
.input-data input:focus ~ label,
.textarea textarea:focus ~ label,
.input-data input:valid ~ label
 {
    transform: translateY(-20px);
    color: #FF3B30;
    font-size: 16px;
}

.input-data label {
    position: absolute;
    bottom: 10px;
    font-size: 18px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.textarea label {
    width: 100%;
    /* bottom: 20px; */
    background: #fff;
}

/* https://www.youtube.com/watch?v=OQ0hgVVwNOI&list=PLImJ3umGjxdDqTlZhQxXBeGij9Oa9Xjnj&index=26 min:10:36 */
/* .text-area textarea {
    resize: none;
    padding-top: 10px;
}
 */

.input-data .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
    /* background:red; */
}

.input-data .underline:before,
.input-data .underline:after {
    position:absolute;
    content: "";
    height: 100%;
    width: 100%;
    background: #FF3B30;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.input-data input:focus ~ .underline:before, .underline:after,
.textarea textarea:focus ~ .underline:before, .underline:after, 
.input-data input:valid ~ .underline:before, .underline:after,
.textarea textarea:valid ~ .underline:before, .underline:after {
    transform: scaleX(1);
}

.submit-btn .input-data {
    height: 45px !important;
    /* width: 25% !important; */
    border-radius: 5px;
    overflow: hidden;
}

.submit-btn .input-data .inner {
    height: 100%;
    width: 300%;
    position: absolute;
    left: -100%;
    /* background: --webkit-linear-gradient(right, #ffe730, #57bcc7, #ed5379); */
   background-color: #ffe730;
background: linear-gradient(90deg, rgba(255, 231, 48, 1) 0%, rgba(87, 188, 199, 1) 50%, rgba(237, 83, 121, 1) 100%);
    transition: all 0.3s;
}

.submit-btn .input-data:hover .inner {
    left: 0;
}

.submit-btn .input-data input {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

@media (max-width: 800px) {

    .contact-container .text {
        font-size:30px;
    }

    .contact-container form {
        padding: 10px 0 0 0;
    }

    .contact-container form .form-row {
        display: block;
    }

    form .form-row .input-data {
        margin: 35px 0 !important;
    }

    .submit-btn .input-data {
        width: 40% !important;
    }
}


@media (max-width: 530px) {
    
    .contact-container {
        width: 90vw;
    }
}

