/* Ahadees.com — Contact Us (public form) */
:root {
  /* Palette matched to ahadees.com (periwinkle / lavender blues) */
  --brand:            #00428b;   /* medium blue — the site's structural blue */
  --brand-2:          #012266;   /* navy — darker hover / headings */
  --accent:           #3b49b8;   /* periwinkle-blue accent */
  --periwinkle:       #c0c4ff;   /* ahadees.com signature periwinkle */
  --periwinkle-soft:  #cdd2f0;   /* light periwinkle (menu header) */
  --brand-light:      #e7e9fb;   /* light periwinkle tint (hovers) */
  --bg:               #f1f1fd;   /* ahadees.com lavender page background */
  --card:             #ffffff;
  --text:             #1c2430;
  --muted:            #5b6675;
  --border:           #ccd2ec;   /* periwinkle-tinted border */
  --success:          #0f7b48;
  --success-bg:       #e6f5ec;
  --error:            #b3261e;
  --error-bg:         #fdecea;
  --radius:           14px;
  --shadow:           0 8px 30px rgba(1, 34, 102, .10);
  --shadow-sm:        0 2px 8px rgba(1, 34, 102, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", Verdana, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  box-shadow: var(--shadow-sm);
}
.nav-toggle-cb { position: absolute; left: -9999px; opacity: 0; }
.header-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: inline-flex; }
.brand-logo { height: 58px; width: auto; display: block; }

/* Hamburger (hidden on desktop, shown on mobile) */
.nav-toggle {
  display: none;
  cursor: pointer;
  width: 46px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: #fff;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--brand);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after  { top: 7px; }
.nav-toggle-cb:focus ~ .site-header .nav-toggle { outline: 3px solid rgba(0,66,139,.4); }

/* ---------- Layout: left sidebar + content ---------- */
.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 40px;
  display: flex;
  align-items: flex-start;
  gap: 26px;
}
.sidebar { width: 220px; flex-shrink: 0; }
.content { flex: 1; min-width: 0; max-width: 720px; }

/* Sidebar menu panel */
.side-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 18px;
}
.side-menu-head {
  background: linear-gradient(180deg, #d8dcf5, var(--periwinkle-soft));
  color: var(--brand-2);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-bottom: 2px solid var(--brand);
}
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li + li { border-top: 1px solid var(--border); }
.side-menu a {
  display: block;
  padding: 11px 16px;
  color: #33404f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.side-menu a:hover { background: var(--brand-light); color: var(--brand); }
.side-menu a.active {
  background: var(--brand-light);
  color: var(--brand);
  border-left-color: var(--brand);
}
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 18px;
}
.crumbs a { color: var(--brand-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--muted); }

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.card-head h1 {
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--brand);
  letter-spacing: -.2px;
}
.card-head p { margin: 0 0 22px; color: var(--muted); }

/* ---------- Fields ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 7px;
  color: #2a3646;
}
.req { color: var(--error); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfcfe;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 73, 184, .22);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
  background: #fffafa;
}
.err { color: var(--error); font-size: 13px; margin: 7px 0 0; }
.field-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.counter { font-size: 12px; color: var(--muted); white-space: nowrap; }
.counter.over { color: var(--error); font-weight: 700; }

/* Honeypot: visually hidden, still in the DOM for bots. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-primary:disabled { opacity: .65; cursor: default; }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: #084a97; }
.btn-ghost { background: #eef2f9; color: #33404f; }
.btn-ghost:hover { background: #e2e8f4; }
.fineprint { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Alerts ---------- */
.alert {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 15px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: var(--success); border-color: #b7e2c8; }
.alert-error   { background: var(--error-bg);   color: var(--error);   border-color: #f4c7c3; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 28px 16px 36px;
}
.footer-ornament { display: inline-block; max-width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .layout { flex-direction: column; gap: 16px; }
  .sidebar { width: 100%; display: none; }
  .nav-toggle-cb:checked ~ .layout .sidebar { display: block; }
  .side-menu { position: static; }
}
@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  .card-head h1 { font-size: 22px; }
  .brand-logo { height: 48px; }
}
