/* NCC Email Signature Generator — page chrome.
   System font stack (main-site CSP blocks external Google Fonts). */
:root {
  --navy: #002d74;
  --cyan: #26ace2;
  --gray: #3d5a6b;
  --light-blue: #7eadd6;
  --bg-blue: #e1eff9;
  --orange: #ff8200;
  --page: #f0f4f8;
  --card: #ffffff;
  --line: #dce6f0;
  --muted: #8baabb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--page);
  color: var(--gray);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Top bar ── */
.topbar {
  background: var(--navy);
  padding: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 30px; width: auto; background: #fff; padding: 5px 8px; border-radius: 6px; }
.brand-text {
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}

/* ── Layout ── */
.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 64px; }
.intro { margin-bottom: 28px; }
.intro h1 {
  color: var(--navy); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
}
.intro p { color: var(--gray); max-width: 620px; font-size: 15px; }

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,45,116,0.08);
  padding: 24px;
}
.group-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 14px;
}
.group-label small { font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* ── Form ── */
.form-group { margin-bottom: 22px; }
.form-group:last-child { margin-bottom: 0; }
.field { display: block; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field > span {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px;
}
.field em { color: var(--orange); font-style: normal; }
.field input {
  width: 100%;
  font-family: inherit; font-size: 14px; color: var(--navy);
  padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fbfdff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #b6c6d4; }
.field input:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(38,172,226,0.15);
}

/* ── Preview ── */
.preview-pane { position: sticky; top: 24px; }
.preview {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 120px;
  display: flex; align-items: center;
  overflow-x: auto;
}
.preview-empty { color: var(--muted); font-size: 14px; }
.preview-empty strong { color: var(--gray); }

/* CTA button hover, preview-only. The copied signature uses inline styles and
   can't carry :hover, so these mirror the design intent on the generator page.
   !important is needed to beat the anchors' inline colors. */
.preview .sig-btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.preview .sig-btn-book:hover {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}
.preview .sig-btn-season:hover {
  background-color: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

/* ── Actions ── */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:not(:disabled):hover { background: #1f97c7; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:not(:disabled):hover { border-color: var(--cyan); color: var(--cyan); }
.btn.is-ok { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }
.btn.is-error { background: #d64545; border-color: #d64545; color: #fff; }

.hint { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.hint strong { color: var(--gray); }

.source-details { margin-top: 14px; }
.source-details summary {
  cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; user-select: none;
}
.source-details summary:hover { color: var(--cyan); }
.source {
  width: 100%; margin-top: 10px; resize: vertical;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--gray);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fbfdff;
}

/* ── Instructions ── */
.instructions { margin-top: 44px; }
.instructions h2 { color: var(--navy); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.instructions-lead { font-size: 14.5px; color: var(--gray); max-width: 760px; margin-bottom: 20px; }
.instructions details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px;
}
.instructions details[open] { box-shadow: 0 2px 12px rgba(0,45,116,0.06); }
.instructions summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 15px; user-select: none;
}
.instructions summary:hover { color: var(--cyan); }
.instructions ol { margin: 12px 0 4px 20px; font-size: 14px; color: var(--gray); }
.instructions ol li { margin-bottom: 7px; }

.troubleshoot {
  margin-top: 24px; background: var(--bg-blue); border-radius: 10px; padding: 18px 22px;
}
.troubleshoot h3 { color: var(--navy); font-size: 15px; margin-bottom: 10px; }
.troubleshoot ul { margin-left: 18px; font-size: 14px; color: var(--gray); }
.troubleshoot li { margin-bottom: 7px; }

/* ── Footer ── */
.foot { text-align: center; padding: 28px 16px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--cyan); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .preview-pane { position: static; }
  .wrap { padding: 28px 16px 48px; }
}
