/* /assets/css/contact.css */

/* Fixed image layer */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    background-image:url("../img/opt/team-768.webp");
    z-index:-2;
    transform:translateZ(0);
}
@supports (background-image:url("data:image/avif;base64,AAAA")){
    body::before{ background-image:url("../img/opt/team-768.avif"); }
}
@media (min-width:1024px){
    body::before{ background-image:url("../img/opt/team-1024.webp"); }
    @supports (background-image:url("data:image/avif;base64,AAAA")){
        body::before{ background-image:url("../img/opt/team-1024.avif"); }
    }
}

/* Dark overlay layer */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}


/* Toast */
.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 680px;
    width: calc(100% - 24px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
    display: none;
}

.toast.show {
    display: block;
}

/* ===== Custom Dropdown ===== */
.dd {
    position: relative;
}

.dd-btn {
    cursor: pointer;
    user-select: none;
}

.dd-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 60;


    background: rgba(8, 8, 8, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.dd-menu-inner {
    padding: 8px;
}

.dd-opt {
    padding: 10px 12px;
    border-radius: 2px;
    color: #E0E0E0;
    line-height: 1.2;
    cursor: pointer;

    border: 1px solid transparent;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dd-opt:hover,
.dd-opt.dd-active {
    border-color: rgba(255, 140, 0, 0.95);
    background-color: transparent;
}

.dd-opt.dd-selected {
    border-color: rgba(255, 140, 0, 0.35);
}

.dd.dd-open .dd-menu {
    display: block;
}

.dd.dd-open .dd-caret {
    transform: rotate(180deg);
}

.dd-caret {
    transition: transform 0.15s ease;
}

/* Mobile hero tuning ONLY */
@media (max-width: 640px) {
    .contact-hero {
        padding-top: 48px !important;
        padding-bottom: 46px !important;
    }

    .contact-hero h1 {
        font-size: 42px !important;
        line-height: 1.08 !important;
        margin-bottom: 14px !important;
    }

    .contact-hero p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}

@view-transition { navigation: auto; }

#message {
    resize: none;
}

/* ================================
   Contact Form Autofill Fix
   Scoped to this page only
================================ */

#corinth-contact-form .field:-webkit-autofill,
#corinth-contact-form .field:-webkit-autofill:hover,
#corinth-contact-form .field:-webkit-autofill:focus,
#corinth-contact-form .field:-webkit-autofill:active {
    -webkit-text-fill-color: #E5E7EB !important;
    caret-color: #E5E7EB !important;

    -webkit-box-shadow: 0 0 0 1000px rgba(8, 8, 8, 0.92) inset !important;
    box-shadow: 0 0 0 1000px rgba(8, 8, 8, 0.92) inset !important;

    border-color: rgba(212, 175, 55, 0.22) !important;

    transition: background-color 9999s ease-out 0s;
}

/* Firefox */
#corinth-contact-form .field:-moz-autofill {
    box-shadow: 0 0 0 1000px rgba(8, 8, 8, 0.92) inset !important;
    -moz-text-fill-color: #E5E7EB !important;
    caret-color: #E5E7EB !important;
    border-color: rgba(212, 175, 55, 0.22) !important;
}
