@import "styles/typography";
@import "styles/_mixins.scss";
.contact-form {
display: flex;
flex-wrap: wrap;
row-gap: 24px;
column-gap: 20px;
& .col-6 {
flex: 1 1 calc(50% - 20px);
}
& .col-12 {
flex: 1 1 100%;
}
input:not([type="checkbox"]),
textarea {
@include body2;
display: flex;
align-items: center;
padding: 0 20px;
border-radius: 4px;
border: 1px solid var(--Grey);
background: var(--White);
height: 56px;
width: 100%;
&:hover {
border: 1px solid rgba(85, 71, 235, 0.5);
}
&::placeholder {
opacity: 0.3;
}
&.error {
border: 1px solid #ef436c;
animation: error-input 0.5s ease-in-out;
}
}
textarea {
padding: 17px 20px 15px;
outline: none;
height: 120px;
resize: none;
}
&-dropdown {
position: relative;
}
&-flag {
height: 20px;
width: 20px;
border-radius: 2px;
}
&-select {
padding: 0 20px;
cursor: pointer;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 4px;
border: 1px solid var(--Grey);
background-color: var(--White);
height: 56px;
.arrow {
opacity: 0.6;
transform: rotate(90deg);
transition: 0.5s;
}
&.open {
.arrow {
opacity: 1;
transform: rotate(-90deg);
}
}
&-country {
display: flex;
gap: 12px;
}
}
&-options {
opacity: 0;
position: absolute;
width: 100%;
z-index: 1;
display: flex;
flex-direction: column;
gap: 4px;
padding: 4px;
margin-top: 8px;
border-radius: 4px;
border: 1px solid var(--Grey);
background: var(--White);
overflow: hidden;
transition: max-height 0.6s ease;
max-height: 245px;
overflow-y: auto;
transition: 0.5s;
pointer-events: none;
&.open {
opacity: 1;
pointer-events: all;
}
&-item {
cursor: pointer;
display: flex;
gap: 12px;
padding: 12px 16px;
transition: 0.5s;
border-radius: 4px;
background-color: var(--White);
&:hover {
background-color: var(--Light-Grey);
}
}
}
label {
@include body3;
margin-bottom: 12px;
display: block;
opacity: 0.4;
}
&-agree {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
label {
opacity: 1;
margin-bottom: 0;
}
.checkbox + label::before {
margin-top: 0;
}
&__check {
display: flex;
align-items: center;
a {
color: var(--Blue-purple);
}
}
}
.error-message {
margin-top: 12px;
color: #ef436c;
}
&-success {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
text-align: center;
&__img {
padding: 16px;
border-radius: 8px;
background-color: var(--Trustpilot-Green-10);
img {
height: 32px;
width: 32px;
}
}
&__title {
margin-top: 24px;
margin-bottom: 16px;
max-width: 300px;
}
&__desc {
max-width: 350px;
}
}
@include w($lg) {
& .col-6 {
flex: 1 1 100%;
}
}
@include w($md) {
&-agree {
flex-direction: column;
align-items: start;
.button {
width: 100%;
}
}
}
@include w($md) {
input:not([type="checkbox"]) {
height: 44px;
padding: 0 16px;
}
row-gap: 12px;
&-select {
padding: 0 16px;
}
textarea {
padding: 16px;
}
&-agree {
}
}
}