/* ===== SHARED STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #00a651;
  --green-dark: #007a3d;
  --green-light: #e8f7ef;
  --gray: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #ddd;
  --white: #fff;
  --red: #e53935;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f0f4f8;
  color: var(--text);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--green);
}

.header-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-trust svg {
  width: 16px;
  height: 16px;
  fill: var(--green);
  flex-shrink: 0;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #00a651 0%, #007a3d 100%);
  color: #fff;
  text-align: center;
  padding: 18px 20px 14px;
}

.hero-banner h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.hero-banner p {
  font-size: 0.95rem;
  opacity: 0.92;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: #fff3cd;
  border-top: 1px solid #f0c040;
  border-bottom: 1px solid #f0c040;
  padding: 9px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #856404;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== MAIN CARD ===== */
.main-card {
  max-width: 560px;
  margin: 32px auto 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  background: var(--green);
  color: #fff;
  padding: 20px 28px 16px;
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header p {
  font-size: 0.88rem;
  opacity: 0.9;
}

.card-body {
  padding: 28px 28px 24px;
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label span {
  color: var(--red);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,166,81,0.13);
}

.form-control.error {
  border-color: var(--red);
}

.field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

/* ===== AMOUNT SELECTOR ===== */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amount-btn {
  padding: 11px 6px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.amount-btn:hover, .amount-btn.selected {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #00c060 0%, #00a651 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.01em;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,166,81,0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,166,81,0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-arrow {
  margin-left: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* ===== BELOW FORM TRUST ===== */
.form-footer {
  margin-top: 14px;
  text-align: center;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.secure-badge svg {
  width: 13px;
  height: 13px;
  fill: var(--green);
}

/* ===== SIDE TRUST PANEL ===== */
.trust-panel {
  max-width: 560px;
  margin: 0 auto 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-item {
  flex: 1;
  min-width: 140px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trust-item-icon {
  width: 34px;
  height: 34px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--green-dark);
}

.trust-item-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.trust-item-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 0.72rem;
  color: #999;
  line-height: 1.6;
  text-align: center;
  padding: 0 10px;
}

.disclaimer a {
  color: #999;
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 8px;
}

.site-footer a:hover {
  color: var(--green);
}

.footer-links {
  margin-bottom: 10px;
}

/* ===== LOADING PAGE ===== */
.loading-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0fff6 0%, #e8f4fd 100%);
  padding: 30px 20px;
  text-align: center;
}

.loading-logo {
  margin-bottom: 32px;
}

.loading-logo .logo-text {
  font-size: 1.5rem;
}

.spinner-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
}

.spinner-ring {
  width: 90px;
  height: 90px;
  border: 6px solid #e0f5eb;
  border-top-color: var(--green);
  border-right-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--green);
}

.loading-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.loading-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 360px;
}

.progress-bar-wrap {
  width: 320px;
  max-width: 90vw;
  background: #e0f5eb;
  border-radius: 99px;
  height: 12px;
  overflow: hidden;
  margin: 0 auto 14px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00c060, #00a651);
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.88rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color 0.3s;
}

.check-list li.done {
  color: var(--green-dark);
  font-weight: 600;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.check-list li.done .check-icon {
  background: var(--green);
  border-color: var(--green);
}

.check-icon svg {
  width: 12px;
  height: 12px;
  fill: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.check-list li.done .check-icon svg {
  opacity: 1;
}

.loading-note {
  font-size: 0.78rem;
  color: #bbb;
  max-width: 340px;
}

/* ===== RESULT PAGE ===== */
.result-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #f0fff6 0%, #e8f4fd 100%);
  padding: 30px 20px;
  text-align: center;
}

.result-badge {
  width: 80px;
  height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-badge svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.result-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.result-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 380px;
}

.result-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
  max-width: 420px;
  width: 100%;
  margin: 0 auto 26px;
  border-left: 5px solid var(--green);
}

.result-card-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-card-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.result-features {
  list-style: none;
  text-align: left;
}

.result-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.result-features li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-claim {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 18px;
  background: linear-gradient(135deg, #00c060 0%, #00a651 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(0,166,81,0.40);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,166,81,0.40); }
  50% { box-shadow: 0 8px 28px rgba(0,166,81,0.65); }
}

.btn-claim:hover {
  transform: translateY(-2px);
}

.result-timer {
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
}

.result-disclaimer {
  font-size: 0.72rem;
  color: #bbb;
  max-width: 400px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .main-card {
    margin: 16px 12px;
    border-radius: 12px;
  }

  .card-body {
    padding: 20px 18px 18px;
  }

  .trust-panel {
    padding: 0 12px;
  }

  .hero-banner h1 {
    font-size: 1.2rem;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loading-title, .result-title {
    font-size: 1.35rem;
  }

  .result-card {
    margin: 0 4px 24px;
  }
}
