/* ===========================================================================
   Befit Feedback Page — paleta e fontes seguem o appbefit.com
   =========================================================================== */

:root {
  --bg-base: #001317;
  --bg-section-1: #011418;
  --bg-section-2: #00242d;
  --bg-card: #001c22;
  --bg-card-soft: #00252e;
  --accent: #2eff00;
  --accent-hover: #40ff1a;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --error: #ff5c5c;
  --placeholder: #cacaca;
  --radius-pill: 200px;
  --radius-card: 12px;
  --radius-sm: 8px;
  --container-max: 880px;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  font-weight: 300;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(180deg, #011418 0%, #00242d 100%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 22px 24px;
}

.logo {
  height: 32px;
  width: auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #011418 0%, #00242d 100%);
  padding: 64px 0 48px;
  text-align: center;
}

.hero-title {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  text-transform: none;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-lead strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Form ---------- */
.form-section {
  padding: 48px 0 80px;
}

.feedback-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .feedback-form {
    padding: 22px;
  }
}

label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.required {
  color: var(--accent);
}

.field-help {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--text-dim);
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
  opacity: 0.55;
}

input:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(46, 255, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(46, 255, 0, 0.12);
}

input.invalid,
textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.12);
}

/* ---------- Instagram prefix ---------- */
.input-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix .prefix {
  position: absolute;
  left: 16px;
  color: var(--text-dim);
  font-size: 15px;
  pointer-events: none;
}

.input-prefix input {
  padding-left: 32px;
}

/* ---------- File input ---------- */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  margin-bottom: 0;
}

.file-input-label:hover,
.file-input-wrapper input[type='file']:focus-visible + .file-input-label {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(46, 255, 0, 0.05);
}

.file-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 255, 0, 0.18);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.file-list .file-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list .file-size {
  color: var(--text-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.file-list .file-remove {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
}

.file-list .file-remove:hover {
  color: var(--error);
  background: rgba(255, 92, 92, 0.1);
}

/* ---------- Authorization checkbox ---------- */
.auth-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
  position: relative;
  margin-top: 1px;
}

.checkbox input[type='checkbox']:checked + .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox input[type='checkbox']:checked + .checkbox-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.checkbox input[type='checkbox']:focus-visible + .checkbox-mark {
  box-shadow: 0 0 0 3px rgba(46, 255, 0, 0.25);
}

.checkbox-text {
  flex: 1;
}

/* ---------- Submit button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  align-self: stretch;
  position: relative;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary.loading .btn-spinner {
  display: inline-block;
}

.btn-primary.loading .btn-text {
  opacity: 0.7;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Form status ---------- */
.form-status {
  margin: 0;
  font-size: 14px;
  min-height: 1px;
}

.form-status.error {
  color: var(--error);
  background: rgba(255, 92, 92, 0.08);
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.form-status.success {
  color: var(--accent);
}

/* ---------- Footer (matches appbefit.com layout) ---------- */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: auto;
  color: var(--text);
}

.site-footer .container {
  max-width: 1180px;
}

.fo-first {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .fo-first {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.fo-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.fo-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.fo-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fo-social a:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-2px);
}

.fo-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 900px) {
  .fo-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 480px) {
  .fo-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.fo-nav > div > span {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text);
  margin-bottom: 12px;
}

.fo-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fo-nav a {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.fo-nav a:hover {
  color: var(--accent);
}

.fo-second {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  flex-wrap: wrap;
}

.fo-copy {
  flex: 1;
  min-width: 280px;
}

.fo-copy p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.fo-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.fo-app-download {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
  min-width: 150px;
}

.store-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.store-button svg {
  flex-shrink: 0;
}

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-button small {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.store-button b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 600px) {
  .fo-app-download {
    width: 100%;
  }
  .store-button {
    flex: 1;
    justify-content: center;
  }
}

/* ---------- Thank you page ---------- */
.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background: linear-gradient(180deg, #011418 0%, #00242d 100%);
  min-height: 60vh;
}

.thanks-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .thanks-card {
    padding: 40px 24px;
  }
  .thanks-main {
    padding: 40px 0;
  }
}

.thanks-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 8px rgba(46, 255, 0, 0.18);
}

.thanks-card h1 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 12px;
  line-height: 1.1;
}

.thanks-lead {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.thanks-lead strong {
  color: var(--accent);
}

.coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(46, 255, 0, 0.08);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  max-width: 460px;
  margin: 0 auto 20px;
}

.coupon-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.coupon-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  flex: 1;
  text-align: center;
}

.coupon-copy {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.coupon-copy:hover {
  background: var(--accent-hover);
}

.coupon-copy.copied {
  background: #fff;
}

.thanks-instructions {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 32px;
}

.thanks-cta {
  margin: 0 auto;
  align-self: center;
  display: inline-flex;
}
