@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

body {
  font-family:
    "Inter",
    -apple-system,
    system-ui,
    sans-serif;
  background: #f5f7fa;
  color: #1e2b3a;
  line-height: 1.5;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- HERO (background image + overlay) ----- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("assets/img/marathon-img/DSC_4718.jpg") center/cover no-repeat;
  background-attachment: fixed;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(10, 30, 20, 0.78) 0%,
    rgba(0, 40, 20, 0.65) 100%
  );
  backdrop-filter: brightness(0.85) saturate(1.2);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 1.5rem;
}
.hero-badge {
  display: inline-block;
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.8rem;
  border-radius: 2px;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(255, 132, 48, 0.35);
}
.hero h1 {
  font-size: clamp(2.8rem, 10vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero h1 span {
  color: #ff8430;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0.5rem auto 1.5rem;
  letter-spacing: 0.3px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-top: 1.8rem;
}
.hero-meta i {
  color: #ff8430;
  margin-right: 0.5rem;
  width: 1.4rem;
}
.hero-meta .highlight {
  background: rgba(255, 132, 48, 0.18);
  padding: 0.2rem 1rem;
  border-radius: 30px;
}

/* ----- COUNTDOWN (beautiful) ----- */
.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.2rem 2.5rem;
  flex-wrap: wrap;
  margin: 2.2rem 0 1rem;
}
.countdown-item {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  min-width: 80px;
  border-bottom: 2px solid #ff8430;
}
.countdown-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
}
.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}
.btnn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
  padding: 0.9rem 2.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(255, 132, 48, 0.3);
}
.btnn i {
  font-size: 1.1rem;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff8430;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 132, 48, 0.4);
}

/* ----- SECTION cards (minimal radius) ----- */
.section {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.section:last-of-type {
  border-bottom: none;
}
.card {
  background: #ffffff;
  padding: 2.5rem 2.8rem;
  border-radius: 4px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.03),
    0 1px 4px rgba(0, 0, 0, 0.03);
  transition: 0.2s;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  color: #14261e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-title i {
  color: #ff8430;
  font-size: 1.8rem;
}
.title-line {
  display: inline-block;
  width: 42px;
  height: 3px;
  background: #ff8430;
  margin-left: 0.5rem;
  border-radius: 2px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}
.stat-box {
  background: #f8fafc;
  padding: 1.4rem 1.2rem;
  border-radius: 2px;
  border-left: 3px solid #ff8430;
}
.stat-box .number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #14261e;
}
.stat-box .label {
  color: #4a5f55;
  font-weight: 500;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(135deg, #5ed562 0%, #4ba271 100%);
  color: white;
}

.stats-table th,
.stats-table td {
  padding: 16px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-table th:last-child,
.stats-table td:last-child {
  border-right: none;
}

.stats-table th {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.2);
}

.stats-table td {
  font-size: 18px;
  font-weight: 500;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-unit {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-table {
    font-size: 12px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stats-table th,
  .stats-table td {
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  .stats-table th,
  .stats-table td {
    padding: 6px 3px;
  }

  .stat-value {
    font-size: 12px;
  }

  .stats-table th {
    font-size: 12px;
  }
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 0.8rem;
}
.prize-table th {
  background: #14261e;
  color: #fff;
  font-weight: 600;
  padding: 0.9rem 0.8rem;
  text-align: left;
}
.prize-table td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #eef2f0;
}
.prize-table tr:last-child td {
  border-bottom: none;
}
.prize-table .total-row td {
  font-weight: 700;
  background: #f5f8f6;
  border-top: 2px solid #ff8430;
}

.route-label {
  display: inline-block;
  background: #14261e;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.map-placeholder {
  background: #eef2f0;
  border-radius: 2px;
  padding: 2.8rem 1.5rem;
  text-align: center;
  color: #2e4a3d;
  margin: 1.2rem 0;
  border: 1px dashed #b0cbc0;
}
.map-placeholder i {
  font-size: 2.2rem;
  color: #ff8430;
  margin-bottom: 0.4rem;
}

/* essay & sponsorship tiers (retained from original) */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #14261e;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section-header h2 i {
  color: #ff8430;
  font-size: 2.4rem;
}

.section-header p {
  color: #4a5f55;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0.6rem auto 0;
}

.section-header .title-line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: #ff8430;
  border-radius: 2px;
  margin-top: 0.8rem;
}

/* ----- GRID ----- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

/* ----- TIER CARD ----- */
.tier-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 132, 48, 0.15);
}

.tier-card:hover::before {
  background: #ff8430;
}

/* Featured / premium tiers get extra glow */
.tier-card.featured {
  border-color: rgba(255, 132, 48, 0.25);
  background: #fefcf8;
}

.tier-card.featured::before {
  background: #ff8430;
  height: 5px;
}

.tier-card.featured .tier-badge {
  display: inline-block;
}

.tier-badge {
  display: none;
  background: #ff8430;
  color: #0d1f17;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.tier-card.featured .tier-badge {
  display: inline-block;
}

.tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #14261e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-name i {
  font-size: 1.3rem;
  color: #ff8430;
}

.tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: #14261e;
  margin: 0.4rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.tier-price small {
  font-size: 1rem;
  font-weight: 500;
  color: #6f8a7c;
  letter-spacing: 0;
}

.tier-desc {
  color: #4a5f55;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #eef2f0;
  padding-bottom: 0.8rem;
}

/* Benefit list */
.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  flex: 1;
}

.benefits li {
  padding: 0.45rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: #1e2b3a;
  border-bottom: 1px solid #f5f8f6;
}

.benefits li:last-child {
  border-bottom: none;
}

.benefits li i {
  color: #ff8430;
  width: 1.2rem;
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.benefits li .highlight {
  font-weight: 600;
  color: #14261e;
}

/* CTA button */
.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #f5f8f6;
  color: #14261e;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s;
  width: 100%;
  text-align: center;
}

.tier-cta:hover {
  background: #ff8430;
  color: #0d1f17;
  border-color: #ff8430;
  box-shadow: 0 4px 14px rgba(255, 132, 48, 0.2);
}

.tier-cta i {
  font-size: 0.9rem;
}

/* Special CTA for top tiers */
.tier-card.featured .tier-cta {
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
}

.tier-card.featured .tier-cta:hover {
  background: #e97420;
  box-shadow: 0 6px 20px rgba(255, 132, 48, 0.3);
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    padding: 0 16px;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .sponsor-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .tier-card {
    padding: 1.6rem 1.2rem;
  }
}

/* small note at bottom */
.sponsor-note {
  text-align: center;
  margin-top: 1.8rem;
  padding: 0.8rem;
  border-top: 1px solid #eef2f0;
  color: #4a5f55;
  font-size: 0.95rem;
}

.sponsor-note i {
  color: #ff8430;
  margin: 0 0.3rem;
}

.sponsor-note a {
  color: #ff8430;
  font-weight: 600;
  text-decoration: none;
}

.sponsor-note a:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1rem;
}

.gallery-caption h4 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.gallery-caption p {
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-note {
  background: #0d1f17;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
  border-top: 3px solid #ff8430;
}
.footer-note strong {
  color: #fff;
}
.footer-note i {
  color: #ff8430;
  margin: 0 0.3rem;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  font-size: 1.05rem;
}
.contact-info i {
  color: #ff8430;
  width: 1.8rem;
}

@media (max-width: 700px) {
  .card {
    padding: 1.8rem 1.2rem;
  }
  .countdown-item {
    min-width: 60px;
    padding: 0.4rem 0.8rem;
  }
  .countdown-number {
    font-size: 2rem;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.form-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.8rem;
  transition: 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.form-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #ff8430;
  padding-bottom: 1.2rem;
}

.nice-select {
  line-height: 12px;
}

.form-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #14261e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-header h2 i {
  color: #ff8430;
  font-size: 1.8rem;
}

.form-header p {
  color: #4a5f55;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.6rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #14261e;
  margin-bottom: 0.4rem;
}

.form-group label .required {
  color: #e03a3a;
  margin-left: 2px;
}

.form-group .hint {
  font-size: 0.8rem;
  color: #6f8a7c;
  font-weight: 400;
  margin-left: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 1.5px solid #e2e8e4;
  border-radius: 6px;
  background: #fafcfa;
  transition: 0.2s;
  color: #14261e;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #ff8430;
  box-shadow: 0 0 0 3px rgba(255, 132, 48, 0.15);
  background: #ffffff;
}

.form-control::placeholder {
  color: #a8bdb2;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5f55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.8rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-card {
    padding: 1.8rem 1.2rem;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.checkbox-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: #ff8430;
  flex-shrink: 0;
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.95rem;
  color: #2e4a3d;
  line-height: 1.5;
  margin-bottom: 0;
}

.checkbox-group label a {
  color: #ff8430;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 132, 48, 0.25);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: #e97420;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 132, 48, 0.35);
}

.btn-submit i {
  font-size: 1.2rem;
}

.payment-info {
  background: #f5f8f6;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0 1.2rem;
  border-left: 4px solid #ff8430;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.payment-info .pay-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.payment-info .pay-detail i {
  color: #ff8430;
  width: 1.6rem;
  font-size: 1.2rem;
}

.payment-info .pay-detail strong {
  color: #14261e;
  font-weight: 700;
}

.payment-info .pay-detail .highlight {
  background: #14261e;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #6f8a7c;
  text-align: center;
  margin-top: 1.2rem;
  border-top: 1px solid #eef2f0;
  padding-top: 1.2rem;
}

.disclaimer i {
  color: #ff8430;
  margin-right: 0.3rem;
}

/* ----- card styles (shared) ----- */
.card,
.form-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  padding: 2.2rem 2.5rem;
  transition: 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.form-card {
  padding: 2.5rem 2.8rem;
}
@media (max-width: 640px) {
  .card,
  .form-card {
    padding: 1.8rem 1.2rem;
  }
}

/* ----- registration form (original) ----- */
.form-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #ff8430;
  padding-bottom: 1.2rem;
}
.form-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #14261e;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.form-header h2 i {
  color: #ff8430;
  font-size: 1.8rem;
}
.form-header p {
  color: #4a5f55;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.payment-info {
  background: #f5f8f6;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0 1.2rem;
  border-left: 4px solid #ff8430;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  border-radius: 8px;
}
.payment-info .pay-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.payment-info .pay-detail i {
  color: #ff8430;
  width: 1.6rem;
  font-size: 1.2rem;
}
.payment-info .pay-detail strong {
  color: #14261e;
  font-weight: 700;
}
.payment-info .pay-detail .highlight {
  background: #14261e;
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 1.6rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #14261e;
  margin-bottom: 0.4rem;
}
.form-group label .required {
  color: #e03a3a;
  margin-left: 2px;
}
.form-group .hint {
  font-size: 0.8rem;
  color: #6f8a7c;
  font-weight: 400;
  margin-left: 0.3rem;
}
.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 1.5px solid #e2e8e4;
  border-radius: 12px;
  background: #fafcfa;
  transition: 0.2s;
  color: #14261e;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: #ff8430;
  box-shadow: 0 0 0 4px rgba(255, 132, 48, 0.12);
  background: #ffffff;
}
.form-control::placeholder {
  color: #a8bdb2;
}
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5f55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px;
  cursor: pointer;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.8rem;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0.2rem;
}
.checkbox-group input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: #ff8430;
  flex-shrink: 0;
}
.checkbox-group label {
  font-weight: 400;
  font-size: 0.95rem;
  color: #2e4a3d;
  line-height: 1.5;
  margin-bottom: 0;
}
.checkbox-group label a {
  color: #ff8430;
  text-decoration: none;
  font-weight: 500;
}
.checkbox-group label a:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(255, 132, 48, 0.2);
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background: #e97420;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 132, 48, 0.3);
}
.btn-submit i {
  font-size: 1.2rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: #6f8a7c;
  text-align: center;
  margin-top: 1.2rem;
  border-top: 1px solid #eef2f0;
  padding-top: 1.2rem;
}
.disclaimer i {
  color: #ff8430;
  margin-right: 0.3rem;
}

/* ===== RETRY CARD (inside same container) ===== */
.retry-card {
  display: none; /* hidden by default, shown via JS if token present */
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 132, 48, 0.08);
}
.retry-card .logo-icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #14261e;
  margin-bottom: 0.25rem;
}
.retry-card .logo-icon i {
  color: #ff8430;
}
.retry-card .logo-icon em {
  font-style: italic;
  font-weight: 300;
  color: #4a5f55;
}
.retry-card h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #14261e;
  margin: 0.2rem 0 0.1rem;
}
.retry-card .subtitle {
  color: #4a5f55;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.retry-card .divider {
  height: 2px;
  background: linear-gradient(to right, #ff8430, #f5d4b0);
  margin: 1rem 0 1.5rem;
  border-radius: 10px;
}
.retry-card .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.8rem 0;
  color: #4a5f55;
}
.retry-card-modal .hidden {
  display: none !important;
}

.retry-card .row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0f4f1;
}
.retry-card .row:last-of-type {
  border-bottom: none;
}
.retry-card .label {
  color: #4a5f55;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.retry-card .value {
  font-weight: 600;
  color: #14261e;
}
.retry-card .status-badge {
  background: #e4efe8;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-retry {
  width: 100%;
  padding: 1rem;
  background: #ff8430;
  color: #0d1f17;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
  box-shadow: 0 4px 14px rgba(255, 132, 48, 0.2);
}
.btn-retry:hover {
  background: #e97420;
  transform: translateY(-2px);
}
.btn-retry:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

.message {
  display: none;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 0.8rem;
  align-items: center;
  gap: 0.6rem;
}

.message.success {
  background: #e6f7ed;
  color: #0b5e3a;
  display: flex;
}

.message.error {
  background: #fee8e8;
  color: #a12b2b;
  display: flex;
}

/* utility */
.mt-2 {
  margin-top: 0.8rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
/* ----- Retry card inside modal ----- */
.retry-card-modal .divider {
  border-top: 1px solid #e0e0e0;
  margin: 8px 0;
}
.retry-card-modal .content-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.retry-card-modal .content-row:last-child {
  border-bottom: none;
}
.retry-card-modal .label {
  font-weight: 600;
  color: #495057;
}
.retry-card-modal .value {
  font-weight: 500;
  color: #212529;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fa;
  padding: 4px 12px;
  border-radius: 20px;
}
.status-badge i {
  font-size: 10px;
}
.btn-retry {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-retry:hover:not(:disabled) {
  transform: scale(1.02);
  opacity: 0.9;
}
.btn-retry:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: background 0.2s;
}
.close-btn:hover {
  background: #e0e0e0;
}

/* Divider with OR text */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 20px;
  color: #999;
  font-size: 13px;
  font-weight: 500;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0e0e0;
}

.divider-text span {
  padding: 0 16px;
  background: rgba(244, 247, 244, 0.822);
}

/* Manual Verification Section */
.manual-verification {
  margin-top: 8px;
}

.verification-hint {
  color: #666;
  font-size: 14px;
  text-align: center;
  margin-bottom: 16px;
}

.verification-hint i {
  color: #ff8430;
  margin-right: 6px;
}

.verification-content .form-group {
  margin-bottom: 10px;
}

.verification-content .form-group label {
  display: block;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  margin-bottom: 2px;
}

.form-group label i {
  color: #ff8430;
  margin-right: 6px;
  width: 18px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #ff8430;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.btn-verify {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-verify:hover:not(:disabled) {
  transform: scale(1.02);
  opacity: 0.9;
}

.btn-verify:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-verify i {
  margin-right: 8px;
}

/* Toggle styles */
.verification-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 0;
  color: #10b981;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.2s ease;
  user-select: none;
}

.verification-toggle:hover {
  color: #319941;
}

.verification-toggle i {
  transition: transform 0.3s ease;
}

.verification-toggle.open i {
  transform: rotate(90deg);
}

.verification-content {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

.verification-content {
  overflow: hidden;
  transition: all 0.3s ease;
}

.verification-content.open {
  display: block;
}

/* Hide donation header when verification is open */
.donation-header.hidden-header {
  display: none;
}

/* Button visibility */
.btn-retry.hidden-btn {
  display: none !important;
}

.btn-retry.show-btn {
  display: block !important;
}

/* Progress Indicator */
.polling-progress {
  margin: 16px 0 8px;
  padding: 12px;
  border-radius: 8px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: #ff8430;
  border-radius: 4px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  font-size: 13px;
  color: #495057;
  text-align: center;
}

.progress-text i {
  margin-right: 6px;
  color: #ff8430;
}

.progress-text .fa-check-circle {
  color: #22c55e !important;
}

/* Progress bar animation for indefinite state */
.progress-bar.indefinite {
  width: 100%;
  animation: progressPulse 1.5s ease-in-out infinite;
}

.donation-overlay .sponsor-note {
  text-align: center;
  margin-top: 1.4rem;
  padding: 0.8rem;
  padding-bottom: 0;
  border-top: 1px solid #eef2f0;
  color: #4a5f55;
  font-size: 14px;
}

@keyframes progressPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .retry-card-modal .content-row {
    padding: 6px 0;
  }
  .retry-card #content {
    font-size: 15px;
  }

}
