/* SFQ UI – Bright, friendly, mobile-first (Auth + Admin compatible) */

:root{
  /* Backgrounds */
  --bg: linear-gradient(180deg, #f7fbf9 0%, #eef6f2 100%);
  --card: #ffffff;
  --border: rgba(0,0,0,.08);
  --field: #f6faf8;
  --field-border: rgba(0,0,0,.12);

  /* Text */
  --text:#102a22;
  --muted:#5f7d73;
  --link:#2a8f6a;

  /* Accent */
  --accent:#6cff9f;
  --accent-soft: rgba(108,255,159,.18);
  --accent-blue:#4fb6ff;

  /* Buttons */
  --btn-bg: linear-gradient(135deg, #6cff9f, #4fb6ff);
  --btn-fg:#042017;
  --btn-secondary-bg:#ffffff;
  --btn-secondary-fg:#102a22;
  --btn-secondary-border: rgba(0,0,0,.12);

  /* Feedback */
  --err:#d64545;
  --warn:#b86a00;
  --ok:#1b8a5a;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

/* ---------- Shared layout (Auth + Admin) ---------- */
.sfq-shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
}

.sfq-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
}

.sfq-card{
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow:
    0 20px 40px rgba(0,0,0,.06),
    0 4px 10px rgba(0,0,0,.04);
}

.sfq-card-wide{ max-width: 920px; }

/* ---------- Typography ---------- */
.sfq-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--accent-soft);
  color: #116b47;
}

.sfq-h1{
  margin: 14px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.sfq-h2{
  margin: 16px 0 8px;
  font-size: 16px;
  line-height: 1.25;
}

.sfq-p{
  margin:0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Feedback ---------- */
.sfq-err{
  margin: 10px 0 0;
  color: var(--err);
  font-weight: 700;
}
.sfq-ok{ color: var(--ok); font-weight: 700; }
.sfq-warn{ color: var(--warn); font-weight: 700; }

/* ---------- Forms ---------- */
.sfq-form{ margin-top: 14px; }

.sfq-label{
  display:block;
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.sfq-input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  outline: none;
}

.sfq-input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background:#ffffff;
}

.sfq-row{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  align-items:center;
  flex-wrap:wrap;
}

.sfq-divider{
  height:1px;
  background: rgba(0,0,0,.08);
  margin: 18px 0;
}

.sfq-footnote{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons (Admin-friendly, calmer) ---------- */
.sfq-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  /* tighter + more deliberate */
  padding: 11px 16px;
  border-radius: 10px;              /* less bubble */

  border: none;
  background: var(--btn-bg);
  color: var(--btn-fg);

  cursor:pointer;
  font-weight: 800;                 /* slightly reduced */
  letter-spacing:.15px;
  min-height: 42px;

  /* calmer elevation */
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  text-decoration:none;

  transition:
    filter .15s ease,
    box-shadow .15s ease,
    transform .1s ease;
}

.sfq-btn:hover{
  filter: brightness(1.02);         /* subtler */
}

.sfq-btn:active{
  transform: none;                  /* no bounce */
  box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
}

/* Secondary buttons stay quieter */
.sfq-btn-secondary{
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border: 1px solid var(--btn-secondary-border);
  box-shadow: none;
}

.sfq-btn-secondary:hover{
  background: rgba(0,0,0,.02);
}

.sfq-btn-secondary:active{
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}

/* Links untouched */
.sfq-small{
  font-size: 13px;
  color: var(--muted);
}

.sfq-link{
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}
.sfq-link:hover{ text-decoration: underline; }

.sq-consent-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 18px;
}

.sq-consent-card{
  width: min(560px, 100%);
  background: #141414;
  color: #f4f4f4;
  border: 1px solid #242424;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}

.sq-consent-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: 13px;
}

.sq-consent-title{
  margin: 12px 0 6px;
  font-size: 20px;
  letter-spacing: .2px;
}

.sq-consent-text{
  margin: 8px 0;
  opacity: .85;
  line-height: 1.45;
  font-size: 14px;
}

.sq-consent-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.sq-consent-check input{ margin-top: 3px; }

.sq-consent-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.sq-consent-btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #fff;
  color: #000;
  font-weight: 800;
  cursor: pointer;
}

.sq-consent-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}

.sq-consent-links{
  margin-top: 12px;
}

.sq-consent-link{
  color: #9ad;
  text-decoration: none;
  font-size: 13px;
  opacity: .9;
}

.sq-consent-link:hover{ text-decoration: underline; }

.sq-consent-powered{
  margin-top: 10px;
  font-size: 11px;
  opacity: .6;
  text-align: right;
}

.sq-consent-powered a{
  color: inherit;
  text-decoration: none;
}
.sq-consent-powered a:hover{ text-decoration: underline; }

body.sq-modal-open{ overflow:hidden; }

/* mobile: let card scroll if content is long */
.sq-consent-card{
  max-height: min(82vh, 680px);
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px){
  .sq-consent-card{ padding: 14px; border-radius: 16px; }
  .sq-consent-title{ font-size: 18px; }
}

/* Mobile tweaks */
@media (max-width: 420px){
  .sfq-btn{ width: 100%; }
  .sfq-row{ gap: 14px; }
  .sfq-wrap{ padding: 16px; }
}