
/* =========================================
   FLUXTQ CONTACT PAGE
   ========================================= */

:root {
    --contact-navy: #09264b;
    --contact-blue: #0759c9;
    --contact-bright-blue: #1689ed;
    --contact-red: #ed2638;
    --contact-text: #10284d;
    --contact-light: #f2f8ff;
}

/* =========================================
   COMMON CONTACT PAGE CONTAINER
   ========================================= */

.contact-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================
   HERO BANNER
   ========================================= */

.contact-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 270px;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #09264b 0%,
        #063d82 70%,
        #0759c9 100%
    );
    border-bottom: 3px solid var(--contact-blue);
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0b3972;
    clip-path: polygon(
        0 0,
        62% 0,
        49% 100%,
        0 100%
    );
    z-index: 2;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #087df0;
    clip-path: polygon(
        59.5% 0,
        62% 0,
        49% 100%,
        46.5% 100%
    );
    z-index: 3;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 4;
    width: 57%;
    padding: 48px 0 42px 5%;
    color: #fff;
}

.hero-eyebrow {
    display: block;
    color: #56d0ff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.hero-accent {
    display: block;
    width: 54px;
    height: 4px;
    margin-bottom: 15px;
    background: linear-gradient(
        to right,
        var(--contact-red) 50%,
        var(--contact-bright-blue) 50%
    );
}

.contact-hero h1 {
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 18px;
}

.contact-hero p {
    color: #f2f7ff;
    font-size: 17px;
    line-height: 1.6;
    padding-left: 13px;
    border-left: 4px solid #17a8ef;
    margin: 0;
}

.contact-hero-image {
    position: absolute;
    inset: 0 0 0 48%;
    z-index: 1;
    background-image: url("../images/contact-us/HERO.png");
    background-size: cover;
    background-position: center 53%;
}

/* =========================================
   DEPARTMENT CONTACTS
   ========================================= */

.department-contacts {
    padding: 32px 0 25px;
    background: linear-gradient(135deg, #f7fbff, #edf5ff);
}

.section-heading {
    text-align: center;
    margin-bottom: 24px;
}

.section-heading h2 {
    color: var(--contact-text);
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.35;
    font-weight: 750;
    margin: 0;
}

.heading-accent {
    display: block;
    width: 64px;
    height: 4px;
    margin: 13px auto 0;
    background: linear-gradient(
        to right,
        var(--contact-red) 50%,
        var(--contact-blue) 50%
    );
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Department card alignment */

.dept-card {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    min-height: 165px;
    padding: 19px 20px;
    background: #fff;
    border: 1px solid #e1eafa;
    border-top: 4px solid var(--contact-blue);
    border-radius: 13px;
    box-shadow: 0 5px 15px rgba(15, 54, 105, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dept-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(15, 54, 105, 0.13);
}

.dept-icon {
    grid-column: 1;
    grid-row: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--contact-blue);
    background: #e5f2ff;
    border-radius: 12px;
    margin: 0;
}

.dept-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dept-content {
    grid-column: 2;
    min-width: 0;
    flex: 1;
}

/* Align heading with department icon */

.dept-content h3 {
    min-height: 50px;
    display: flex;
    align-items: center;
    color: var(--contact-text);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 750;
    margin: 0 0 5px;
}

.dept-content > p {
    color: #253b5c;
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 9px;
}

/* Contact person name and designation */

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0 6px;
}

.contact-person strong {
    color: #142d50;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.contact-person span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.3;
}

.contact-person + .contact-detail {
    margin-top: 5px;
}

/* Email and phone details */

.contact-detail {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #102b54;
    font-size: 13.5px;
    line-height: 1.6;
    text-decoration: none;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.contact-detail:hover {
    color: var(--contact-blue);
}

.detail-icon {
    flex: 0 0 17px;
    width: 17px;
    color: var(--contact-blue);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}

/* Sales and Marketing - two phone numbers under one icon */

.contact-phone-group .contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.phone-number-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.phone-number-list a {
    color: #102b54;
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
}

.phone-number-list a:hover {
    color: var(--contact-blue);
}

/* =========================================
   OFFICE ADDRESS + ENQUIRY FORM
   ========================================= */

.contact-section {
    padding: 0 0 62px;
    background: linear-gradient(135deg, #f7fbff, #edf5ff);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 22px;
    align-items: stretch;
}

/* Office address panel */

.contact-info {
    position: relative;
    overflow: hidden;
    padding: 25px 27px 22px;
    color: #fff;
    background: linear-gradient(
        145deg,
        #07529b 0%,
        #063b77 62%,
        #062b58 100%
    );
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(9, 47, 93, 0.12);
}

.contact-info::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 125px;
    right: -65px;
    bottom: -65px;
    background: linear-gradient(145deg, #168de9, #42b5ff);
    border-radius: 70% 0 0 0;
    transform: rotate(-10deg);
    opacity: 0.95;
}

.info-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    margin-bottom: 17px;
}

.info-main-icon {
    flex: 0 0 42px;
    color: #fff;
    font-size: 42px;
    line-height: 1;
}

.info-heading h2,
.form-heading h2 {
    color: inherit;
    font-size: 23px;
    font-weight: 750;
    margin: 0;
}

.info-heading .heading-accent,
.form-heading .heading-accent {
    width: 55px;
    margin: 9px 0 0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    position: relative;
    z-index: 1;
    margin-bottom: 13px;
}

.info-icon {
    flex: 0 0 22px;
    width: 22px;
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
}

.info-row h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 6px;
}

.info-row p {
    color: #fff;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

.info-row a {
    color: #fff;
    text-decoration: none;
}

.info-row a:hover {
    text-decoration: underline;
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    position: relative;
    z-index: 2;
    margin: 3px 0 0 35px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.directions-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Enquiry form panel */

.contact-form {
    padding: 24px 25px 22px;
    background: #fff;
    border: 1px solid #e3ebf7;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(15, 54, 105, 0.08);
}

.form-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--contact-text);
    margin-bottom: 17px;
}

.form-main-icon {
    color: var(--contact-blue);
    font-size: 34px;
    line-height: 1;
}

.form-heading .heading-accent {
    margin-top: 8px;
}

.enquiry-form {
    width: 100%;
}

.form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 15px;
}

.form-fields input,
.form-fields textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    color: #1a3558;
    font-family: inherit;
    font-size: 13.5px;
    background: #fbfdff;
    border: 1px solid #c6d4e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-fields input {
    height: 43px;
}

.form-fields textarea {
    grid-column: 1 / -1;
    min-height: 85px;
    resize: vertical;
}

.form-fields input::placeholder,
.form-fields textarea::placeholder {
    color: #465b78;
    opacity: 1;
}

.form-fields input:focus,
.form-fields textarea:focus {
    border-color: var(--contact-blue);
    box-shadow: 0 0 0 3px rgba(7, 89, 201, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 43px;
    margin-top: 13px;
    padding: 11px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(100deg, #0759c9, #0647a7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(100deg, #0647a7, #03377f);
    transform: translateY(-1px);
}

.submit-btn span {
    font-size: 19px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1050px) {

    .dept-card {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 11px;
        padding: 17px 14px;
    }

    .dept-icon {
        width: 43px;
        height: 43px;
    }

    .dept-content h3 {
        min-height: 43px;
        font-size: 16px;
    }

    .dept-content > p,
    .contact-detail {
        font-size: 12.5px;
    }

    .contact-person strong {
        font-size: 14px;
    }

    .contact-person span {
        font-size: 12px;
    }

    .phone-number-list a {
        font-size: 12.5px;
    }

    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

@media (max-width: 768px) {

    .contact-container {
        width: 92%;
    }

    .contact-hero {
        min-height: 300px;
    }

    .contact-hero::before {
        width: 100%;
        background: linear-gradient(
            90deg,
            rgba(5, 31, 65, 0.97),
            rgba(5, 45, 94, 0.88)
        );
        clip-path: none;
    }

    .contact-hero::after {
        display: none;
    }

    .contact-hero-image {
        left: 0;
        opacity: 0.32;
        background-position: center;
    }

    .contact-hero-content {
        width: 100%;
        padding: 48px 25px;
    }

    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-hero p {
        font-size: 15px;
    }

    .department-contacts {
        padding: 30px 0 24px;
    }

    .dept-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dept-card {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: auto;
        padding: 18px;
    }

    .dept-icon {
        width: 50px;
        height: 50px;
    }

    .dept-content h3 {
        min-height: 50px;
        font-size: 17px;
    }

    .dept-content > p,
    .contact-detail {
        font-size: 13.5px;
    }

    .contact-person strong {
        font-size: 15px;
    }

    .contact-person span {
        font-size: 13px;
    }

    .phone-number-list a {
        font-size: 13.5px;
    }

    .contact-section {
        padding-bottom: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-info,
    .contact-form {
        padding: 23px 20px;
    }
}

@media (max-width: 480px) {

    .contact-hero {
        min-height: 270px;
    }

    .contact-hero-content {
        padding: 40px 20px;
    }

    .contact-hero h1 {
        font-size: 29px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .dept-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 13px;
    }

    .dept-icon {
        width: 42px;
        height: 42px;
    }

    .dept-content h3 {
        min-height: 42px;
    }

    .form-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-fields textarea {
        grid-column: auto;
    }

    .info-heading h2,
    .form-heading h2 {
        font-size: 21px;
    }
}
