/* Header Section */
.hero-section {
    padding: 200px 24px 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
    overflow: hidden;
}

.hero-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.hero-title {
    font-size: 70px;
    font-weight: 700;
    line-height: 80.96px;
    text-align: center;
    display: block;
}

.hero-title-blue {
    color: var(--color-primary);
}

.hero-title-orange {
    color: var(--color-secondary);
}

.hero-title-gray {
    color: var(--color-text-light);
}

.hero-description {
    width: 664px;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    color: var(--color-text-secondary);
    text-align: center;
    word-wrap: break-word;
}

.hero-image {
    max-width: 1392px;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .hero-section {
        padding: 150px 24px 12px;
        gap: 32px;
    }

    .hero-content-container {
        gap: 24px;
    }

    .hero-text-container {
        gap: 12px;
    }

    .hero-title {
        font-size: 50px;
        line-height: 60px;
    }

    .hero-description {
        width: 100%;
        font-size: 16px;
        line-height: 24px;
    }

    .hero-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 20px 12px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 48px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 20px;
    }
}


/* Form section */
.contact-box {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
    align-items: center;
}

.contact-box .card {
    display: flex;
    flex-direction: column;
    max-width: 716px;
    width: 100%;
    height: 306px;
    padding: 46px 34px 42px;
}

.contact-box .form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-box.form__group {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.contact-box .form__group .form__control:first-child {
    margin-right: 35px;
}

.contact-box .form__control {
    width: 100%;
    border: none;
    outline: none;
    border-bottom: 1px solid;
    line-height: 1.5;
    font-size: 16px;
    padding-bottom: 6px;
    margin-bottom: 24px;
    font-weight: 500;
}

.contact-box .form__control:focus {
    border-bottom: 1px solid;
}

.contact-box textarea {
    resize: none;
    width: 100%;
    overflow: auto;
    max-height: 50px;
}

.contact-box .action {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.contact-box .action .button {
    width: 100px;
    background-color: var(--color-primary);
    color: var(--white);
}

.contact-box .action .button:disabled {
    background-color: var(--color-border);
    color: var(--white);
}

.contact-box .card__title,
.contact-box .info__title {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.17;
    margin-bottom: 24px;
}

.contact-box .info {
    display: flex;
    flex-direction: column;
    padding: 30px 34px;
    width: 100%;
    max-width: 433px;
    border-radius: 12px;
    background-color: var(--color-border-gray);
    position: absolute;
    left: 0;
}

.contact-box .info__contacts {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.contact-box .contact {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}

.contact-box .contact:not(:last-child) {
    margin-bottom: 14px;
}

.contact-box .contact .icon {
    width: 20px;
    color: var(--color-text);
    margin-right: 12px;
    font-size: 16px;
    line-height: 1;
}

.contact-box .social-links {
    display: flex;
}

.contact-box .social-links .icon {
    font-size: 30px;
    height: 30px;
    color: var(--color-text);
}

.contact-box .social-links .icon:not(:last-child) {
    margin-right: 20px;
}

.contact-box .icon-location,
.contact-box .icon-phone {
    font-size: 18px;
}

.contact-box .loader {
    border: 3px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 2s linear infinite;
    margin: 3px 30px;
}

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

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

.contact-box .hide-loader {
    display: none;
}

@media screen and (max-width: 768px) {
    .contact-box {
        height: 588px;
        background-size: auto;
    }

    .contact-box .card {
        max-width: 542px;
        height: 282px;
        padding: 40px 20px;
    }

    .contact-box .card_title {
        font-size: 20px;
        line-height: 1.3;
    }
}

@media screen and (max-width: 480px) {
    .contact-box {
        height: auto;
    }

    .contact-box .card {
        height: auto;
        padding: 30px 20px;
    }

    .contact-box .card .description {
        margin-bottom: 30px;
    }

    .contact-box .card .form__group {
        flex-direction: column;
    }

    .contact-box .card .form__group .form__control {
        margin-right: 0;
    }
}