/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;

    background:
        linear-gradient(100deg,
            rgba(5, 12, 20, .82),
            rgba(7, 17, 28, .96)),
        url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 50%,
            rgba(229, 35, 41, .22),
            transparent 30%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
    padding: 65px 0;
}

.contact-hero-content h1 {
    margin-top: 5px;

    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.3;
    font-weight: 800;
}

.contact-hero-content h1 span {
    color: var(--primary);
}

.contact-hero-content p {
    max-width: 650px;
    margin: 12px auto 0;

    color: #cbd2da;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 55px;

    align-items: start;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
    padding-top: 8px;
}

.contact-info .section-heading {
    text-align: right;
    margin-bottom: 28px;
}

.contact-info .section-heading h2 {
    font-size: 30px;
}

.contact-info .section-heading h2::after {
    margin: 10px 0 0;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px;

    margin-bottom: 12px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: 0 7px 22px rgba(0, 0, 0, .035);

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.contact-info-card:hover {
    transform: translateY(-3px);

    border-color: #f0b9bb;

    box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
}

.contact-info-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    color: var(--primary);

    background: #fff1f1;

    border-radius: 12px;

    font-size: 18px;
}

.contact-info-card>div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.contact-info-card span {
    color: var(--muted);

    font-size: 10px;
    margin-bottom: 2px;
}

.contact-info-card strong {
    color: var(--text);

    font-size: 12px;
}


/* =========================================================
   SOCIAL
========================================================= */

.contact-social {
    margin-top: 25px;
}

.contact-social h3 {
    font-size: 13px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #fff;

    background: var(--dark-2);

    border-radius: 10px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}


/* =========================================================
   CONTACT FORM CARD
========================================================= */

.contact-form-card {
    padding: 32px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

.contact-form-heading {
    margin-bottom: 25px;
}

.contact-form-heading h2 {
    font-size: 25px;
    margin-top: 3px;
}

.contact-form-heading p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #323a44;

    font-size: 11px;
    font-weight: 700;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 50px;

    padding: 0 13px;

    background: #fff;

    border: 1px solid #e1e4e8;
    border-radius: 11px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(229, 35, 41, .08);
}

.input-wrapper>i {
    flex: 0 0 auto;

    color: #a1a8b1;

    font-size: 14px;
}

.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 11px;

    font-family: inherit;
}

.input-wrapper input {
    height: 48px;
}

.input-wrapper textarea {
    resize: vertical;

    min-height: 125px;

    padding: 13px 0;

    line-height: 1.8;
}

.select-wrapper select {
    height: 48px;

    cursor: pointer;

    appearance: none;
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper>i {
    margin-top: 14px;
}

.form-error {
    min-height: 15px;

    color: var(--primary);

    font-size: 9px;
}

.input-error {
    border-color: var(--primary) !important;

    background: #fffafa;
}

.contact-submit {
    width: 100%;

    min-height: 50px;

    margin-top: 2px;

    cursor: pointer;

    font-size: 12px;
}

.form-success {
    display: none;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 12px;

    color: #167342;

    background: #eefaf3;

    border: 1px solid #ccefdc;

    border-radius: 10px;

    font-size: 11px;
}

.form-success.show {
    display: flex;
}


/* =========================================================
   QUICK HELP
========================================================= */

.contact-help {
    padding: 0 0 80px;
}

.contact-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 35px 40px;

    color: #fff;

    background:
        radial-gradient(circle at 90% 50%,
            rgba(229, 35, 41, .25),
            transparent 35%),
        linear-gradient(135deg,
            #07111f,
            #102033);

    border-radius: 20px;
}

.contact-help-box h2 {
    margin-top: 4px;

    font-size: 24px;
}

.contact-help-box p {
    color: #aeb8c4;

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-card {
        order: 1;
    }

    .contact-info .section-heading {
        text-align: center;
    }

    .contact-info .section-heading h2::after {
        margin: 10px auto 0;
    }

    .contact-help-box {
        padding: 30px;

        flex-direction: column;

        text-align: center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .contact-hero {
        min-height: 250px;
    }

    .contact-hero-content {
        padding: 50px 0;
    }

    .contact-hero-content h1 {
        font-size: 32px;
    }

    .contact-hero-content p {
        font-size: 10px;
        line-height: 2;
    }

    .contact-section {
        padding: 55px 0;
    }

    .contact-grid {
        gap: 30px;
    }

    .contact-form-card {
        padding: 20px 15px;

        border-radius: 16px;
    }

    .contact-form-heading h2 {
        font-size: 21px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-info-card {
        padding: 13px;
    }

    .contact-info-icon {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

    .contact-info-card strong {
        font-size: 10px;
    }

    .contact-help {
        padding-bottom: 55px;
    }

    .contact-help-box {
        padding: 25px 18px;
        border-radius: 15px;
    }

    .contact-help-box h2 {
        font-size: 19px;
    }

    .contact-help-box p {
        font-size: 9px;
        line-height: 1.9;
    }

    .contact-help-box .primary-btn {
        width: 100%;
        font-size: 11px;
    }

}
a.primary-btn {
    padding: 10px;
}