/* ============================================================
   Reseller application form.

   Layered on top of panel.css rather than edited into it, following the
   convention already used by the shop, support and temp-mail redesigns. Only
   .ra-* classes are introduced, so nothing else in the panel can be affected.
   ============================================================ */

.ra-wrap {
  display: grid;
  gap: 16px;
  max-width: 880px;
}

/* ── Hero ── */
.ra-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.ra-hero-main {
  flex: 1 1 320px;
  min-width: 0;
}

.ra-hero h3 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -.5px;
  line-height: 1.15;
}

.ra-hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--td);
  font-size: 12.5px;
  line-height: 1.65;
}

/* The discount is the reason to apply, so it gets the strongest emphasis. */
.ra-hero-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 118px;
  padding: 16px 18px;
  border: 1px solid rgba(240, 56, 75, .32);
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(240, 56, 75, .22), transparent 70%),
    rgba(240, 56, 75, .06);
}

.ra-hero-badge strong {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.ra-hero-badge span {
  color: #ff96a0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  text-align: center;
}

/* ── Benefits ── */
/* Sits between the hero and the form, so it carries slightly tighter padding
   than a standalone .gc card would. */
.ra-benefits {
  padding-bottom: 18px;
}

.ra-benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ra-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}

.ra-benefit-list i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #ff8c97;
  background: rgba(240, 56, 75, .1);
  font-size: 12px;
}

.ra-benefit-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ra-benefit-list strong {
  color: var(--tm);
  font-size: 12.5px;
  font-weight: 700;
}

.ra-benefit-list span {
  color: var(--td);
  font-size: 11px;
  line-height: 1.5;
}

/* ── Form ── */
.ra-form-head {
  margin-bottom: 20px;
}

.ra-form-head h3 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: 16px;
}

.ra-form-sub {
  margin: 0;
  color: var(--td);
  font-size: 12px;
  line-height: 1.6;
}

.ra-field {
  margin-bottom: 18px;
}

.ra-field > label {
  display: block;
  margin-bottom: 7px;
  color: var(--tm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2px;
}

.ra-req {
  color: #f66b79;
  margin-left: 2px;
}

/* Hints sit under the field so the placeholder does not have to carry
   instructions the user loses as soon as they start typing. */
.ra-hint {
  margin: 6px 0 0;
  color: var(--td);
  font-size: 10.5px;
  line-height: 1.55;
  opacity: .85;
}

/* ── Investment field ── */
/* The commercial commitment. Separated from the free-text answers above so it
   reads as a decision rather than one more box to fill. */
.ra-field-invest {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.ra-money {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s ease, background .18s ease;
}

.ra-money:focus-within {
  border-color: rgba(240, 56, 75, .5);
  background: rgba(240, 56, 75, .05);
}

.ra-money-sign {
  display: grid;
  place-items: center;
  width: 42px;
  align-self: stretch;
  border-right: 1px solid rgba(255, 255, 255, .07);
  color: #ff8c97;
  font-size: 15px;
  font-weight: 700;
}

.ra-money input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}

.ra-money input::placeholder {
  color: rgba(210, 170, 180, .45);
  font-weight: 500;
}

/* Spinners fight with the currency framing, so they are removed. */
.ra-money input::-webkit-outer-spin-button,
.ra-money input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ra-money input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.ra-money-min {
  flex: 0 0 auto;
  margin-right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--td);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* ── Feedback and actions ── */
.ra-msg:empty {
  display: none;
}

.ra-msg {
  margin: 0 0 16px;
  font-size: 11.5px;
}

.ra-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.ra-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 12.5px;
  font-weight: 700;
}

.ra-actions-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--td);
  font-size: 10.5px;
  line-height: 1.5;
  opacity: .8;
}

.ra-actions-note i {
  color: #ff8c97;
  font-size: 10px;
}

/* ── Narrow screens ── */
@media (max-width: 720px) {
  .ra-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ra-hero-badge {
    flex-direction: row;
    gap: 9px;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    justify-content: flex-start;
  }

  .ra-hero-badge strong {
    font-size: 1.35rem;
  }

  .ra-hero-badge span {
    text-align: left;
  }

  .ra-benefit-list {
    grid-template-columns: 1fr;
  }

  .ra-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ra-submit {
    justify-content: center;
    width: 100%;
  }
}

/* Respect a reduced-motion preference: the transitions above are decorative. */
@media (prefers-reduced-motion: reduce) {
  .ra-money {
    transition: none;
  }
}
