.contact-form {
    position: relative;
    overflow: hidden;
    background-color: #eef2f9;
    background-image: url(/src/assets/img/contact-form/contact-bg.png);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        95deg,
        rgba(248, 250, 252, 0.97) 0%,
        rgba(248, 250, 252, 0.88) 45%,
        rgba(248, 250, 252, 0.55) 72%,
        rgba(248, 250, 252, 0.2) 100%
    );
    pointer-events: none;
}

.contact-form__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.contact-form__glow--1 {
    width: min(380px, 55vw);
    height: min(380px, 55vw);
    top: -120px;
    right: -60px;
    background: var(--accent-color);
    opacity: 0.22;
}

.contact-form__glow--2 {
    width: min(280px, 40vw);
    height: min(280px, 40vw);
    bottom: -80px;
    left: -40px;
    background: var(--primary-color);
    opacity: 0.12;
}

.contact-form__container {
    position: relative;
    z-index: 1;
}

.contact-form__head {
    margin-bottom: clamp(24px, 3.5vw, 40px);
}

.contact-form__tag {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.contact-form__title {
    margin: 0;
    color: var(--dark-color);
}

.contact-form__wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 520px);
    gap: clamp(22px, 3vw, 40px);
    align-items: stretch;
}

.contact-form__map {
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    background-color: #eef2f7;
    background-image:
        linear-gradient(rgba(0, 18, 63, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 18, 63, 0.04) 1px, transparent 1px),
        linear-gradient(160deg, rgba(20, 190, 254, 0.1) 0%, transparent 42%),
        linear-gradient(145deg, #e2e8f0 0%, #f8fafc 100%);
    background-size:
        22px 22px,
        22px 22px,
        auto,
        auto;
    border: 1px solid rgba(0, 18, 63, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 18, 63, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-form__panel {
    padding: clamp(22px, 3vw, 36px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 4px 24px rgba(0, 18, 63, 0.06),
        0 20px 50px rgba(0, 18, 63, 0.08);
    height: fit-content;
}

.contact-form__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: clamp(22px, 3vw, 28px);
}

.contact-form__info-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 16px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 190, 254, 0.07), rgba(0, 18, 63, 0.03));
    border: 1px solid rgba(20, 190, 254, 0.14);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form__info-block:hover {
    border-color: rgba(20, 190, 254, 0.28);
    box-shadow: 0 8px 24px rgba(20, 190, 254, 0.1);
}

.contact-form__info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(0, 18, 63, 0.06);
}

.contact-form__info-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.contact-form__info-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray-color);
}

.contact-form__info-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-color);
    word-break: break-word;
}

.contact-form__panel a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-form__panel a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

.contact-data__block {
    background: #fff;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 2px 10px #29a1dd24;
}

.contact-data__block p {
    line-height: 140%;
    font-size: 20px;
}

.contact-form__image {
    border-radius: var(--border-radius);
}

.form__title {
    font-size: 20px;
    font-weight: 600;
}

.form__text {
    font-size: 16px;
    color: var(--gray-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form__fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form__field {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
}

.form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
}

.form__input {
    padding: 14px 16px;
    border: 1px solid rgba(0, 18, 63, 0.12);
    width: 100%;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form__input::placeholder {
    color: var(--gray-color);
}

.form__input:hover {
    border-color: rgba(20, 190, 254, 0.35);
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(20, 190, 254, 0.22);
    background: #fff;
}

.form__input--textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form__button.button {
    align-self: flex-start;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    box-shadow: 0 8px 28px rgba(20, 190, 254, 0.28);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.2s ease;
}

.form__button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(20, 190, 254, 0.38);
}

.form__button.button:active {
    transform: translateY(0);
}

.form__checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.form__checkbox-label {
    color: var(--text-gray-color);
    font-size: 12px;
    max-width: 100%;
    line-height: 1.45;
    cursor: pointer;
}

.contacts-info {
    padding: 30px;
    border-radius: 10px;
    background: #f0f8fc;
    color: #29a1dd;
    font-size: 18px;
    line-height: 140%;
}

.contacts-info .section-title {
    color: #29a1dd;
}

@media (max-width: 975px) {
    .contact-form__wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form__map {
        order: 2;
        min-height: 280px;
    }

    .contact-form__panel {
        order: 1;
    }
}

@media (max-width: 715px) {
    .contact-form__info {
        grid-template-columns: 1fr;
    }

    .form__fields {
        grid-template-columns: 1fr;
    }

    .contact-form__image {
        width: 100%;
        object-fit: cover;
    }

    .form__button.button {
        width: 100%;
        align-self: stretch;
    }

    .contacts-info {
        padding: 10px;
        font-size: 16px;
    }
}
