/* ==========================================================
   CONTACT PAGE
========================================================== */


/* ==========================================================
   CONTACT HERO
========================================================== */

.contact-hero {
    position: relative;
    overflow: hidden;

    padding: 95px 0 90px;

    background:
        radial-gradient(circle at 85% 20%,
            rgba(49, 94, 251, 0.14),
            transparent 30%),
        radial-gradient(circle at 10% 85%,
            rgba(20, 184, 166, 0.08),
            transparent 28%),
        linear-gradient(135deg,
            #f7f9ff 0%,
            #ffffff 55%,
            #f8fbff 100%);
}

.contact-hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -120px;
    top: -130px;

    border: 1px solid rgba(49, 94, 251, 0.08);

    border-radius: 50%;
}

.contact-hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    left: -80px;
    bottom: -100px;

    border: 1px solid rgba(49, 94, 251, 0.06);

    border-radius: 50%;
}

.contact-hero-content {
    position: relative;

    z-index: 2;

    max-width: 820px;
}

.contact-hero h1 {
    max-width: 760px;

    margin: 15px 0 18px;
}

.contact-hero h1 span {
    color: #315efb;
}

.contact-hero p {
    max-width: 680px;

    margin: 0;

    color: #64748b;

    font-size: 17px;

    line-height: 1.8;
}

.contact-hero-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* ==========================================================
   CONTACT SECTION
========================================================== */

.contact-section {
    background: #ffffff;
}

.contact-heading {
    align-items: end;
}

.contact-heading>p {
    max-width: 560px;
}


/* ==========================================================
   CONTACT GRID
========================================================== */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr) minmax(0, 1.1fr);

    gap: 28px;

    margin-top: 48px;

    align-items: stretch;
}


/* ==========================================================
   CONTACT INFORMATION
========================================================== */

.contact-info {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ==========================================================
   CONTACT CARD
========================================================== */

.contact-card {
    padding: 34px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 20px;

    box-shadow:
        0 10px 35px rgba(15, 23, 42, 0.05);
}

.contact-card-header {
    margin-bottom: 25px;
}

.contact-card h2 {
    margin: 10px 0 8px;

    color: #172033;
}

.contact-card-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT ITEM
========================================================== */

.contact-item {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    width: 100%;

    padding: 17px 0;

    border-top: 1px solid #edf0f5;

    text-decoration: none;

    color: inherit;
}

.contact-item:first-of-type {
    border-top: 0;
}

.contact-item:hover .contact-icon {
    background: #315efb;

    color: #ffffff;

    border-color: #315efb;
}

.contact-item:hover .contact-arrow {
    transform: translateX(4px);

    color: #315efb;
}


/* ==========================================================
   CONTACT ICON
========================================================== */

.contact-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f1f5ff;

    border: 1px solid #e2e9ff;

    color: #315efb;

    font-size: 16px;

    font-weight: 800;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.contact-item-content {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}

.contact-label {
    color: #94a3b8;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.contact-item-content strong {
    color: #172033;

    font-size: 14px;

    line-height: 1.4;

    word-break: break-word;
}

.contact-item-content small {
    color: #64748b;

    font-size: 12px;

    line-height: 1.4;
}

.contact-arrow {
    margin-left: auto;

    color: #94a3b8;

    font-size: 18px;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


/* ==========================================================
   RESPONSE CARD
========================================================== */

.response-card {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 25px;

    background:
        linear-gradient(135deg,
            #f7f9ff,
            #ffffff);

    border: 1px solid #e2e8f5;

    border-radius: 18px;
}

.response-icon {
    flex: 0 0 auto;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #315efb;

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;
}

.response-card h3 {
    margin: 2px 0 6px;

    color: #172033;

    font-size: 16px;
}

.response-card p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT FORM CARD
========================================================== */

.contact-form-card {
    padding: 38px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 20px;

    box-shadow:
        0 12px 40px rgba(15, 23, 42, 0.055);
}

.form-card-header {
    margin-bottom: 26px;
}

.form-card-header h2 {
    margin: 10px 0 8px;

    color: #172033;
}

.form-card-header p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   CONTACT FORM
========================================================== */

#pageEnquiryForm {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.contact-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

#pageEnquiryForm label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;
}

#pageEnquiryForm input,
#pageEnquiryForm select,
#pageEnquiryForm textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dce3eb;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#pageEnquiryForm input:hover,
#pageEnquiryForm select:hover,
#pageEnquiryForm textarea:hover {
    border-color: #c7d1df;
}

#pageEnquiryForm input:focus,
#pageEnquiryForm select:focus,
#pageEnquiryForm textarea:focus {
    border-color: #315efb;

    box-shadow:
        0 0 0 3px rgba(49, 94, 251, 0.1);

    background: #ffffff;
}

#pageEnquiryForm textarea {
    min-height: 145px;

    resize: vertical;
}

#pageEnquiryForm input::placeholder,
#pageEnquiryForm textarea::placeholder {
    color: #a1adbd;
}

#pageEnquiryForm select {
    cursor: pointer;
}


/* ==========================================================
   FORM BUTTON
========================================================== */

#pageEnquiryForm .btn {
    margin-top: 3px;
}

#pageEnquiryForm .btn span {
    font-size: 17px;

    transition:
        transform 0.2s ease;
}

#pageEnquiryForm .btn:hover span {
    transform: translateX(3px);
}


/* ==========================================================
   FORM STATUS
========================================================== */

.form-status {
    min-height: 20px;

    text-align: center;

    font-size: 13px;

    line-height: 1.5;
}


/* ==========================================================
   CONTACT HELP
========================================================== */

.contact-help {
    padding: 20px 0 90px;

    background: #ffffff;
}

.contact-help-box {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    padding: 48px 55px;

    overflow: hidden;

    border-radius: 22px;

    background:
        radial-gradient(circle at 90% 15%,
            rgba(255, 255, 255, 0.14),
            transparent 28%),
        linear-gradient(135deg,
            #172033,
            #24355c);

    color: #ffffff;
}

.contact-help-box::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -90px;
    bottom: -120px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50%;
}

.contact-help-box>div {
    position: relative;

    z-index: 2;
}

.contact-help-box .eyebrow {
    color: #a9bcff;
}

.contact-help-box h2 {
    margin: 10px 0 10px;

    color: #ffffff;
}

.contact-help-box p {
    max-width: 600px;

    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 14px;

    line-height: 1.75;
}

.contact-help-box .btn {
    position: relative;

    z-index: 2;

    flex: 0 0 auto;
}

.contact-help-box .btn span {
    font-size: 17px;
}


/* ==========================================================
   MODAL
========================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.active,
.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(15, 23, 42, 0.62);

    backdrop-filter: blur(5px);
}

.modal-box {
    position: relative;

    z-index: 2;

    width: min(100%, 560px);

    max-height: 90vh;

    overflow-y: auto;

    padding: 38px;

    background: #ffffff;

    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.25);

    animation: contactModalIn 0.25s ease;
}

@keyframes contactModalIn {

    from {
        opacity: 0;

        transform:
            translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }

}

.modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f1f5f9;

    color: #475569;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;

    color: #172033;
}

.modal-box h2 {
    margin: 10px 0 8px;

    color: #172033;
}

.modal-intro {
    margin: 0 0 25px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   MODAL FORM
========================================================== */

#enquiryForm {
    display: flex;

    flex-direction: column;

    gap: 17px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

#enquiryForm label {
    display: flex;

    flex-direction: column;

    gap: 7px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;
}

#enquiryForm input,
#enquiryForm select,
#enquiryForm textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #dce3eb;

    border-radius: 9px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#enquiryForm input:focus,
#enquiryForm select:focus,
#enquiryForm textarea:focus {
    border-color: #315efb;

    box-shadow:
        0 0 0 3px rgba(49, 94, 251, 0.1);
}

#enquiryForm textarea {
    min-height: 110px;

    resize: vertical;
}

#enquiryForm input::placeholder,
#enquiryForm textarea::placeholder {
    color: #a1adbd;
}

.full {
    width: 100%;
}


/* ==========================================================
   RESPONSIVE - TABLET
========================================================== */

@media (max-width: 992px) {

    .contact-hero {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .contact-info {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        align-items: stretch;
    }

    .contact-card {
        height: 100%;
    }

    .response-card {
        height: fit-content;

        align-self: end;
    }

    .contact-help-box {
        padding: 42px;
    }

}


/* ==========================================================
   RESPONSIVE - TABLET SMALL
========================================================== */

@media (max-width: 800px) {

    .contact-info {
        grid-template-columns: 1fr;
    }

    .response-card {
        align-self: stretch;
    }

    .contact-help-box {
        flex-direction: column;

        align-items: flex-start;

        padding: 38px;
    }

}


/* ==========================================================
   RESPONSIVE - MOBILE
========================================================== */

@media (max-width: 700px) {

    .contact-hero {
        padding: 65px 0 60px;
    }

    .contact-hero h1 {
        margin-top: 12px;
    }

    .contact-hero p {
        font-size: 15px;

        line-height: 1.75;
    }

    .contact-hero-actions {
        flex-direction: column;

        width: 100%;
    }

    .contact-hero-actions .btn {
        width: 100%;
    }

    .contact-heading {
        display: block;
    }

    .contact-heading>p {
        margin-top: 16px;
    }

    .contact-grid {
        margin-top: 35px;
    }

    .contact-card {
        padding: 27px 22px;
    }

    .contact-form-card {
        padding: 28px 22px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-help {
        padding-bottom: 60px;
    }

    .contact-help-box {
        padding: 32px 25px;

        border-radius: 18px;
    }

    .contact-help-box .btn {
        width: 100%;
    }

    .modal-box {
        padding: 30px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   RESPONSIVE - SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    .contact-hero {
        padding: 55px 0;
    }

    .contact-hero h1 {
        font-size: 36px;

        line-height: 1.15;
    }

    .contact-hero p {
        font-size: 14px;
    }

    .contact-card {
        padding: 24px 18px;

        border-radius: 16px;
    }

    .contact-form-card {
        padding: 25px 18px;

        border-radius: 16px;
    }

    .contact-item {
        gap: 11px;
    }

    .contact-icon {
        width: 43px;
        height: 43px;

        border-radius: 11px;
    }

    .contact-item-content strong {
        font-size: 13px;
    }

    .contact-item-content small {
        font-size: 11px;
    }

    .contact-arrow {
        font-size: 16px;
    }

    .response-card {
        padding: 20px;

        gap: 12px;
    }

    .response-icon {
        width: 40px;
        height: 40px;
    }

    .contact-help-box {
        padding: 28px 20px;
    }

    .contact-help-box h2 {
        font-size: 24px;
    }

    .modal-box {
        padding: 28px 18px;
    }

}