/* =========================================================
   LEGACY AV SOLUTIONS
   CONTACT PAGE

   Page-specific styles for contact.html.

   Shared website elements such as:
   - Header
   - Navigation
   - Footer
   - Global buttons
   - Brand colors
   - Reusable containers

   are handled by style.css.

   DESIGN DIRECTION:
   - Dark dramatic Contact hero
   - Warm off-white main contact section
   - Dark technical inquiry form
   - Strong but restrained red / blue accents
   - Deep navy closing section
   - Sharp industrial edges
   - Bright, readable form labels and body copy
   ========================================================= */


/* =========================================================
   CONTACT TYPOGRAPHY DETAILS
   ========================================================= */

.contact-hero .section-label,
.contact-info .section-label,
.contact-closing .section-label {
    font-family: var(--font-display);

    font-weight: 800;
}


/* =========================================================
   1. CONTACT HERO
   ========================================================= */

.contact-hero {
    position: relative;

    padding: 115px 0 105px;

    background:
        radial-gradient(circle at 82% 35%,
            rgba(6, 75, 120, 0.26) 0%,
            rgba(6, 75, 120, 0.08) 30%,
            transparent 58%),
        var(--color-dark);

    color: var(--brand-white);

    overflow: hidden;
}


/*
   Adds a restrained red glow opposite the blue lighting.

   This continues the AV lighting treatment established
   on the other redesigned pages.
*/

.contact-hero::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    left: -240px;
    bottom: -270px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(170, 50, 50, 0.14) 0%,
            transparent 70%);

    pointer-events: none;
}


.contact-hero .section-container {
    position: relative;

    z-index: 1;
}


.contact-hero-content {
    max-width: 800px;
}


.contact-hero-content h1 {
    margin-bottom: 1.4rem;

    font-size: clamp(3.5rem, 7vw, 5.5rem);

    font-weight: 900;

    line-height: 1.02;

    letter-spacing: 0.005em;

    color: var(--brand-white);
}


.contact-hero-description {
    max-width: 700px;

    margin-bottom: 2rem;

    font-size: 1.12rem;

    line-height: 1.8;

    color: #e2e2df;
}


.contact-hero-divider {
    width: 90px;

    height: 4px;

    background-color: var(--brand-red);

    border-radius: 0;
}


/* =========================================================
   2. MAIN CONTACT SECTION
   ========================================================= */

.contact-section {
    padding-top: 120px;

    padding-bottom: 120px;

    background-color: var(--color-light-section);

    color: var(--color-light-section-text);

    border-top: 4px solid var(--brand-blue);
}


.contact-layout {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 5rem;

    align-items: start;
}


/* =========================================================
   3. CONTACT INFORMATION
   ========================================================= */

.contact-info {
    padding-top: 0.5rem;
}


.contact-info h2 {
    max-width: 520px;

    margin-bottom: 1.25rem;

    font-size: clamp(2.2rem, 4vw, 3.2rem);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: 0.005em;

    color: var(--color-light-section-text);
}


.contact-info h2::after {
    content: "";

    display: block;

    width: 72px;

    height: 4px;

    margin-top: 24px;

    background-color: var(--brand-red);
}


.contact-info-intro {
    max-width: 500px;

    margin-bottom: 2.5rem;

    font-size: 1.03rem;

    line-height: 1.8;

    color: var(--color-light-section-text-secondary);
}


/* =========================================================
   4. CONTACT DETAILS
   ========================================================= */

.contact-detail {
    position: relative;

    padding: 1.5rem 0;

    border-bottom: 1px solid var(--color-light-section-border);
}


.contact-detail:first-of-type {
    border-top: 1px solid var(--color-light-section-border);
}


.contact-detail h3 {
    margin-bottom: 0.45rem;

    color: var(--brand-red);

    font-family: var(--font-display);

    font-size: 0.82rem;

    font-weight: 800;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.contact-detail p {
    margin-bottom: 0;

    color: var(--color-light-section-text);

    font-size: 1.03rem;

    font-weight: 700;

    line-height: 1.6;
}


.contact-detail a {
    color: var(--color-light-section-text);

    transition: color 0.2s ease;
}


.contact-detail a:hover {
    color: var(--brand-red);
}


/* =========================================================
   5. CONTACT FORM CONTAINER
   ========================================================= */

.contact-form-wrapper {
    position: relative;

    padding: 2.75rem;

    background:
        linear-gradient(145deg,
            #181a1e 0%,
            #111216 100%);

    border: 1px solid #303238;

    border-top: 4px solid var(--brand-red);

    border-radius: 2px;

    overflow: hidden;

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.16);
}


.contact-form-wrapper::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -170px;
    bottom: -180px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(6, 75, 120, 0.25) 0%,
            transparent 70%);

    pointer-events: none;
}


.contact-form-wrapper>* {
    position: relative;

    z-index: 1;
}


.contact-form-heading {
    margin-bottom: 2.25rem;
}


.contact-form-heading h2 {
    margin-bottom: 0.8rem;

    color: var(--brand-white);

    font-size: 2rem;

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: 0.005em;
}


.contact-form-heading h2::after {
    content: "";

    display: block;

    width: 60px;

    height: 3px;

    margin-top: 18px;

    background-color: var(--brand-red);
}


.contact-form-heading p {
    max-width: 560px;

    margin-bottom: 0;

    color: #e2e2df;

    line-height: 1.7;
}


/* =========================================================
   6. FORM LAYOUT
   ========================================================= */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 1.4rem;
}


.form-row {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1.25rem;
}


.form-group {
    display: flex;

    flex-direction: column;
}


/* =========================================================
   7. FORM LABELS
   ========================================================= */

.form-group label {
    margin-bottom: 0.55rem;

    color: var(--brand-white);

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.02em;
}


.required {
    color: var(--brand-red);
}


/* =========================================================
   8. INPUTS / SELECT / TEXTAREA
   ========================================================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 0.95rem 1rem;

    font: inherit;

    color: var(--brand-white);

    background-color: #202226;

    border: 1px solid #44474d;

    border-radius: 2px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #5a5e65;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: #23262b;

    border-color: var(--brand-blue-light);

    box-shadow:
        0 0 0 3px rgba(11, 101, 158, 0.18);
}


.form-group textarea {
    min-height: 170px;

    resize: vertical;
}


.form-group select {
    cursor: pointer;
}


.form-group select option {
    color: var(--brand-white);

    background-color: #202226;
}


/* =========================================================
   9. FORM VALIDATION STATES
   ========================================================= */

/*
   JavaScript adds the "input-error" class to a field
   whenever that field contains invalid information.

   The red border gives the visitor an immediate visual
   indication of which field needs attention.
*/

.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: var(--brand-red);

    box-shadow:
        0 0 0 3px rgba(170, 50, 50, 0.15);
}


/*
   Keep the error appearance visible when the visitor
   places focus back inside an invalid field.
*/

.form-group input.input-error:focus,
.form-group select.input-error:focus,
.form-group textarea.input-error:focus {
    border-color: var(--brand-red);

    box-shadow:
        0 0 0 3px rgba(170, 50, 50, 0.22);
}


/*
   Error messages sit directly underneath their
   corresponding fields.

   These elements are empty until JavaScript places
   a validation message inside them.
*/

.form-error {
    min-height: 0;

    margin: 0.45rem 0 0;

    color: #ff8a8a;

    font-size: 0.82rem;

    font-weight: 600;

    line-height: 1.45;
}


/*
   When there is no error message, completely hide the
   empty element so it does not create unnecessary space
   underneath the field.
*/

.form-error:empty {
    display: none;
}


/* =========================================================
   10. SUBMIT BUTTON
   ========================================================= */

.contact-submit-button {
    align-self: flex-start;

    padding: 15px 30px;

    background-color: var(--brand-red);

    color: var(--brand-white);

    border: 1px solid var(--brand-red);

    border-radius: 2px;

    font-family: inherit;

    font-size: 0.95rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}


.contact-submit-button:hover {
    transform: translateY(-2px);

    background-color: var(--brand-red-hover);

    color: var(--brand-white);

    border-color: var(--brand-red-hover);
}


/* =========================================================
   11. FORM STATUS MESSAGE
   ========================================================= */

/*
   This area is reserved for messages that apply to the
   entire form.

   Examples include:
   - A successful submission
   - A problem sending the inquiry
   - A general validation message

   The "success" and "error" states are styled here for
   use when the form is connected to the PHP submission
   handler during backend development.
*/

.form-status {
    display: none;

    max-width: 560px;

    padding: 0.9rem 1rem;

    border: 1px solid transparent;

    border-radius: 2px;

    font-size: 0.9rem;

    font-weight: 600;

    line-height: 1.6;
}


/*
   Successful form status.

   The colors are intentionally restrained so the message
   fits the dark Legacy AV form design.
*/

.form-status.success {
    display: block;

    color: #c8f1d2;

    background-color: rgba(48, 130, 70, 0.16);

    border-color: rgba(83, 180, 106, 0.5);
}


/*
   Form-wide error status.
*/

.form-status.error {
    display: block;

    color: #ffb1b1;

    background-color: rgba(170, 50, 50, 0.14);

    border-color: rgba(200, 72, 72, 0.5);
}


/* =========================================================
   BRANDED LEGACY DIVIDER
   ========================================================= */

.legacy-divider {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 54px;

    background-color: var(--brand-black);

    overflow: hidden;
}


.legacy-divider::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 50%;

    height: 9px;

    transform: translateY(-50%);

    background:
        linear-gradient(to bottom,
            var(--brand-red) 0,
            var(--brand-red) 33.33%,
            var(--brand-white) 33.33%,
            var(--brand-white) 66.66%,
            var(--brand-blue) 66.66%,
            var(--brand-blue) 100%);
}


.legacy-divider-logo {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 18px;

    background-color: var(--brand-black);
}


.legacy-divider-logo img {
    width: 190px;

    height: auto;

    display: block;
}


/* =========================================================
   12. CLOSING SECTION
   ========================================================= */

.contact-closing {
    position: relative;

    padding: 95px 0;

    background:
        linear-gradient(135deg,
            #071722 0%,
            #09283d 50%,
            #06304c 100%);

    color: var(--brand-white);

    overflow: hidden;
}


.contact-closing::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    left: -200px;
    top: -220px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(170, 50, 50, 0.14) 0%,
            transparent 70%);

    pointer-events: none;
}


.contact-closing::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -230px;
    bottom: -270px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(11, 101, 158, 0.20) 0%,
            transparent 70%);

    pointer-events: none;
}


.contact-closing .section-container {
    position: relative;

    z-index: 1;
}


.contact-closing-content {
    max-width: 780px;

    margin: 0 auto;

    text-align: center;
}


.contact-closing .section-label {
    color: var(--brand-red);
}


.contact-closing h2 {
    margin-bottom: 1.2rem;

    color: var(--brand-white);

    font-size: clamp(2.3rem, 4vw, 3.3rem);

    font-weight: 900;

    line-height: 1.05;

    letter-spacing: 0.005em;
}


.contact-closing p {
    max-width: 680px;

    margin: 0 auto;

    color: #e2e2df;

    font-size: 1.05rem;

    line-height: 1.8;
}


/* =========================================================
   13. TABLET RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 900px) {

    .contact-hero {
        padding: 95px 0 85px;
    }


    .contact-layout {
        grid-template-columns: 1fr;

        gap: 4rem;
    }


    .contact-info {
        max-width: 700px;
    }


    .contact-form-wrapper {
        max-width: 800px;
    }

}


/* =========================================================
   14. MOBILE RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 600px) {

    .contact-hero {
        padding: 75px 0 70px;
    }


    .contact-hero-content h1 {
        font-size: 3rem;

        line-height: 1.03;

        letter-spacing: 0.005em;
    }


    .contact-hero-description {
        font-size: 1rem;

        line-height: 1.75;
    }


    .contact-section {
        padding-top: 80px;

        padding-bottom: 80px;
    }


    .contact-info h2 {
        font-size: 2rem;

        line-height: 1.08;
    }


    .form-row {
        grid-template-columns: 1fr;
    }


    .contact-form-wrapper {
        padding: 1.75rem;
    }


    .contact-form-heading h2 {
        font-size: 1.8rem;

        line-height: 1.08;
    }


    .contact-submit-button {
        width: 100%;

        text-align: center;
    }


    .contact-closing {
        padding: 75px 0;
    }


    .contact-closing h2 {
        font-size: 2rem;

        line-height: 1.08;
    }

}


/* =========================================================
   15. REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-submit-button {
        transition: none;
    }


    .contact-submit-button:hover {
        transform: none;
    }

}