/* ============================================================
   CNSTECH Contact Page — contact.css
   Dark / technical / cyan aesthetic matching rebuilt pages
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --bg-page:#070d18;
  --bg-card:rgba(255,255,255,0.035);
  --bg-card-hover:rgba(255,255,255,0.06);
  --bg-header:rgba(7,13,24,0.82);
  --bg-input:rgba(255,255,255,0.05);

  --text:#eef4ff;
  --text-muted:rgba(238,244,255,0.6);
  --text-dim:rgba(238,244,255,0.4);

  --accent:#2388ff;
  --cyan:#00b8ff;
  --accent-glow:rgba(0,184,255,0.12);

  --border:rgba(255,255,255,0.10);
  --border-focus:rgba(0,184,255,0.5);

  --radius:0.75rem;
  --radius-lg:1.15rem;
  --shadow:0 18px 40px rgba(3,8,19,0.35);

  --font-stack:Aptos,"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --transition:0.25s cubic-bezier(.4,0,.2,1);
}

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:var(--font-stack);
  background:var(--bg-page);
  color:var(--text);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{display:block;max-width:100%;height:auto}
a{color:var(--cyan);text-decoration:none;transition:color var(--transition)}
a:hover{color:#fff}
::selection{background:var(--accent);color:#fff}

/* --- Container --------------------------------------------- */
.container{width:100%;max-width:1160px;margin:0 auto;padding:0 1.25rem}

/* --- Header ------------------------------------------------ */
.site-header{
  position:sticky;top:0;left:0;right:0;z-index:100;
  background:var(--bg-header);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  transition:background var(--transition);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:64px;
}
.header-logo img{height:36px;width:auto}
.nav-list{
  display:flex;align-items:center;list-style:none;gap:.5rem;
}
.nav-list a{
  display:inline-flex;align-items:center;
  font-size:.9375rem;font-weight:600;color:var(--text-muted);
  padding:.5rem .85rem;position:relative;border-radius:var(--radius);
  text-decoration:none !important;
  transition:color var(--transition),background var(--transition);
}
.nav-list a::after{display:none}
.nav-list a:hover{color:var(--text);background:rgba(255,255,255,.05)}
.nav-list a.nav-active{color:var(--cyan);background:var(--accent-glow)}

/* Mobile nav toggle */
.nav-toggle{
  display:none;background:none;border:none;cursor:pointer;
  width:40px;height:40px;padding:8px;
  flex-direction:column;justify-content:center;align-items:center;gap:5px;
}
.nav-toggle-bar{
  display:block;width:22px;height:2px;background:var(--text);
  border-radius:2px;transition:transform var(--transition),opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* --- Buttons ----------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--font-stack);font-size:.9375rem;font-weight:600;
  padding:.75rem 1.5rem;border-radius:var(--radius);
  cursor:pointer;transition:all var(--transition);
  border:1px solid transparent;text-decoration:none;
  white-space:nowrap;
}
.btn:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

.btn-primary{
  background:var(--accent);color:#fff;border-color:var(--accent);
}
.btn-primary:hover{
  background:#1a70e0;border-color:#1a70e0;color:#fff;
  box-shadow:0 0 24px rgba(35,136,255,0.3);
}

.btn-outline{
  background:var(--bg-card);color:var(--text);
  border-color:var(--border);
}
.btn-outline:hover{
  background:var(--bg-card-hover);border-color:rgba(255,255,255,0.2);color:#fff;
}

/* --- Hero -------------------------------------------------- */
.hero-section{
  position:relative;
  padding:9rem 0 5rem;
  overflow:hidden;
}
.hero-grid-overlay{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(rgba(0,184,255,0.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,184,255,0.03) 1px,transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,#000 30%,transparent 70%);
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%,#000 30%,transparent 70%);
}
.hero-content{max-width:680px;position:relative;z-index:1}
.eyebrow{
  display:inline-flex;align-items:center;gap:.5rem;
  font-size:.8125rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--cyan);margin-bottom:1rem;
}
.eyebrow::before{
  content:'';display:inline-block;width:28px;height:2px;background:var(--cyan);
}
.hero-section h1{
  font-size:clamp(1.75rem,4vw,2.75rem);
  font-weight:700;line-height:1.2;
  margin-bottom:1.25rem;color:#fff;
}
.hero-intro{
  font-size:1.0625rem;color:var(--text-muted);
  margin-bottom:2rem;max-width:560px;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem}

/* --- Contact Method Cards ---------------------------------- */
.methods-section{padding:4rem 0}
.methods-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;
}
.method-card{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:1.75rem 1.5rem;
  text-align:center;transition:all var(--transition);
}
.method-card:hover{
  background:var(--bg-card-hover);border-color:rgba(255,255,255,0.18);
  transform:translateY(-2px);box-shadow:var(--shadow);
}
.method-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:50%;
  background:var(--accent-glow);color:var(--cyan);
  margin-bottom:1rem;
}
.method-label{
  font-size:.8125rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.08em;color:var(--text-dim);margin-bottom:.5rem;
}
.method-value{
  font-size:.9375rem;font-weight:500;color:var(--text);
  word-break:break-word;
}
a.method-value:hover{color:var(--cyan)}

/* --- Form Section ------------------------------------------ */
.form-section{padding:5rem 0}
.form-layout{
  display:grid;grid-template-columns:1fr 1.15fr;gap:3.5rem;
  align-items:start;
}
.form-info{max-width:420px}
.form-info h2{
  font-size:1.75rem;font-weight:700;margin-bottom:1rem;color:#fff;
}
.form-info>p{color:var(--text-muted);margin-bottom:2rem}

.trust-points{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}
.trust-item{
  display:flex;align-items:flex-start;gap:.6rem;
  font-size:.9375rem;color:var(--text-muted);
}
.trust-item svg{color:var(--cyan);flex-shrink:0;margin-top:2px}
.trust-note{font-size:.8125rem;color:var(--text-dim);font-style:italic}

/* Form wrapper */
.form-wrapper{position:relative}
.contact-form{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:2.25rem;
}

/* Honeypot */
.hp-field{
  position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;
  opacity:0;pointer-events:none;
}

.form-group{margin-bottom:1.25rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}

label{
  display:block;font-size:.875rem;font-weight:600;
  margin-bottom:.4rem;color:var(--text);
}
.required{color:var(--cyan)}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width:100%;font-family:var(--font-stack);font-size:.9375rem;
  padding:.7rem 1rem;color:var(--text);
  background:var(--bg-input);
  border:1px solid var(--border);border-radius:var(--radius);
  transition:border-color var(--transition),box-shadow var(--transition);
  appearance:none;-webkit-appearance:none;
}
select{
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2399a4b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 1rem center;
  padding-right:2.5rem;
}
textarea{resize:vertical;min-height:120px}

input:focus,select:focus,textarea:focus{
  outline:none;border-color:var(--border-focus);
  box-shadow:0 0 0 3px rgba(0,184,255,0.12);
}

input.invalid,select.invalid,textarea.invalid{
  border-color:#ff4d6a;
}
.field-error{
  display:block;font-size:.78rem;color:#ff4d6a;
  min-height:1.1rem;margin-top:.25rem;
}

.recaptcha-notice{
  font-size:.75rem;color:var(--text-dim);margin-bottom:1.25rem;
}

.btn-submit{width:100%;justify-content:center;padding:.85rem}
.btn-submit .btn-loading{display:none}
.btn-submit.loading .btn-text{display:none}
.btn-submit.loading .btn-loading{display:inline-flex}

/* Success state */
.form-success{
  text-align:center;padding:3rem 2rem;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);
}
.success-icon{color:var(--cyan);margin-bottom:1.25rem}
.form-success h3{font-size:1.35rem;margin-bottom:.75rem;color:#fff}
.form-success p{color:var(--text-muted)}

/* --- Map Section ------------------------------------------- */
.map-section{padding:5rem 0}
.map-layout{
  display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;
}
.map-info h2{font-size:1.75rem;font-weight:700;color:#fff;margin-bottom:.75rem}
.map-info p{color:var(--text-muted);margin-bottom:.5rem}
.map-hours{margin-bottom:1.5rem !important}

.map-card{
  display:flex;align-items:center;justify-content:center;
  min-height:320px;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);
  transition:all var(--transition);overflow:hidden;
  text-decoration:none;
}
.map-card:hover{
  border-color:rgba(255,255,255,0.18);
  box-shadow:var(--shadow);
}
.map-placeholder{
  display:flex;flex-direction:column;align-items:center;
  gap:.4rem;color:var(--text-muted);
  padding:2rem;text-align:center;
}
.map-placeholder svg{color:var(--cyan);margin-bottom:.5rem}
.map-placeholder span{font-size:1.125rem;font-weight:600;color:var(--text)}
.map-placeholder small{font-size:.875rem}
.map-cta{
  margin-top:.75rem;font-weight:600;color:var(--cyan) !important;
  border-bottom:1px dashed var(--cyan);padding-bottom:2px;
}

/* --- Routing Section --------------------------------------- */
.routing-section{padding:5rem 0}
.routing-section h2{
  font-size:1.75rem;font-weight:700;color:#fff;margin-bottom:2.5rem;
}
.routing-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;
}
.routing-card{
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:1.75rem;
  transition:all var(--transition);text-decoration:none;
  display:flex;flex-direction:column;
}
.routing-card:hover{
  background:var(--bg-card-hover);border-color:rgba(255,255,255,0.18);
  transform:translateY(-3px);box-shadow:var(--shadow);color:var(--text);
}
.routing-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:56px;height:56px;border-radius:var(--radius);
  background:var(--accent-glow);color:var(--cyan);
  margin-bottom:1.25rem;
}
.routing-card h3{font-size:1.0625rem;font-weight:700;color:#fff;margin-bottom:.5rem}
.routing-card p{font-size:.875rem;color:var(--text-muted);line-height:1.5}

/* --- FAQ Section ------------------------------------------- */
.faq-section{padding:5rem 0 6rem}
.faq-section h2{
  font-size:1.75rem;font-weight:700;color:#fff;margin-bottom:2.5rem;
}
.faq-list{max-width:760px}
.faq-item{
  border-bottom:1px solid var(--border);
}
.faq-item summary{
  display:flex;justify-content:space-between;align-items:center;
  padding:1.25rem 0;cursor:pointer;
  font-size:1rem;font-weight:600;color:var(--text);
  list-style:none;
  transition:color var(--transition);
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:'';display:block;width:12px;height:12px;flex-shrink:0;
  border-right:2px solid var(--text-muted);border-bottom:2px solid var(--text-muted);
  transform:rotate(45deg);transition:transform var(--transition);margin-left:1rem;
}
.faq-item[open] summary::after{transform:rotate(-135deg)}
.faq-item summary:hover{color:var(--cyan)}
.faq-item summary:focus-visible{outline:2px solid var(--cyan);outline-offset:2px;border-radius:4px}
.faq-answer{
  padding:0 0 1.25rem;
  color:var(--text-muted);font-size:.9375rem;line-height:1.7;
}
.faq-answer a{color:var(--cyan)}

/* --- Footer ------------------------------------------------ */
.site-footer{
  background:var(--bg-page);
  border-top:1px solid var(--border);
  padding:3.5rem 0 2rem;
}
.footer-grid{
  display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2.5rem;
  margin-bottom:2.5rem;
}
.footer-brand img{height:32px;width:auto;margin-bottom:1rem}
.footer-brand p{font-size:.875rem;color:var(--text-muted);line-height:1.6;max-width:300px}

.footer-title{
  font-size:.8125rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.08em;color:var(--text);margin-bottom:1rem;
}
.footer-links{list-style:none}
.footer-links li{margin-bottom:.5rem}
.footer-links a{font-size:.875rem;color:var(--text-muted)}
.footer-links a:hover{color:var(--cyan)}
.footer-links li:last-child:not(:has(a)){font-size:.875rem;color:var(--text-muted)}

.footer-bottom{
  border-top:1px solid var(--border);padding-top:1.5rem;
}
.footer-bottom p{font-size:.8125rem;color:var(--text-dim)}

/* --- Responsive -------------------------------------------- */
@media(max-width:1024px){
  .methods-grid{grid-template-columns:repeat(2,1fr)}
  .routing-grid{grid-template-columns:repeat(2,1fr)}
  .form-layout{grid-template-columns:1fr}
  .form-info{max-width:100%}
  .map-layout{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1/-1}
}

@media(max-width:768px){
  .hero-section{padding:3.5rem 0 3.5rem}
  .hero-section h1{font-size:1.6rem}
  .hero-intro{font-size:.9375rem}

  .nav-toggle{display:flex}
  .main-nav{
    position:absolute;top:100%;left:1rem;right:1rem;
    background:rgba(7,13,24,.97);
    backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
    border:1px solid var(--border);border-radius:var(--radius-lg);
    box-shadow:var(--shadow);
    padding:.75rem;
    max-height:0;overflow:hidden;visibility:hidden;opacity:0;
    transition:max-height var(--transition),opacity var(--transition),visibility var(--transition);
    z-index:101;
  }
  .main-nav.open{max-height:360px;visibility:visible;opacity:1}
  .nav-list{flex-direction:column;gap:0}
  .nav-list a{display:flex;padding:.85rem 1rem;font-size:1rem}

  .methods-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .routing-grid{grid-template-columns:1fr}

  .contact-form{padding:1.5rem}

  .footer-grid{grid-template-columns:1fr}
}

@media(max-width:480px){
  .container{padding:0 1rem}
  .header-logo img{height:30px}
  .header-inner{height:58px}
  .hero-actions{flex-direction:column}
  .hero-actions .btn{width:100%;justify-content:center}
  .method-card{padding:1.25rem 1rem}
}

/* --- Focus visible polyfill -------------------------------- */
:focus:not(:focus-visible){outline:none}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

/* --- Reduced motion ---------------------------------------- */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    transition-duration:.01ms !important;
  }
  html{scroll-behavior:auto}
}


/* Embedded Google Business map variant */
.map-embed-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 0;
}
.map-iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(15%) contrast(1.05) saturate(.9);
}
.map-open-link {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem .9rem;
  border-radius: 999px;
  background: rgba(3, 13, 25, .88);
  color: var(--cyan);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}
.map-open-link:hover,
.map-open-link:focus-visible {
  color: #fff;
  background: rgba(0, 184, 255, .22);
}
@media(max-width:768px){
  .map-embed-card { min-height: 320px; }
  .map-iframe { height: 320px; }
}

/* WordPress form handler status messages */
.form-alert {
  margin: 0 0 1rem;
  padding: .95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
}
.form-alert-sent {
  border-color: rgba(0, 214, 143, .42);
  background: rgba(0, 214, 143, .12);
}
.form-alert-error,
.form-alert-spam,
.form-alert-rate {
  border-color: rgba(255, 107, 107, .5);
  background: rgba(255, 107, 107, .12);
}
