
/* ==================================================
   DARKVIL TECHNOLOGIES
   THE GATEWAY TO DARKVIL
   CONTACT PAGE — V1.0
================================================== */

.contact-page {
    background: #080808;
    color: #F5F5F5;
}

.contact-page main {
    overflow: hidden;
}

.contact-page #project-enquiry {
    scroll-margin-top: 110px;
}


/* ==================================================
   01. SOVEREIGN CONTACT HERO
================================================== */

.contact-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;

    background-image:
        url("../assets/images/darkvil-contact-hero.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.08) 75%
        ),
        linear-gradient(
            0deg,
            #080808 0%,
            transparent 30%
        );
}

.contact-hero-container {
    width: 100%;
    margin: auto;
    padding: 100px var(--page-gutter);

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-content .section-label {
    margin-bottom: 25px;
    letter-spacing: 6px;
    color: #D4AF37;
}

.contact-hero h1 {
    font-size: clamp(56px, 6.5vw, 112px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -4px;
    margin-bottom: 30px;
}

.contact-hero h1 span {
    display: block;
}

.contact-hero-description {
    max-width: 580px;
    font-size: 18px;
    color: #C0C0C0;
    line-height: 1.9;
    margin-bottom: 35px;
}

.contact-hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.contact-hero-buttons .btn {
    padding: 17px 27px;
}

.contact-hero-emblem {
    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-40px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.contact-hero-emblem img {
    display: block;
    width: min(70%, 400px);
    height: auto;
    object-fit: contain;

    /* Fade only the outer image edges; preserve the original crest. */
    mask-image: radial-gradient(ellipse at center, #000 55%, transparent 73%);
}


/* ==================================================
   02. SHARED SECTION HEADINGS
================================================== */

.contact-section-heading {
    max-width: 1100px;
    margin: 0 auto 65px;
    text-align: center;
}

.contact-section-heading .section-label {
    color: #D4AF37;
    letter-spacing: 5px;
    margin-bottom: 18px;
}

.contact-section-heading h2 {
    font-size: clamp(32px, 4vw, 60px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1.8px;
    margin-bottom: 20px;
}

.contact-section-heading > p:last-child {
    color: #A0A0A0;
    font-size: 17px;
    line-height: 1.8;
}


/* ==================================================
   03. PROJECT ENQUIRY SECTION
================================================== */

.contact-enquiry {
    position: relative;
    padding: 110px 6%;

    background:
        radial-gradient(
            ellipse at 20% 20%,
            rgba(212, 175, 55, 0.055),
            transparent 45%
        ),
        #080808;
}

.contact-enquiry-grid {
    max-width: 1450px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.4fr 0.85fr;
    gap: 45px;
    align-items: start;
}


/* ==================================================
   04. PREMIUM PROJECT FORM
================================================== */

.contact-form-card {
    padding: 45px;

    background:
        linear-gradient(
            145deg,
            #171510,
            #101010 45%,
            #0D0D0D
        );

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 18px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35);
}

.contact-form-heading {
    margin-bottom: 35px;
}

.contact-form-heading .section-label {
    color: #D4AF37;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.contact-form-heading h3 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.contact-form-heading > p:last-child {
    color: #A0A0A0;
    font-size: 15px;
    line-height: 1.8;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #E8D29D;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.project-form input:not([type="checkbox"]),
.project-form select,
.project-form textarea {
    display: block;
    width: 100%;

    font-family: inherit;
    font-size: 14px;
    color: #F5F5F5;

    background: #0A0A0A;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 7px;

    padding: 15px 16px;
    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.project-form input::placeholder,
.project-form textarea::placeholder {
    color: #858585;
}

.project-form input:not([type="checkbox"]):hover,
.project-form select:hover,
.project-form textarea:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
    border-color: #D4AF37;
    background: #10100D;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.09);
}

.project-form select {
    appearance: none;
    cursor: pointer;
    min-height: 52px;
    padding-right: 42px;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 16px center;
}

.project-form select option {
    background: #111111;
    color: #F5F5F5;
}

.project-form select:invalid {
    color: #858585;
}

.project-form textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.8;
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: #999999;
}


/* ==================================================
   05. CONSENT AND SUBMISSION
================================================== */

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 28px 0;
}

.form-consent input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.form-consent label {
    color: #B0B0B0;
    font-size: 13px;
    line-height: 1.8;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    min-height: 58px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    cursor: pointer;
}

.form-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-note {
    color: #A0A0A0;
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
}

.form-status {
    margin-top: 20px;
    padding: 15px 18px;

    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 7px;

    background: rgba(212, 175, 55, 0.05);
    color: #E8D29D;

    font-size: 13px;
    line-height: 1.8;
}

.form-status:empty {
    display: none;
}

.form-status.success {
    color: #9AE6B4;
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.06);
}

.form-status.error {
    color: #FCA5A5;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.06);
}


/* ==================================================
   06. CONTACT INFORMATION
================================================== */

.contact-information {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-intro {
    padding: 12px 0 10px;
}

.contact-info-intro .section-label {
    color: #D4AF37;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.contact-info-intro h3 {
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.contact-info-intro h3 span {
    display: block;
}

.contact-info-intro > p:last-child {
    color: #A0A0A0;
    font-size: 15px;
    line-height: 1.9;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            #18150F,
            #101010
        );

    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.55);

    box-shadow:
        0 12px 35px rgba(212, 175, 55, 0.06);
}

.contact-info-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: #F5D78E;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 10px;
}

.contact-info-icon svg {
    width: 27px;
    height: 27px;
}

.contact-info-card h4 {
    font-size: 19px;
    color: #F5F5F5;
    margin-bottom: 6px;
}

.contact-info-card p {
    font-size: 13px;
    color: #999999;
    margin-bottom: 7px;
}

.contact-info-card a,
.contact-info-card span {
    color: #E8D29D;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.contact-info-card a:hover {
    color: #FFFFFF;
}


/* ==================================================
   07. DARKVIL BRAND SIGNATURE
================================================== */

.contact-signature {
    position: relative;
    overflow: hidden;

    padding: 35px 20px;
    text-align: center;

    background:
        radial-gradient(
            ellipse at center,
            rgba(212, 175, 55, 0.07),
            transparent 70%
        ),
        #0B0B0B;

    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 12px;
}

.contact-signature img {
    display: block;
    width: 125px;
    height: auto;
    margin: 0 auto 18px;
    mix-blend-mode: screen;
}

.contact-signature p {
    color: #D4AF37;
    font-family: "Cinzel", Georgia, serif;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 1px;
    line-height: 2;
}


/* ==================================================
   08. CLIENT ONBOARDING PROCESS
================================================== */

.contact-process {
    padding: 100px 6%;

    background: #0D0D0D;

    border-top: 1px solid rgba(212, 175, 55, 0.16);
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.contact-process-grid {
    max-width: 1400px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.contact-process-step {
    position: relative;
    padding: 15px;
    text-align: center;
}

.process-number {
    position: relative;
    z-index: 1;

    width: 88px;
    height: 88px;

    display: grid;
    place-items: center;

    margin: 0 auto 25px;

    font-family: "Cinzel", Georgia, serif;
    font-size: 30px;
    color: #F5D78E;

    background:
        radial-gradient(
            circle,
            #2A2110,
            #0D0D0D 75%
        );

    border: 1px solid #A88735;
    border-radius: 50%;

    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.09);
}

.contact-process-step:not(:last-child)::after {
    content: "";
    position: absolute;

    top: 59px;
    left: calc(50% + 44px);
    width: calc(100% + 30px - 88px);
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #A88735,
            rgba(212, 175, 55, 0.15),
            #A88735
        );
}

.contact-process-step h3 {
    color: #F5D78E;
    font-size: 21px;
    margin-bottom: 12px;
}

.contact-process-step p {
    color: #A0A0A0;
    font-size: 14px;
    line-height: 1.8;
}


/* ==================================================
   09. FREQUENTLY ASKED QUESTIONS
================================================== */

.contact-faq {
    padding: 110px 6%;

    background:
        radial-gradient(
            ellipse at top,
            rgba(212, 175, 55, 0.035),
            transparent 60%
        ),
        #080808;
}

.faq-container {
    max-width: 1050px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background:
        linear-gradient(
            120deg,
            #15130F,
            #101010
        );

    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;

    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(212, 175, 55, 0.5);
}

.faq-item summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 24px 28px;

    color: #F5F5F5;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    color: #D4AF37;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item[open] summary {
    color: #F5D78E;
}

.faq-item summary:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: -4px;
}

.faq-answer {
    padding: 0 28px 25px;
    color: #B0B0B0;
    font-size: 15px;
    line-height: 1.9;
}


/* ==================================================
   10. THE BEGINNING OF LEGACY
================================================== */

.contact-legacy {
    position: relative;
    isolation: isolate;

    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 6%;
    text-align: center;

    background-image:
        url("../assets/images/darkvil-contact-legacy.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-legacy-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            180deg,
            rgba(8, 8, 8, 0.65),
            rgba(8, 8, 8, 0.78),
            #080808
        );
}

.contact-legacy-content {
    position: relative;
    max-width: 1250px;
}

.contact-legacy-content .section-label {
    color: #D4AF37;
    letter-spacing: 5px;
    margin-bottom: 25px;
}

.contact-legacy-content h2 {
    font-size: clamp(36px, 4.5vw, 72px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.contact-legacy-content > p:not(.section-label) {
    color: #C0C0C0;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.contact-legacy-content .btn {
    padding: 17px 30px;
}


/* ==================================================
   11. CORPORATE FOOTER
================================================== */

/* Shared corporate grid handles columns and breakpoints. */
.contact-page .corporate-footer .footer-grid {
    gap: 36px;
    align-items: start;
}
.contact-page .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}
.contact-page .footer-grid h2 { margin: 0 0 8px; }
.contact-page .footer-grid .footer-logo { width: 200px; margin: 0 0 12px; }
.contact-page .footer-brand p { max-width: 300px; margin: 0; }
.contact-page .footer-contact p { margin: 0; }
.contact-page .footer-contact .btn { margin-top: 8px; }
.contact-page .footer-motto p { color: var(--gold-light); font-family: Cinzel, Georgia, serif; line-height: 1.8; }
.contact-page .footer-bottom { color: #b0b0b0; font-size: 13px; }
.contact-page .footer-grid a:not(.btn):hover { color: var(--gold-light); }

/* ==================================================
   12. ACCESSIBILITY
================================================== */

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page input[type="checkbox"]:focus-visible {
    outline: 2px solid #F5D78E;
    outline-offset: 4px;
}


/* ==================================================
   13. LARGE TABLETS
================================================== */

@media (max-width: 1200px) {

    .contact-hero-container {
        padding: 85px 5%;
        gap: 25px;
    }

    .contact-hero h1 {
        letter-spacing: -3px;
    }

    .contact-enquiry-grid {
        gap: 30px;
        grid-template-columns: 1.25fr 0.85fr;
    }

    .contact-form-card {
        padding: 32px;
    }

    .contact-info-card {
        padding: 22px;
        gap: 15px;
    }

}


/* ==================================================
   14. TABLETS AND SMALL LAPTOPS
================================================== */

@media (max-width: 900px) {

    .contact-hero {
        min-height: 720px;
    }

    .contact-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 75px 6% 50px;
    }

    .contact-hero-background {
        background-position: 70% center;
    }

    .contact-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.85),
                rgba(0, 0, 0, 0.45),
                #080808
            );
    }

    .contact-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero-buttons {
        justify-content: center;
    }

    .contact-hero-emblem {
        transform: none;
    }

    .contact-hero-emblem img {
        width: 210px;
    }

    .contact-enquiry-grid {
        grid-template-columns: 1fr;
    }

    .contact-enquiry,
    .contact-process,
    .contact-faq {
        padding: 80px 5%;
    }

    .contact-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .contact-process-step::after {
        display: none;
    }

    .contact-information {
        margin-top: 20px;
    }

    .contact-legacy {
        min-height: 420px;
    }

}


/* ==================================================
   15. MOBILE DEVICES
================================================== */

@media (max-width: 600px) {

    .contact-page #project-enquiry {
        scroll-margin-top: 90px;
    }

    .contact-hero {
        min-height: auto;
    }

    .contact-hero-container {
        padding: 65px 6% 40px;
        gap: 25px;
    }

    .contact-hero-content .section-label {
        font-size: 10px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .contact-hero h1 {
        font-size: clamp(42px, 10vw, 60px);
        letter-spacing: -2px;
        margin-bottom: 22px;
    }

    .contact-hero-description {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .contact-hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-hero-buttons .btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
    }

    .contact-hero-emblem img {
        width: 170px;
    }

    .contact-section-heading {
        margin-bottom: 35px;
    }

    .contact-section-heading .section-label {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .contact-section-heading h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .contact-section-heading > p:last-child {
        font-size: 14px;
    }

    .contact-enquiry,
    .contact-process,
    .contact-faq {
        padding: 65px 5%;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-form input:not([type="checkbox"]),
    .project-form select,
    .project-form textarea {
        font-size: 16px;
    }

    .contact-info-card {
        padding: 20px 16px;
        gap: 14px;
    }

    .contact-info-icon {
        width: 46px;
        height: 46px;
    }

    .contact-info-icon svg {
        width: 23px;
        height: 23px;
    }

    .contact-info-card h4 {
        font-size: 17px;
    }

    .contact-process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-process-step {
        max-width: 350px;
        margin: auto;
    }

    .process-number {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .faq-item summary {
        font-size: 14px;
        padding: 20px 18px;
    }

    .faq-answer {
        font-size: 14px;
        padding: 0 18px 20px;
    }

    .contact-legacy {
        min-height: 380px;
        padding: 65px 6%;
    }

    .contact-legacy-content h2 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .contact-legacy-content .section-label {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .contact-legacy-content > p:not(.section-label) {
        font-size: 14px;
    }

    .contact-page .footer-column {
        align-items: center;
        text-align: center;
    }

    .contact-page .footer-brand {
        text-align: center;
    }
    .contact-page .corporate-footer .footer-grid { gap: 24px; }
    .contact-page .footer-grid .footer-logo { margin: 0 auto 12px; }
    .contact-page .footer-brand p { margin: auto; }

    .contact-page .footer-motto p {
        font-size: 12px;
    }

}


/* ==================================================
   16. REDUCED MOTION PREFERENCES
================================================== */

@media (prefers-reduced-motion: reduce) {

    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .contact-info-card:hover {
        transform: none;
    }

}
/* =========================================
   DARKVIL — CONTACT HERO ALIGNMENT FIX
========================================= */

@media (min-width: 1200px) {

    .contact-page .contact-hero-container {
        max-width: 100%;
        width: 100%;
        padding-left: var(--page-gutter);
        padding-right: 8%;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .contact-page .contact-hero-content {
        margin: 0;
        padding: 0;
    }

    .contact-page .contact-hero-emblem {
        transform: translate(60px, -25px);
    }

    .contact-page .contact-hero-emblem img {
        width: min(75%, 420px);
        height: auto;
        object-fit: contain;
        mix-blend-mode: screen;
    }
}

/* ==================================================
   END — SOVEREIGN CONTACT STYLESHEET
================================================== */


/* Mobile portal and emblem use the same artwork coordinates. */
@media(max-width:600px){
 .contact-hero {background:#080808;}
 .contact-hero-background,.contact-hero-overlay {display:none;}
 .contact-hero-container {padding:36px var(--page-gutter) 0;gap:0;}
 .contact-hero-emblem {position:relative;display:block;width:calc(100% / .9);margin-inline:calc(-1 * var(--page-gutter) / .9);aspect-ratio:1.3;transform:none;mix-blend-mode:normal;background:linear-gradient(180deg,#080808,transparent 16%,transparent 88%,#080808),url('../assets/images/darkvil-contact-hero.webp') 100% center / auto 100% no-repeat;}
 .contact-hero-emblem img {position:absolute;width:38%;max-width:170px;left:calc(100% - 42.3%);top:45%;transform:translate(-50%,-50%);mix-blend-mode:screen;mask-image:none;}
}
