/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    position: relative;
    overflow: hidden;

    padding: 80px 0px;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(47, 109, 246, 0.045),
            transparent 45%
        ),
        #f8fafc;
}


/* =========================
   BACKGROUND GRID
========================= */

.contact-section::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            to right,
            rgba(47, 109, 246, 0.045) 1px,
            transparent 1px
        );

    background-size: 155px 100%;
}


/* =========================
   DECORATIVE LINES
========================= */

.contact-bg-line {
    position: absolute;

    pointer-events: none;

    border: 1px solid rgba(47, 109, 246, 0.12);

    border-radius: 50%;
}

.contact-bg-line-1 {
    width: 700px;
    height: 700px;

    right: -390px;
    bottom: -510px;
}

.contact-bg-line-2 {
    width: 520px;
    height: 520px;

    right: -280px;
    bottom: -370px;
}


/* =========================
   LEFT
========================= */

.contact-left {
    position: relative;
    z-index: 2;

    padding-right: 55px;
}


.contact-eyebrow {
    margin-bottom: 20px;

    font-size: 11px;
    line-height: 1;

    font-weight: 600;
    letter-spacing: 0.28em;

    color: #667085;
}


.contact-title {
    margin: 0;

    font-size: clamp(48px, 5vw, 70px);
    line-height: 0.96;

    letter-spacing: -0.055em;

    font-weight: 600;

    color: var(--color-text);
}

.contact-title span {
    color: var(--color-primary);
}


.contact-description {
    max-width: 455px;

    margin: 28px 0 38px;

    font-size: 16px;
    line-height: 1.65;

    color: var(--color-text-muted);
}


/* =========================
   CONTACT INFO
========================= */

.contact-info {
    display: flex;
    flex-direction: column;

    width: fit-content;
}


.contact-info-item {
    display: flex;
    align-items: center;

    gap: 16px;

    padding: 12px 0;

    color: inherit;
    text-decoration: none;

    transition: transform 0.3s ease;
}

a.contact-info-item:hover {
    transform: translateX(5px);
}


.contact-info-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eaf1ff;

    color: var(--color-primary);

    font-size: 14px;
}


.contact-info-text {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.contact-info-text span {
    font-size: 14px;

    color: #7a8493;
}


.contact-info-text strong {
    font-size: 14px;

    font-weight: 500;

    color: var(--color-text);
}


/* =========================
   SOCIAL
========================= */

.contact-social {
    display: flex;
    align-items: center;

    gap: 20px;

    margin-top: 25px;
}


.contact-social-label {
    font-size: 13px;

    color: #657181;
}


.contact-social-links {
    display: flex;
    align-items: center;

    gap: 9px;
}


.contact-social-links a {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dce3ec;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.7);

    color: var(--color-text);

    font-size: 14px;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}


.contact-social-links a:hover {
    transform: translateY(-4px);

    background: var(--color-primary);

    border-color: var(--color-primary);

    color: #fff;
}


/* =========================
   FORM
========================= */

.contact-form-wrap {
    position: relative;
    z-index: 2;

    padding-left: 35px;
}


.contact-form-eyebrow {
    margin-bottom: 13px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 0.25em;

    color: #667085;
}


.contact-form-title {
    margin: 0;

    font-size: clamp(32px, 3vw, 46px);

    line-height: 1.05;

    letter-spacing: -0.045em;

    font-weight: 600;

    color: var(--color-text);
}


.contact-form-description {
    margin: 12px 0 30px;

    font-size: 14px;

    color: var(--color-text-muted);
}


/* =========================
   FORM FIELDS
========================= */

.contact-form {
    width: 100%;
}


.form-field {
    position: relative;
}


.form-field label {
    position: absolute;

    top: 14px;
    left: 19px;

    z-index: 2;

    font-size: 11px;

    font-weight: 500;

    color: #394150;

    pointer-events: none;
}


.form-field label span {
    color: var(--color-primary);
}


.form-field input,
.form-field textarea {
    width: 100%;

    border: 1px solid #dce4ef;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.68);

    color: var(--color-text);

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.form-field input {
    height: 76px;

    padding: 31px 18px 8px;
}


.form-field textarea {
    min-height: 155px;

    resize: vertical;

    padding: 32px 18px 14px;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca9bc;

    opacity: 1;
}


.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(47, 109, 246, 0.55);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(47, 109, 246, 0.07);
}


/* =========================
   SUBMIT
========================= */

.contact-submit-wrap {
    display: flex;
    justify-content: flex-end;

    margin-top: 3px;
}


.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    min-width: 185px;

    height: 54px;

    padding: 0 23px;

    border: 0;

    border-radius: 50px;

    background: var(--color-primary);

    color: #fff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


.contact-submit i {
    transition: transform 0.3s ease;
}


.contact-submit:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(47, 109, 246, 0.25);
}


.contact-submit:hover i {
    transform: translateX(4px);
}


/* =========================
   HANDWRITTEN NOTE
========================= */

.contact-hand-note {
    position: absolute;

    top: 45px;
    right: 45px;

    z-index: 3;

    display: flex;
    flex-direction: column;

    color: #59677c;

    font-family:
        "Comic Sans MS",
        "Segoe Print",
        cursive;

    font-size: 13px;

    line-height: 1.3;

    transform: rotate(-5deg);
}


.contact-hand-note svg {
    width: 75px;
    height: 55px;

    margin-top: 2px;
    margin-left: -10px;
}


/* =========================
   DOT PATTERN
========================= */

.contact-dots {
    position: absolute;

    right: 20px;
    bottom: 45px;

    display: grid;

    grid-template-columns: repeat(4, 5px);

    gap: 9px;

    opacity: 0.8;
}


.contact-dots span {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--color-primary);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {

    .contact-left {
        padding-right: 25px;
    }

    .contact-form-wrap {
        padding-left: 20px;
    }

    .contact-hand-note {
        right: 25px;
    }

}


@media (max-width: 991.98px) {

    .contact-section {
        padding: 95px 0;
    }

    .contact-left {
        padding-right: 0;
    }

    .contact-form-wrap {
        padding-left: 0;
        margin-top: 65px;
    }

    .contact-hand-note {
        display: none;
    }

    .contact-dots {
        right: 25px;
    }

}


@media (max-width: 767.98px) {

    .contact-section {
        padding: 75px 0;
    }

    .contact-title {
        font-size: 46px;
    }

    .contact-description {
        font-size: 14px;

        margin: 22px 0 30px;
    }

    .contact-social {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-top: 20px;
    }

    .contact-form-wrap {
        margin-top: 55px;
    }

    .contact-form-title {
        font-size: 32px;
    }

    .contact-form-description {
        line-height: 1.5;
    }

    .form-field input {
        height: 72px;
    }

    .contact-submit-wrap {
        justify-content: flex-start;

        margin-top: 4px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-dots {
        display: none;
    }

}


@media (max-width: 480px) {

    .contact-section {
        padding: 65px 0;
    }

    .contact-title {
        font-size: 40px;
    }

    .contact-form-title {
        font-size: 29px;
    }

}

.contact-form-message {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-message.success {
    color: #198754;
}

.contact-form-message.error {
    color: #dc3545;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-submit.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.contact-submit.is-loading i {
    display: none;
}

.contact-submit.is-loading span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.contact-submit.is-loading span::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contactLoader 0.7s linear infinite;
}

@keyframes contactLoader {
    to {
        transform: rotate(360deg);
    }
}