﻿.contacts {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    background: linear-gradient(135deg,#eef5ff 0%,#ffffff 45%,#f7fbff 100%);
}

    .contacts::before,
    .contacts::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        z-index: 0;
    }

    .contacts::before {
        width: 380px;
        height: 380px;
        background: rgba(37,99,235,.15);
        top: -120px;
        left: -120px;
    }

    .contacts::after {
        width: 420px;
        height: 420px;
        background: rgba(14,165,233,.12);
        bottom: -180px;
        right: -120px;
    }

    .contacts .container {
        position: relative;
        z-index: 2;
    }

/* TITLE */

.contact-form-title {
    text-align: center;
    margin-bottom: 55px;
}

    .contact-form-title h3 {
        margin-bottom: 15px;
        font-weight: 800;
        position: relative;
        color: #203f98;
        font-size: 35px;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: -.5px;
        font-family: 'Montserrat-ExtraBold';
    }

        .contact-form-title h3::after {
            content: "";
            width: 90px;
            height: 5px;
            border-radius: 20px;
            background: linear-gradient(90deg,#2563eb,#38bdf8);
            display: block;
            margin: 18px auto 0;
        }

    .contact-form-title p {
        max-width: 570px;
        margin: auto;
        color: #64748b;
        font-size: 18px;
        line-height: 148%;
        font-family: 'Montserrat-Medium';
    }

/* LAYOUT */

.full-contact-child .item {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.lefts {
    width: 40%;
}

.rights {
    flex: 1;
}

/* CARD */

.contact-info-box,
.contact-form-box {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(15,23,42,.08);
    transition: all .45s ease;
    position: relative;
    overflow: hidden;
}

    .contact-info-box:hover,
    .contact-form-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 80px rgba(15,23,42,.12);
    }

    .contact-info-box::before,
    .contact-form-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(37,99,235,.08), transparent 45%, rgba(14,165,233,.08));
        pointer-events: none;
    }

.contact-info-box {
    padding: 40px;
}

.contact-form-box {
    padding: 40px 45px;
}

/* LEFT */

.heading-contact {
    font-weight: 800;
    margin-bottom: 18px;
    color: #203f98;
    font-size: 22px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: -.5px;
    font-family: 'Montserrat-ExtraBold';
}

.desc-contact {
    color: #64748b;
    line-height: 185%;
    margin-bottom: 35px;
    font-size: 16px;
}

/* CONTACT ITEM */

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    margin-bottom: 18px;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat-Medium';
}

    .contact-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(14,165,233,.03));
        opacity: 0;
        transition: .35s;
    }

    .contact-item:hover::before {
        opacity: 1;
    }

    .contact-item:hover {
        transform: translateX(8px);
    }

.contact-icon {
    width: 65px;
    height: 65px;
    min-width: 65px;
    border-radius: 22px;
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    position: relative;
    overflow: hidden;
    transition: all .4s ease;
    box-shadow: 0 15px 30px rgba(37,99,235,.25);
}

.contact-item:hover .contact-icon {
    transform: rotate(-8deg) scale(1.08);
}

.contact-icon::after {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    background: rgba(255,255,255,.25);
    transform: rotate(45deg) translateX(-120%);
    transition: .7s;
}

.contact-item:hover .contact-icon::after {
    transform: rotate(45deg) translateX(120%);
}

.contact-content h4 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0f172a;
    font-weight: 700;
    font-family: 'Montserrat-ExtraBold';
}

.contact-content p,
.contact-content a {
    color: #64748b;
    line-height: 180%;
    text-decoration: none;
    transition: .3s;
    margin: 0;
}

    .contact-content a:hover {
        color: #2563eb;
    }

/* FORM */

.form-title {
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 800;
    color: #203f98;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: -.5px;
    font-family: 'Montserrat-ExtraBold';
    white-space: nowrap;
}

.form-subtitle {
    color: #64748b;
    line-height: 180%;
    margin-bottom: 35px;
}

.form-row {
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
}

.form-group {
    flex: 1;
    position: relative;
    float: unset;
}

    .form-group.full {
        width: 100%;
        margin-bottom: 22px;
    }

/* INPUT */

.form-control {
    width: 100%;
    height: 62px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    padding: 0 22px;
    font-size: 16px;
    transition: all .35s ease;
    outline: none;
    font-family: 'Montserrat-Medium';
}

textarea.form-control {
    height: 180px;
    resize: none;
    padding-top: 20px;
}

.form-control:hover {
    border-color: #93c5fd;
    background: #fff;
}

.form-control:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37,99,235,.1);
    transform: translateY(-2px);
}

/* VALIDATOR */

.warning {
    position: absolute;
    top: 20px;
    right: 18px;
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
}

/* CAPTCHA */

.capcha-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.imgCapcha {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    background: #fff;
    padding: 4px;
}

.btnRefresh {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .45s ease;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

    .btnRefresh:hover {
        transform: rotate(180deg) scale(1.08);
    }

/* BUTTON */

.action-buttons {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.btn-contact {
    position: relative;
    overflow: hidden;
    height: 60px;
    border: none;
    padding: 0 38px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .4s ease;
    font-family: 'Montserrat-ExtraBold';
}

    .btn-contact::before {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,.25);
        transform: skewX(-20deg);
        transition: .7s;
    }

    .btn-contact:hover::before {
        left: 120%;
    }

.btn-send {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: #fff;
    box-shadow: 0 18px 35px rgba(37,99,235,.28);
    font-family: 'Montserrat-ExtraBold';
}

    .btn-send:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 40px rgba(37,99,235,.35);
    }

.btn-reset {
    background: #eef4ff;
    color: #334155;
}

    .btn-reset:hover {
        background: #dbeafe;
        transform: translateY(-4px);
    }

/* MAP */

.form-map-full {
    margin-top: 28px;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(15,23,42,.08);
}

    .form-map-full iframe {
        display: block;
        transition: transform .6s ease;
    }

    .form-map-full:hover iframe {
        transform: scale(1.02);
    }

/* SUCCESS */

.contact-success {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: 16px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    line-height: 170%;
    animation: fadeInUp .4s ease;
}

/* ANIMATION */

@keyframes fadeInUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:1023px) {

    .full-contact-child .item {
        flex-direction: column;
    }

    .lefts,
    .rights {
        width: 100%;
    }

    .contact-form-title h3 {
        font-size: 40px;
    }
}

@media(max-width:767px) {

    .contacts {
        padding: 55px 0;
    }

    .contact-form-title h3 {
        font-size: 20px;
        margin-top: 0;
    }

    .contact-form-title {
        margin-bottom: 25px;
    }

        .contact-form-title p {
            font-size: 15px;
        }

    .contact-info-box,
    .contact-form-box {
        padding: 14px;
        border-radius: 24px;
    }

    .heading-contact,
    .form-title {
        font-size: 18px;
    }

    .desc-contact {
        font-size: 15px;
        text-align: justify;
    }

    .form-subtitle {
        font-size: 15px;
        text-align: justify;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-contact {
        width: 100%;
    }

    .contact-item {
        padding: 10px;
    }

    .contact-content h4 {
        font-size: 15px;
    }

    .contact-content p, .contact-content a {
        font-size: 13px;
    }

    .contact-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 20px;
    }
}
