@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
    --blue: #033763;
    --font-poppins: 'Poppins', sans-serif;
}

:focus {
    outline: none;
}

.input-effect {
    margin: 20px 3% 35px;
    position: relative;
}

.input-effect textarea,
input[type="text"] {
    font: 16px/24px var(--font-poppins);
    color: #252525;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 1px;
}

.effect-7,
.effect-8,
.effect-9 {
    border: 1px solid #ccc;
    padding: 7px 14px;
    transition: 0.4s;
}

.effect-8~.focus-border:before,
.effect-8~.focus-border:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue);
    transition: 0.3s;
}

.effect-8~.focus-border:after {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
}

.effect-8~.focus-border i:before,
.effect-8~.focus-border i:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background-color: var(--blue);
    transition: 0.4s;
}

.effect-8~.focus-border i:after {
    left: auto;
    right: 0;
    bottom: 0;
}

.effect-8:focus~.focus-border:before,
.effect-8:focus~.focus-border:after,
.effect-8.has-content~.focus-border:before,
.effect-8.has-content~.focus-border:after {
    width: 100%;
    transition: 0.3s;
}

.effect-8:focus~.focus-border i:before,
.effect-8:focus~.focus-border i:after,
.effect-8.has-content~.focus-border i:before,
.effect-8.has-content~.focus-border i:after {
    height: 100%;
    transition: 0.4s;
}

textarea.effect-8:focus~.focus-border i:before,
textarea.effect-8:focus~.focus-border i:after,
textarea.effect-8.has-content~.focus-border i:before,
textarea.effect-8.has-content~.focus-border i:after {
    height: calc(100% - 8px);
    transition: 0.4s;
}

.effect-16,
.effect-17,
.effect-18 {
    border: 0;
    padding: 4px 0;
    border-bottom: 1px solid #ccc;
    background-color: transparent;
}

.effect-16~.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--blue);
    transition: 0.4s;
}

.effect-16:focus~.focus-border,
.has-content.effect-16~.focus-border {
    width: 100%;
    transition: 0.4s;
}

.effect-16~label {
    position: absolute;
    left: 0;
    width: 100%;
    top: 9px;
    color: #aaa;
    transition: 0.3s;
    z-index: -1;
    letter-spacing: 0.5px;
}

.effect-16:focus~label,
.has-content.effect-16~label {
    top: -16px;
    font-size: 12px;
    color: var(--blue);
    transition: 0.3s;
}