/* ═══════ FRD TOOLS — FORM STYLES v2 ═══════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #cc1517;
  --black: #1d1d1b;
  --white: #ffffff;
  --cream: #f0ede8;
  --surface: #242422;
  --surface-2: #2e2e2c;
  --surface-3: #383836;
  --border: #3a3a38;
  --muted: #b0b0b0;
  --text: #e8e8e8;
  --radius: 12px;
  --transition: .15s ease;
}
body { background: var(--black); color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── TOPBAR ── */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--red); z-index: 100; }

/* ── LANG SWITCHER ── */
.lang-switcher { display: flex; justify-content: center; gap: 4px; padding: 16px 0 0; }
.lang-btn { background: none; border: 1px solid var(--border); color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 1px; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: all var(--transition); }
.lang-btn:hover { color: var(--white); border-color: var(--white); }
.lang-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── HEADER ── */
.form-header { padding: 32px 24px 28px; text-align: center; border-bottom: 1px solid var(--border); }
.header-skull { width: 36px; height: 36px; margin-bottom: 14px; }
.form-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 6px; }
.form-title { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 2px; line-height: 1.1; color: var(--white); }
.form-subtitle { font-size: 16px; color: var(--muted); font-weight: 400; margin-top: 8px; line-height: 1.7; }

/* ── PROGRESS ── */
.progress-bar { position: sticky; top: 4px; z-index: 90; background: var(--black); padding: 12px 24px; border-bottom: 1px solid var(--border); }
.progress-fill { height: 3px; background: var(--red); border-radius: 2px; transition: width .3s ease; width: 0%; }
.progress-text { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; text-align: center; }

/* ── FORM CONTAINER ── */
.form-container { max-width: 600px; margin: 0 auto; padding: 0 24px 100px; }

/* ── FORM SECTION ── */
.form-section { padding: 36px 0; border-bottom: 1px solid var(--border); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 1.5px; margin-bottom: 24px; color: var(--white); }

/* ── FORM GROUP / FIELD ── */
.form-group { margin-bottom: 22px; }
.form-group label { font-size: 15px; font-weight: 500; margin-bottom: 8px; display: block; color: var(--white); }
.form-group label .opt { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* ── INPUT / TEXTAREA ── */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.frd-input, .frd-textarea {
  width: 100%; padding: 13px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 15px;
  outline: none; transition: border-color var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder,
.frd-input::placeholder, .frd-textarea::placeholder { color: var(--muted); font-weight: 400; }
.form-group input:focus, .form-group textarea:focus,
.frd-input:focus, .frd-textarea:focus { border-color: var(--red); }
.form-group textarea, .frd-textarea { min-height: 90px; resize: vertical; }

/* ── STAR RATING ── */
.rating-stars { display: flex; gap: 8px; }
.rating-stars .star {
  width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  font-size: 22px; cursor: pointer; transition: all var(--transition);
}
.rating-stars .star:hover { border-color: var(--red); color: var(--white); }
.rating-stars .star.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── NUMERIC RATING ── */
.rating { display: flex; gap: 8px; }
.rating-btn {
  width: 46px; height: 46px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.rating-btn:hover { border-color: var(--red); color: var(--white); }
.rating-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── CHOICES ── */
.choice-buttons, .choices { display: flex; flex-direction: column; gap: 8px; }
.choice-btn {
  display: block; width: 100%; padding: 13px 18px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 15px;
  cursor: pointer; transition: all var(--transition);
}
.choice-btn:hover { border-color: var(--red); background: var(--surface-2); }
.choice-btn.active { background: var(--red); border-color: var(--red); }

/* ── AUDIO RECORDER ── */
.audio-recorder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; }
.rec-status { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 14px; }
.rec-status.recording { color: var(--red); }
.rec-timer { font-family: 'IBM Plex Mono', monospace; font-size: 30px; font-weight: 500; margin-bottom: 18px; }
.rec-btn { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--red); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition); position: relative; }
.rec-btn::after { content: ''; width: 22px; height: 22px; background: var(--red); border-radius: 50%; transition: all .2s; }
.rec-btn.recording::after { width: 18px; height: 18px; border-radius: 4px; }
.rec-btn:hover { transform: scale(1.05); }
.rec-playback { margin-top: 14px; display: none; }
.rec-playback.visible { display: block; }
.rec-playback audio { width: 100%; height: 36px; border-radius: 8px; }
.rec-actions { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.rec-action-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all var(--transition); }
.rec-action-btn:hover { color: var(--white); border-color: var(--red); }

/* Legacy record-btn style */
.record-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all var(--transition); }
.record-btn:hover { border-color: var(--red); color: var(--white); }
.record-btn.recording { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── HONEYPOT (hidden from humans) ── */
.frd-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; pointer-events: none; tab-index: -1; }

/* ── HUMAN CHECK ── */
.human-check {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); user-select: none;
}
.human-check:hover { border-color: var(--red); }
.human-check.checked { border-color: var(--red); background: var(--surface-2); }
.human-check-box {
  width: 24px; height: 24px; border: 2px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition); background: var(--surface-2);
}
.human-check.checked .human-check-box { background: var(--red); border-color: var(--red); }
.human-check-box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.human-check.checked .human-check-box svg { opacity: 1; }
.human-check-text { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--white); }
.human-check-text span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 2px; }
.human-check input { position: absolute; opacity: 0; width: 0; height: 0; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.human-check.shake { animation: shake .5s ease; border-color: var(--red); }

/* ── SUBMIT ── */
.submit-area { padding: 28px 0; text-align: center; }
.submit-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 38px; background: var(--red); color: var(--white); border: none; border-radius: 10px; font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; cursor: pointer; transition: all var(--transition); margin-top: 28px; width: 100%; justify-content: center; }
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(204,21,23,.3); }
.submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ═══════════════════════════════════════════
   PRE-SUBMIT REVIEW OVERLAY
   ═══════════════════════════════════════════ */
.review-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  overflow-y: auto; padding: 24px;
}
.review-overlay.visible { display: flex; align-items: flex-start; justify-content: center; }
.review-inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  max-width: 560px; width: 100%; margin: 40px 0; padding: 36px 28px;
}
.review-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; text-align: center; margin-bottom: 6px; }
.review-sub { font-size: 15px; color: var(--muted); font-weight: 400; text-align: center; margin-bottom: 28px; line-height: 1.6; }
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 16px; }
.review-row:last-child { border-bottom: none; }
.review-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); min-width: 120px; flex-shrink: 0; padding-top: 2px; }
.review-value { font-size: 15px; font-weight: 400; text-align: right; word-break: break-word; flex: 1; color: var(--white); }
.review-actions { display: flex; gap: 12px; margin-top: 28px; }
.review-edit-btn {
  flex: 1; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--white); font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.review-edit-btn:hover { border-color: var(--red); }
.review-confirm-btn {
  flex: 2; padding: 13px 18px; border: none; border-radius: 10px;
  background: var(--red); color: var(--white); font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 2px; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.review-confirm-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(204,21,23,.3); }

/* ═══════════════════════════════════════════
   THANK YOU SCREEN
   ═══════════════════════════════════════════ */
.ty-screen { display: none; text-align: center; padding: 60px 24px 40px; max-width: 560px; margin: 0 auto; }
.ty-screen.visible { display: block; }
.ty-skull { width: 48px; height: 48px; margin-bottom: 14px; }
.ty-title { font-family: 'Bebas Neue', sans-serif; font-size: 38px; letter-spacing: 2px; margin-bottom: 8px; color: var(--white); }
.ty-subtitle { color: var(--muted); font-weight: 400; font-size: 16px; line-height: 1.7; margin-bottom: 8px; }
.ty-message { color: var(--muted); font-weight: 400; font-size: 15px; margin-bottom: 20px; }
.ty-timeline { text-align: left; margin: 24px auto; max-width: 360px; }
.timeline-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--muted); font-weight: 400; }
.timeline-number { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--red); min-width: 24px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--red); border-radius: 50%; flex-shrink: 0; }
.ty-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.ty-action-btn { display: inline-block; padding: 14px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--white); font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: all var(--transition); }
.ty-action-btn:hover { border-color: var(--red); background: var(--surface-2); }

/* ═══════════════════════════════════════════
   SHARE BOX (TY page)
   ═══════════════════════════════════════════ */
.share-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; margin-top: 36px; text-align: center;
}
.share-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; margin-bottom: 16px; display: block; color: var(--white); }
.share-quote {
  background: var(--surface-2); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
  padding: 18px 20px; margin-bottom: 20px; text-align: left;
}
.share-quote-text { font-size: 15px; font-weight: 400; font-style: italic; line-height: 1.7; color: var(--cream); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.share-buttons a, .share-buttons button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--white); font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  font-weight: 500; text-transform: uppercase; letter-spacing: .5px; text-decoration: none;
  cursor: pointer; transition: all var(--transition);
}
.share-buttons a:hover, .share-buttons button:hover { border-color: var(--red); background: var(--surface-3); }
.share-wa:hover { border-color: #25D366 !important; }
.share-li:hover { border-color: #0A66C2 !important; }
.share-x:hover { border-color: var(--white) !important; }

/* ═══════════════════════════════════════════
   EDIT / RATIFY BOX (TY page)
   ═══════════════════════════════════════════ */
.edit-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; margin-top: 20px; text-align: center;
}
.edit-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 6px; display: block; color: var(--white); }
.edit-sub { font-size: 15px; color: var(--muted); font-weight: 400; margin-bottom: 16px; display: block; line-height: 1.6; }
.edit-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--white); font-family: 'IBM Plex Mono', monospace; font-size: 13px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  transition: all var(--transition);
}
.edit-btn:hover { border-color: var(--red); }

/* ═══════════════════════════════════════════
   NEWS BOX (TY page)
   ═══════════════════════════════════════════ */
.news-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; margin-top: 20px; text-align: center;
}
.news-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; margin-bottom: 16px; display: block; color: var(--white); }
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--white);
  transition: all var(--transition); text-align: left;
}
.news-card:hover { border-color: var(--red); background: var(--surface-3); }
.news-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.news-headline { font-size: 15px; font-weight: 600; color: var(--white); }
.news-desc { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.5; }

/* ── FOOTER ── */
.form-footer { text-align: center; padding: 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; border-top: 1px solid var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .form-title { font-size: 28px; }
  .section-title { font-size: 28px; }
  .rating-stars .star, .rating-btn { width: 40px; height: 40px; font-size: 14px; }
  .review-inner { padding: 24px 18px; margin: 20px 0; }
  .review-actions { flex-direction: column; }
  .share-buttons { flex-direction: column; }
  .share-buttons a, .share-buttons button { justify-content: center; }
}
