
:root{
    --brand:#FFA500; --brand-700:#cc8400;
    --blue:#1e63ff; --blue-600:#1954d8;
    --page-veil:rgba(0,0,0,.55);
    --panel:rgba(15,17,21,.78);
    --card-panel:rgba(30,34,40,.78);
    --card-border:rgba(255,255,255,.07);
    --muted:#e8eaf0; --text:#ffffff;
}

html,body{margin:0;padding:0;min-height:100%;}
*{box-sizing:border-box;}
body{display:flex;flex-direction:column;min-height:100vh;background:#0f1114;color:var(--text);}
header,footer{flex:0 0 auto;}

/* Contact Section - Fixed for Header/Footer Display */
.contact{
    position:relative;
    flex:1 1 auto;
    isolation:isolate;
    /* Creates space before footer */
    padding-bottom: 80px;
}

/* Background Image Layer */
.contact.has-bg::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;

    /* Correct path: up one level from css folder */
    background-image:url("./../image/company-slide-3.jpg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* Dark Overlay Layer */
.contact.has-bg::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    background:var(--page-veil);
}

.container{
    width:100%;
    max-width:var(--content-max);
    margin:clamp(10px,2vw,18px) auto;
    padding-left:var(--section-pad-x);
    padding-right:var(--section-pad-x);
}

.panel{
    background:var(--card-panel);
    border:1px solid var(--card-border);
    border-radius:14px;
    box-shadow:0 10px 28px rgba(0,0,0,.35);
    overflow:hidden;
    backdrop-filter:blur(1px);
}

/* Layout */
.contact-wrap{
    display:grid;
    grid-template-columns:0.95fr 1.05fr;
    gap:18px;
    padding:16px;
}

.contact-left{padding:10px 12px;}
.contact-left h1{
    margin:0 0 8px;
    font-family:'Orbitron','Roboto Mono',Arial,sans-serif;
    font-weight:700;
    font-size:clamp(1.8rem,3.3vw,2.2rem);
}
.contact-left .lead{color:var(--muted);line-height:1.9;margin:0 0 8px;}
.contact-left ul{margin:6px 0 0 18px;color:var(--muted);line-height:1.8;}

.contact-right{padding:10px 12px;}

/* Form Fields */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;}
.field label,.field legend{font-weight:700;color:#fff;}

/* Input Styling - Fixed for Consistency */
.field input,
.field textarea,
.field select{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.1);
    color:#fff;
    border-radius:10px;
    padding:10px 12px;
    outline:none;
    transition:border-color .15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus{
    border-color:var(--brand);
}

/* Chrome Autofill Override - Fixes White First Name Bug */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus{
    -webkit-box-shadow: 0 0 0 1000px rgba(30,34,40,.95) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border:1px solid rgba(255,255,255,.1) !important;
}

.field small.error{color:#ffb4b4;min-height:16px;}

/* Checkboxes */
/*.checkbox{display:flex;gap:8px;align-items:flex-start;color:var(--muted);}*/
/*.checkbox input{margin-top:4px;}*/

/*.checks{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px;}*/
/*.checks label{display:flex;gap:8px;align-items:center;color:var(--muted);cursor:pointer;}*/
.checks input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.checks input[type="checkbox"]:hover {
    border-color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.1);
}

.checks input[type="checkbox"]:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.checks input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

.checks label {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

/* Grid Layout */
.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:10px;}

/* Actions */
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px;}

.btn{
    appearance:none;
    border:none;
    cursor:pointer;
    background:var(--blue);
    color:#fff;
    padding:10px 16px;
    border-radius:12px;
    font-weight:700;
    box-shadow:0 6px 16px rgba(30,99,255,.35);
    transition:background 0.2s ease;
}

.btn:hover{background:var(--blue-600);}
.btn.secondary{background:rgba(255,255,255,.1);box-shadow:none;}
.btn[disabled]{opacity:.6;cursor:not-allowed;}

/* Status Messages */
.status{
    margin-top:10px;
    padding:10px;
    border-radius:10px;
    background:rgba(255,255,255,.06);
    color:var(--muted);
}
.status.ok{border:1px solid rgba(0,200,0,.4);color:#d5ffd5;}
.status.err{border:1px solid rgba(255,0,0,.4);color:#ffd5d5;}

/* Honeypot */
.hp{
    position:absolute !important;
    left:-99999px !important;
    opacity:0 !important;
    height:0 !important;
    width:0 !important;
    border:0 !important;
    padding:0 !important;
}

/* Responsive */
@media (max-width: 980px){
    .contact-wrap{grid-template-columns:1fr;}
    .grid.two{grid-template-columns:1fr;}
}
@media (max-width: 640px) {
    .checks {
        grid-template-columns: 1fr;
    }
}