/* RC Search — mobile-first product UX */
.rc-page {
  --rc-red: #c92127;
  --rc-red-dark: #9e181d;
  --rc-ink: #0f1c2a;
  --rc-muted: #5b6775;
  --rc-border: #e4e8ee;
  --rc-bg: #f3f5f8;
  --rc-surface: #fff;
  --rc-plate: #f4f6f4;
  --rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rc-font: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(201, 33, 39, 0.08), transparent 60%),
    var(--rc-bg);
  color: var(--rc-ink);
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  font-family: Roboto, "Segoe UI", sans-serif;
}

.rc-page h1,
.rc-page h2,
.rc-page h3,
.rc-page .rc-hero__brand,
.rc-page .rc-cta,
.rc-page .rc-pay-btn,
.rc-page .rc-sticky__btn,
.rc-page .rc-plate__input {
  font-family: var(--rc-font);
}

/* Breadcrumb — desktop only */
.rc-breadcrumb {
  background: transparent;
  border: 0;
}

.rc-page .breadcrumb {
  margin: 0;
  padding: 10px 0 0;
  background: transparent;
  font-size: 12px;
}

@media (max-width: 767px) {
  .rc-breadcrumb { display: none; }
}

/* Hero */
.rc-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 32px;
  color: #fff;
  background:
    linear-gradient(165deg, #101c2b 0%, #172636 42%, #1a2433 100%);
}

.rc-hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(201, 33, 39, 0.45), transparent 70%),
    radial-gradient(closest-side at 80% 20%, rgba(255, 255, 255, 0.08), transparent 65%);
  pointer-events: none;
  animation: rcGlow 7s var(--rc-ease) infinite alternate;
}

@keyframes rcGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  to { transform: translate3d(4%, 3%, 0) scale(1.06); opacity: 1; }
}

.rc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.rc-hero__brand {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  animation: rcRise 0.55s var(--rc-ease) both;
}

.rc-hero__brand span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--rc-red);
  color: #fff;
  letter-spacing: 0.08em;
}

.rc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 6.4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  animation: rcRise 0.6s var(--rc-ease) 0.05s both;
}

.rc-hero__sub {
  margin: 0 0 22px;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  animation: rcRise 0.65s var(--rc-ease) 0.1s both;
}

@keyframes rcRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Search panel */
.rc-search {
  display: grid;
  gap: 14px;
  animation: rcRise 0.7s var(--rc-ease) 0.14s both;
}

/* Indian plate — dominant visual */
.rc-plate {
  display: flex;
  align-items: stretch;
  min-height: 72px;
  border-radius: 14px;
  border: 3px solid #111;
  background:
    linear-gradient(180deg, #fbfcfb 0%, var(--rc-plate) 100%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.25s var(--rc-ease), box-shadow 0.25s var(--rc-ease);
}

.rc-plate.is-focused {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 22px 46px rgba(201, 33, 39, 0.28),
    0 0 0 3px rgba(201, 33, 39, 0.35);
}

.rc-plate__india {
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #163a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rc-plate__ashoka {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #f5c518;
  box-shadow: inset 0 0 0 2px rgba(245, 197, 24, 0.35);
  background:
    radial-gradient(circle at 50% 50%, #f5c518 0 2px, transparent 3px),
    #163a8a;
}

.rc-plate__field {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rc-plate__field label {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.rc-plate__input,
.rc-plate__field input {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 34px;
  font-size: clamp(1.25rem, 5.5vw, 1.7rem) !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111 !important;
  line-height: 1.2;
}

.rc-plate__input::placeholder,
.rc-plate__field input::placeholder {
  color: #9aa3af;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.rc-search__details-label {
  margin: 2px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rc-search__grid {
  display: grid;
  gap: 10px;
}

.rc-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.rc-field input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--rc-ink);
  background: rgba(255, 255, 255, 0.96);
  box-sizing: border-box;
}

.rc-field input:focus {
  outline: 0;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(201, 33, 39, 0.35);
}

.rc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #e02a31 0%, var(--rc-red) 55%, var(--rc-red-dark) 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(201, 33, 39, 0.4);
  transition: transform 0.2s var(--rc-ease), filter 0.2s ease;
}

.rc-cta:hover { filter: brightness(1.04); }
.rc-cta:active { transform: scale(0.985); }
.rc-cta:disabled { opacity: 0.65; cursor: wait; }

.rc-search__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.rc-hero__trust {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  animation: rcRise 0.75s var(--rc-ease) 0.2s both;
}

.rc-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 235, 235, 0.95);
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-red);
  text-align: center;
}

/* Sticky mobile CTA */
.rc-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(15, 28, 42, 0) 0%, rgba(15, 28, 42, 0.72) 28%, rgba(15, 28, 42, 0.94) 100%);
  pointer-events: none;
}

.rc-sticky[hidden] { display: none !important; }

.rc-sticky__btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e02a31 0%, var(--rc-red) 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(201, 33, 39, 0.45);
  animation: rcStickyIn 0.35s var(--rc-ease);
}

@keyframes rcStickyIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .rc-sticky { display: none !important; }
  .rc-page { padding-bottom: 48px; }
}

/* Preview */
.rc-preview {
  padding: 20px 0 4px;
  scroll-margin-top: 16px;
}

.rc-preview__shell {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 38, 58, 0.1);
  overflow: hidden;
  animation: rcRise 0.45s var(--rc-ease) both;
}

.rc-preview__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  background:
    radial-gradient(500px 120px at 0% 0%, rgba(201, 33, 39, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid var(--rc-border);
}

.rc-preview__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16a34a;
}

.rc-preview__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rc-preview__hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--rc-muted);
}

.rc-preview__plate {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 3px solid #111;
  background: linear-gradient(180deg, #fff 0%, #f3f5f3 100%);
  font-family: var(--rc-font);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.rc-preview__ind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border-radius: 5px;
  background: #163a8a;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.rc-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.rc-preview__item {
  padding: 12px;
  border-radius: 12px;
  background: #f7f9fb;
  border: 1px solid #eef2f7;
}

.rc-preview__item span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--rc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.rc-preview__item strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-ink);
  filter: blur(4px);
  user-select: none;
}

.rc-preview__cta {
  display: grid;
  gap: 12px;
  padding: 14px 16px 18px;
  background: #0f1c2a;
  color: #fff;
}

.rc-preview__cta-copy h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.rc-preview__cta-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.rc-pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.35);
}

.rc-pay-btn:active { transform: scale(0.985); }

/* Sections */
.rc-section {
  padding: 34px 0 4px;
}

.rc-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 4.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.rc-section__lead {
  margin: 0 0 18px;
  max-width: 40rem;
  color: var(--rc-muted);
  font-size: 15px;
  line-height: 1.55;
}

.rc-steps {
  counter-reset: rcstep;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-steps li {
  position: relative;
  padding: 14px 14px 14px 52px;
  border-radius: 14px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
}

.rc-steps li::before {
  counter-increment: rcstep;
  content: counter(rcstep);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff1f1;
  color: var(--rc-red);
  font-family: var(--rc-font);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-steps strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 800;
}

.rc-steps span {
  font-size: 13px;
  color: var(--rc-muted);
  line-height: 1.45;
}

.rc-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 16px;
  overflow: hidden;
}

.rc-points li {
  padding: 16px 18px;
  border-top: 1px solid var(--rc-border);
}

.rc-points li:first-child { border-top: 0; }

.rc-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rc-points span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rc-muted);
}

.rc-faq details {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.rc-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.rc-faq summary::-webkit-details-marker { display: none; }

.rc-faq details[open] summary {
  margin-bottom: 8px;
  color: var(--rc-red);
}

.rc-faq p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--rc-muted);
}

#payment_form { display: none !important; }

/* Desktop refinements */
@media (min-width: 768px) {
  .rc-hero {
    padding: 48px 0 56px;
    background:
      radial-gradient(900px 420px at 12% -10%, rgba(201, 33, 39, 0.35), transparent 55%),
      radial-gradient(700px 360px at 90% 10%, rgba(255, 255, 255, 0.08), transparent 50%),
      linear-gradient(165deg, #0f1c2a 0%, #172636 50%, #1a2433 100%);
  }

  .rc-hero h1 { font-size: 2.4rem; }
  .rc-hero__sub { font-size: 16px; margin-bottom: 26px; }

  .rc-search {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
  }

  .rc-search__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .rc-plate { min-height: 84px; }

  .rc-preview__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rc-preview__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; }

  .rc-preview__cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
  }

  .rc-pay-btn { width: auto; min-width: 260px; }

  .rc-steps { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  .rc-points {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rc-border);
  }

  .rc-points li {
    border: 0;
    background: var(--rc-surface);
  }

  .rc-hero__trust { text-align: left; }
  .rc-search__note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rc-hero__glow,
  .rc-hero__brand,
  .rc-hero h1,
  .rc-hero__sub,
  .rc-search,
  .rc-hero__trust,
  .rc-preview__shell,
  .rc-sticky__btn {
    animation: none !important;
  }
}
