* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: #f3f5f9;
  color: #0a2342;
  min-height: 100vh;
}
.cc-header {
  background: linear-gradient(135deg, #021633, #0a2342);
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.hc {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}
.back-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.85;
}
.cc-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}
.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}
.page-body {
  padding: 36px 0 80px;
}
.section-label {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid #c9a227;
}
.score-hero {
  background: linear-gradient(135deg, #021633, #0a3060);
  color: white;
  border-radius: 22px;
  padding: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.score-left h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.65;
  margin-bottom: 6px;
}
.score-left .big-score {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}
.score-left .score-lbl {
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0.75;
}
.score-gauge {
  position: relative;
  width: 160px;
  height: 90px;
}
.gauge-bg {
  width: 160px;
  height: 80px;
  border-radius: 80px 80px 0 0;
  background: conic-gradient(
    from 180deg at 50% 100%,
    #e53935 0deg,
    #fb8c00 54deg,
    #fdd835 90deg,
    #43a047 126deg,
    #1565c0 180deg
  );
  overflow: hidden;
  position: relative;
}
.gauge-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 50px;
  background: linear-gradient(135deg, #021633, #0a3060);
  border-radius: 50px 50px 0 0;
}
.gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 72px;
  background: white;
  transform-origin: bottom center;
  border-radius: 3px 3px 0 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.score-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  opacity: 0.55;
  margin-top: 4px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.card-offer {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}
.card-offer:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  border-color: #c9a227;
}
.card-offer img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.card-offer-body {
  padding: 18px;
}
.card-offer-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-offer-body p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.45;
}
.card-offer-body .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 10px;
  background: #fff8e1;
  color: #b8860b;
}
.apply-btn-sm {
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #021633, #0a3060);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  margin-top: 10px;
  transition: 0.2s;
}
.apply-btn-sm:hover {
  opacity: 0.85;
}
.apply-form-section {
  display: none;
}
.apply-form-section.open {
  display: block;
}
.form-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
}
.form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-card .form-sub {
  font-size: 0.83rem;
  color: #888;
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full {
  grid-column: span 2;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 7px;
}
.form-group input,
.form-group select {
  padding: 13px 15px;
  border: 1.5px solid #e0e4ee;
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  background: #fafafa;
  transition: 0.2s;
  color: #0a2342;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0a2342;
  background: white;
  box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.08);
}
.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 24px 0 14px;
  grid-column: span 2;
}
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: span 2;
  padding: 16px;
  background: #f7f8fc;
  border-radius: 12px;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}
.terms-row input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #021633, #0a3060);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Inter", sans-serif;
  margin-top: 6px;
  grid-column: span 2;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 22, 51, 0.4);
}
.success-card {
  display: none;
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  text-align: center;
  margin-bottom: 24px;
}
.success-card .ok-icon {
  width: 72px;
  height: 72px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.success-card .ok-icon .material-icons-outlined {
  font-size: 2rem;
  color: #2e7d32;
}
.success-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.success-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.success-card .done-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 36px;
  background: linear-gradient(135deg, #021633, #0a3060);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}
.dark-mode {
  background: #121212;
  color: #e0e0e0;
}
.dark-mode .form-card,
.dark-mode .card-offer,
.dark-mode .success-card {
  background: #1c1f35;
  color: #e0e0e0;
}
.dark-mode .form-group input,
.dark-mode .form-group select {
  background: #13162a;
  border-color: #2e3250;
  color: #e0e0e0;
}
.dark-mode .card-offer-body p {
  color: #aaa;
}
.dark-mode .terms-row {
  background: #13162a;
  color: #aaa;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full,
  .form-section-title,
  .terms-row,
  .submit-btn {
    grid-column: auto;
  }
  .score-hero {
    text-align: center;
    justify-content: center;
  }
}
