/**
 * public/css/survey-theme.css
 * Survey Order Form theme — loaded after site.css so the app is visually distinct
 * from the CroyProjects portal (white nav, teal "field" palette, contour header band).
 */
:root {
  --ce-navy:     #123c36;   /* headings, titles      */
  --ce-navy-lt:  #1b4f47;
  --ce-blue:     #0f766e;   /* primary accent (teal) */
  --ce-blue-lt:  #ccfbf1;
  --ce-blue-mid: #f0fdfa;
  --bg:          #f3f5f2;
  --border:      #dfe5e1;
  --border-strong: #c3cdc7;
  --font-head:   'Barlow', 'DM Sans', -apple-system, sans-serif;
}

/* ── Nav: light instead of the portal's dark navy ─────────────── */
.ce-nav {
  background: #fff;
  border-top: 4px solid var(--ce-blue);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(18, 60, 54, .08);
}
.ce-nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.so-app-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ce-blue);
  border-left: 2px solid var(--border); padding-left: 12px; line-height: 1.1; white-space: nowrap;
}
.so-app-tag small { display: block; font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: .08em; }
.ce-nav-links a { color: #475569; font-family: var(--font-head); font-weight: 500; }
.ce-nav-links a:hover { color: var(--ce-navy); background: var(--ce-blue-mid); }
.ce-nav-links a.active { color: #115e59; background: var(--ce-blue-lt); }
.ce-nav-user { color: #475569; }
.ce-nav-avatar { background: var(--ce-blue); }
.ce-nav-right .ce-btn-ghost { color: #64748b !important; }
.ce-nav-right .ce-btn-ghost:hover { color: var(--ce-navy) !important; background: var(--ce-blue-mid); }

/* ── Page header: teal band with a topo-contour pattern ───────── */
.ce-page-header {
  padding: 22px 26px; border-radius: var(--radius-lg); align-items: center;
  background-color: #115e59;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160' viewBox='0 0 420 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M-10 120 C 60 80 120 140 200 100 S 340 40 430 90'/%3E%3Cpath d='M-10 100 C 60 60 120 120 200 80 S 340 20 430 70'/%3E%3Cpath d='M-10 80 C 60 40 120 100 200 60 S 340 0 430 50'/%3E%3Cpath d='M-10 140 C 60 100 120 160 200 120 S 340 60 430 110'/%3E%3Cpath d='M-10 60 C 60 20 120 80 200 40 S 340 -20 430 30'/%3E%3Cellipse cx='330' cy='120' rx='40' ry='18'/%3E%3Cellipse cx='330' cy='120' rx='22' ry='9'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(120deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
  background-size: 420px 160px, cover;
  box-shadow: 0 4px 14px rgba(17, 94, 89, .18);
}
.ce-page-title { color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.ce-page-subtitle { color: rgba(255, 255, 255, .82); }
.ce-page-header a:not(.ce-btn) { color: #a7f3d0 !important; }
.ce-page-header .ce-btn-outline { background: #fff; color: var(--ce-navy) !important; border-color: #fff; font-weight: 600; }
.ce-page-header .ce-btn-outline:hover { background: var(--ce-blue-lt); border-color: var(--ce-blue-lt); }
.ce-page-header .ce-btn-outline:disabled { opacity: .7; cursor: wait; }

/* ── Cards & form accents ─────────────────────────────────────── */
.ce-card { border-top: 3px solid var(--ce-blue-lt); }
.ce-card-icon { background: var(--ce-blue); color: #fff; font-family: var(--font-head); font-weight: 600; }
.ce-card-title, .so-group-title { font-family: var(--font-head); font-size: 15px; letter-spacing: .01em; }
.so-divider { color: var(--ce-blue) !important; border-bottom-color: var(--ce-blue-lt) !important; }
.ce-field input:focus, .ce-field select:focus, .ce-field textarea:focus,
input.ce-input:focus, select.ce-input:focus { border-color: var(--ce-blue); box-shadow: 0 0 0 3px rgba(15, 118, 110, .15); }
.ce-btn-primary { background: var(--ce-blue); border-color: var(--ce-blue); }
.ce-btn-primary:hover { background: #115e59; border-color: #115e59; }
.ce-banner-info { background: var(--ce-blue-mid); color: #115e59; border-color: #99f6e4; }
.so-badge.known { background: var(--ce-blue-mid); border-color: #99f6e4; color: #115e59; }
.ce-filter-tab.active { color: var(--ce-blue); border-bottom-color: var(--ce-blue); }
.ce-table tbody tr:hover td { background: var(--ce-blue-mid); }
.ce-table a { color: #0f766e; }
