﻿.home-form {
    padding: 4px 0 24px;
    padding-bottom: 40px;
}

.home-form .container {
    min-height: 118px;
    border-radius: 16px;
    background: linear-gradient(90deg, #ff7a1f 0%, #ff983f 100%);
    box-shadow: 0 10px 24px rgba(251, 97, 4, 0.14);
    padding: 18px 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 72px 270px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.home-form .img {position: relative;display: flex;align-items: center;justify-content: center;width: 72px;}

.home-form .img img {
    width: 95px;
    height: auto;
    display: block;
    transform: translateY(6px);
    position: absolute;
}

.home-form .img img[src=""] {
    opacity: 0;
}

.home-form .content .title {
    margin-bottom: 8px;
}

.home-form .content .title span {
    display: block;
    font-size: 18px;
    
    color: #fff;
    font-weight: 600;
}

.home-form .content .description {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-form .content .description span {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.home-form .group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 138px;
    gap: 10px;
    align-items: center;
}

.home-form .group .input {
    min-width: 0;
}

.home-form .group .input input {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: #fff;
    padding: 0 14px;
    outline: none;
    font-size: 13px;
    color: var(--color-2);
    line-height: 100%;
}

.home-form .group .input input::placeholder {
    color: #999;
}

.home-form .group .input input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.home-form .group .btn {
    border: 0;
    border-radius: 8px;
    background: #f9690b;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 100%;
    height: 46px;
    padding: 15px 12px;
    cursor: pointer;
}

.home-form-submit-hidden {
    display: none !important;
}


/* Home form responsive */
@media (max-width: 1023px) {
    .home-form {
        padding: 4px 0 32px;
    }

    .home-form .container {
        display: flex;
        flex-direction: column;
        align-items: unset;
        gap: 22px;
    }

    .home-form .img {
        display: none;
    }

    .home-form .content {
        grid-column: 2;
        grid-row: 1;
    }

    .home-form .content .title span {
        font-size: 20px;
    }

    .home-form .group {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-form .group .input:nth-child(3) {
        grid-column: 1 / -1;
    }

    .home-form .group .btn {
        grid-column: 1 / -1;
        min-height: 48px;
    }
}

@media (max-width: 767px) {
    .home-form {
        padding: 2px 0 26px;
    }

    .home-form .container {
        position: relative;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 18px 18px;
        border-radius: 16px;
        background: linear-gradient(145deg, #ff7217 0%, #ff9b43 100%);
    }

    .home-form .img {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 64px;
        height: 64px;
        opacity: 0.92;
    }

    .home-form .img img {
        position: static;
        width: 76px;
        transform: none;
    }

    .home-form .content {
        grid-column: 1;
        padding-right: 74px;
    }

    .home-form .content .title {
        margin-bottom: 7px;
    }

    .home-form .content .title span {
        font-size: 20px;
    }

    .home-form .content .description span {
        font-size: 12px;
    }

    .home-form .group {
        grid-column: 1;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-form .group .input:nth-child(3),
    .home-form .group .btn {
        grid-column: 1;
    }

    .home-form .group .input input,
    .home-form .group .btn {
        height: 43px;
        border-radius: 10px;
    }

    .home-form .group .input input {
        padding: 0 15px;
        font-size: 14px;
    }

    .home-form .group .btn {
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 8px 18px rgba(180, 63, 0, 0.2);
    }
}

@media (max-width: 374px) {
    .home-form .container {
        padding: 20px 14px 14px;
    }

    .home-form .img {
        width: 52px;
        height: 52px;
        right: 10px;
    }

    .home-form .img img {
        width: 62px;
    }

    .home-form .content {
        padding-right: 0;
    }

    .home-form .content .title span {
        font-size: 18px;
    }
}
