body {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    grid-row: 1;
}

footer {
    margin-top: unset;
}

.footer_main {
    margin-top: 15rem !important;
}

main {
    grid-row: 2;
    margin: auto 0;
}

/* .response {
    margin-top: 12.8rem;
    padding: 0 1.5rem 0;
} */

.response>h1 {
    text-align: center;
}

.response__form {
    margin-top: 3.2rem;
}

.remove_btn {
    margin-left: auto;
    margin-top: 2.2rem;
}

.form>div.form_data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 2.5rem 1.1rem;
    margin-top: 2.2rem;
}

.response__form-field {
    padding: 1.7rem 0.3rem;
    border-radius: 3.4rem;
    border: 0.5px solid var(--color-darker);
    width: 100%;
    font-size: clamp(1.6rem, 4vw, 2rem);
    background-color: var(--color-white);
    position: relative;
}

/* show title on hover */

.input_title>span:first-of-type {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 15%;
    padding: 0.5rem;
    border: 0.1rem solid var(--color-black);
    background-color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: capitalize;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    -o-transition: 0.3s ease;
    -moz-transition: 0.3s ease;
    -webkit-transition: 0.3s ease;
}

.input_title>span:first-of-type::after {
    bottom: 100%;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid var(--color-black);
}

.input_title>span:first-of-type::before {
    bottom: 99.9%;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid var(--color-white);
    z-index: 1;
}

.input_title>span:first-of-type::after,
.input_title>span:first-of-type::before {
    content: "";
    position: absolute;
    left: calc(50%);
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-radius: 1px;
}

.rff {
    cursor: pointer;
    position: relative;
    display: flex;
}

.response__form-field>input,
.response__form-field>div>input {
    width: 100%;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-family: var(--main-font);
    font-weight: 400;
    color: var(--color-light-black);
    position: relative;
    display: block;
    text-align: center;
}

.response__form-field>div>select {
    font-family: var(--main-font);
    color: var(--color-light-black);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.error-message {
    font-size: 1.5rem;
    position: absolute;
    width: 100%;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-error);
}

.response__form-field>input::-webkit-input-placeholder {
    display: flex;
    text-align: center;
}

.response__form-field>input::-moz-placeholder {
    display: flex;
    text-align: center;
}

.response__form-field>input:-ms-input-placeholder {
    display: flex;
    text-align: center;
}

.response__form-field>input::-ms-input-placeholder {
    display: flex;
    text-align: center;
}

.response__form-field>input::placeholder {
    display: flex;
    text-align: center;
}

.selected {
    width: 100%;
    -moz-column-gap: 1.4rem;
    column-gap: 1.4rem;
    transition: 0.4s transform ease;
    font-weight: 400;
}

.response__form-field>div>input.selected_options {
    display: none;
    text-transform: capitalize;
}

.rff_timing>div>input.selected_options {
    text-transform: lowercase;
}

.response__form-field>div>input.selected_options:disabled {
    border-color: var(--color-white);
}

.rff>div:last-of-type {
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: auto;
    background-color: var(--color-white);
}

.rff_date::after {
    content: "";
    position: absolute;
    width: 0.1rem;
    height: 50%;
    top: 29%;
    left: 50%;
    background-color: var(--color-darker);
}

.response__form-options {
    row-gap: 0.9rem;
}

.response__form-options>div {
    height: 3.8rem;
    width: 11.6rem;
    overflow: hidden;
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: 300;
    border: 0.1rem solid var(--color-darker);
    background-color: var(--color-white);
}

.rfo>div {
    width: 15rem;
}

.response__form-options>div:hover,
.rfo>div:hover>label,
.response__form-options>div:active,
.rfo>div:active>label,
.response__form-options>div.selected>label,
.rfo>div.selected {
    background-color: var(--color-main);
    color: var(--color-white);
}

.response__form-options>div.rfo1:hover,
.rfo>div.rfo1:hover>label {
    background-color: var(--color-white);
    color: var(--color-light-black);
}

.response__form-options>div>label {
    width: 100%;
    height: 100%;
    padding: 1rem 1rem 1rem 2.4rem;
    background-color: var(--color-white);
    cursor: pointer;
    text-transform: uppercase;
    column-gap: 1rem;
    font-size: 12px;
    word-wrap: normal;
    text-align: center;
}

#timing>div>label {
    text-transform: lowercase;
    justify-content: center;
    padding: 1rem 1rem 1rem 0.8rem;
}

.response__form-options>div>label>span:nth-child(2) {
    font-size: 1.3rem;
}

#channels>div>label>span {
    margin-top: 0.19rem;
}

#timing>div>label>span {
    margin-top: 0.12rem;
}

@media (max-width: 1240px) {
    #timing>div>label>span {
        margin-top: 0.2rem;
    }
}

.response__form-options>div>label>input[type="number"] {
    display: block;
    height: 3.8rem;
    font-family: var(--main-font);
    width: 30%;
}

.rff.active>div:last-of-type {
    visibility: visible;
    opacity: 1;
    transition: 0.4s ease;
    height: 14rem;
}

.rff>.selected>i {
    transition: 0.4s ease;
    font-size: 1.3rem;
}

.rff.active>.selected>i {
    transform: rotate(180deg);
}

#myInp {
    height: 100%;
    text-align: center;
}

.response__form-buttons {
    margin-top: 5.3rem;
}

.btn {
    border-radius: 4.1rem;
    border: 0.1rem solid var(--color-main);
    height: 5.4rem;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--color-main);
    font-family: var(--main-font);
    padding: 1.4rem 2.9rem;
}

.btn1 {
    color: var(--color-main);
    overflow: hidden;
    width: 15.4rem;
}

.btn:hover,
.btn:active,
.btn1:hover,
.btn1:active {
    background-color: var(--color-main);
    color: var(--color-white);
    transition: 0.3s ease all;
}

.btn:hover>svg>path,
.btn:active>svg>path {
    fill: var(--color-white);
}

/* backdrop */

div.backdrop {
    display: none !important;
    place-content: center;
    grid-auto-columns: minmax(27.5rem, 44rem);
    grid-template-columns: unset !important;
    background-color: rgba(82, 82, 122, 0.4);
    padding: 0 2rem;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    margin-top: 0 !important;
}

.backdrop.opened {
    display: grid !important;
}

.modal {
    max-width: 44rem;
    border-radius: 0.7rem;
    background-color: var(--color-navmob-bg);
    padding: 5.6rem 5.4rem 4.4rem;
    position: relative;
}

.modal__title {
    text-align: center;
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 25.576px;
    /* 79.925% */
}

.modal__form {
    margin-top: 3.4rem;
    width: 100%;
}

.modal__form-inputs {
    row-gap: 2.4rem;
}

.modal__form-input {
    width: 100%;
    height: 4.3rem;
}

.modal__form-input>input {
    width: 100%;
    height: 100%;
    font-size: 1.6rem;
    font-family: var(--main-font);
    padding: 1.2rem 0.85rem;
    border-radius: 0.6rem;
    background-color: var(--color-white);
}

.modal__form-btn {
    height: 4.8rem;
    width: 100%;
    padding: 1.2rem 0.85rem;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-family: var(--main-font);
    background: var(--color-white);
    color: var(--color-main);
    margin-top: 7.6rem;
    border-radius: 1rem;
    border: 0.1rem solid var(--color-main);
}

.modal__form-btn:hover,
.modal__form-btn:active {
    background: var(--color-linear-blue);
    color: var(--color-white);
}

.modal__close {
    position: absolute;
    top: 2rem;
    right: 1rem;
}

.modal__form-input>.error-message {
    position: static;
}

.spinner {
    display: none;
    border: 1rem solid var(--color-white);
    border-top: 1rem solid var(--color-main);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    animation: spin 2s linear infinite;
    z-index: 999;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal__success {
    display: none;
    text-align: center;
    font-size: 3.2rem;
    line-height: 3.5rem;
    color: var(--color-white);
    row-gap: 1rem;
}

.modal.success>.modal__form,
.modal.success>.modal__title,
.modal.loading>.modal__form,
.modal.loading>.modal__title {
    display: none;
}

.modal.success>.modal__success {
    display: flex;
}

.modal.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.loading>.spinner {
    display: block;
}

.modal__success>i {
    color: var(--color-green);
}

/* responsive */

@media (max-width: 1395px) {

    .response__form-field,
    .response__form-field>input,
    .response__form-field>div>input {
        font-size: 1.6rem;
    }

    .response__form-field {
        padding: 0.8rem;
    }

    .inp_pad {
        padding: 1.26rem 0.8rem 0rem;
    }

    .selected {
        -moz-column-gap: 0.2rem;
        column-gap: 0.2rem;
    }

    .btn {
        height: 4.4rem;
    }
}

@media (max-width: 1366px) {
    .rff {
        padding: 0.7rem 0.4rem 0.4rem;
    }

    .rff_date,
    .budget_inp {
        padding: 1.2rem 0.8rem 0.8rem;
    }
}

@media (max-width: 1201px) {
    .response__form-field {
        padding: .4rem;
    }

    .inp_pad {
        padding: 0.6rem 0.4rem 0.4rem;
    }
}

@media (max-width: 1140px) {
    .rff>.selected>i {
        font-size: 1rem;
    }
}

/* @media only screen and (max-width: 1136px) {
    .rff>.selected>svg {
        width: 1rem;
    }
} */

@media (max-width: 1114px) {

    .response__form-field,
    .response__form-field>input,
    .response__form-field>div>input {
        font-size: 1.4rem;
        display: flex;
    }

    .rff {
        padding: 0.6rem 0.4rem 0.4rem;
    }
}

@media (max-width: 1034px) {
    /* .response__form-field {
        padding: 0.6rem;
    } */

    /* .rff>.selected>svg {
        width: 1rem;
    } */
}

@media (max-width: 1011px) {
    .selected {
        -moz-column-gap: 0rem;
        column-gap: 0rem;
    }
}

@media (max-width: 989px) {
    .form>div.form_data {
        grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    }

    .response__form-field {
        grid-column: span 2;
        padding: 1.1rem 2rem;
    }

    .selected,
    .budget_inp>div {
        justify-content: space-between;
    }

    /* .response__form-field>input,
    .response__form-field>div>input {
        font-size: 1.8rem;
    } */
}

@media (max-width: 768px) {
    .response__form {
        margin-top: 4.2rem;
    }

    .form>div.form_data {
        grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    }

    .response__form-field {
        padding: 2.1rem 3rem;
    }

    .rff>.selected>i {
        font-size: 1.4rem;
    }

    .response__form-field.budget_inp {
        display: flex;
    }

    .response__form-field>input::-webkit-input-placeholder {
        display: flex;
        text-align: start;
    }

    .budget_inp>div>input {
        width: 80%;
        text-align: start;
    }

    .response__form-field>input::-moz-placeholder {
        display: flex;
        text-align: start;
    }

    .response__form-field>input:-ms-input-placeholder {
        display: flex;
        text-align: start;
    }

    .response__form-field>input::-ms-input-placeholder {
        display: flex;
        text-align: start;
    }

    .response__form-field>input::placeholder {
        display: flex;
        text-align: start;
    }

    .response__form-field>input#myInp::-webkit-input-placeholder {
        display: flex;
        text-align: center;
    }

    .response__form-field>input#myInp::-moz-placeholder {
        display: flex;
        text-align: center;
    }

    .response__form-field>input#myInp:-ms-input-placeholder {
        display: flex;
        text-align: center;
    }

    .response__form-field>input#myInp::-ms-input-placeholder {
        display: flex;
        text-align: center;
    }

    .response__form-field>input#myInp::placeholder {
        display: flex;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .modal__form-btn {
        margin-top: 6rem;
    }
}

@media (max-width: 500px) {
    .response__form-field {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .response {
        margin-top: 4rem;
        padding: 2rem;
    }

    .response__form {
        margin-top: 2.8rem;
    }

    .response__form-buttons {
        flex-direction: column;
        row-gap: 1.2rem;
        margin-top: 3.8rem;
    }

    .btn {
        width: 100%;
    }
}