.mrd-wrap {
  max-width: 980px;
  margin: 0 auto;
  font-family: inherit;
  color: #15213b;
}

.mrd-form {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e3eaf5;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(21, 33, 59, 0.08);
}

.mrd-header {
  text-align: center;
  margin-bottom: 22px;
}

.mrd-header h2 {
  margin: 0;
  color: var(--mrd-accent, #0b65d8);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.mrd-header p {
  margin: 8px 0 0;
  font-size: 18px;
  color: #4c5870;
}

.mrd-section {
  background: #ffffff;
  border: 1px solid #dbe6f6;
  border-radius: 18px;
  padding: 20px;
  margin: 18px 0;
}

.mrd-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.mrd-step-no {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mrd-accent, #0b65d8);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(11, 101, 216, 0.25);
}

.mrd-step-no.mrd-green { background: var(--mrd-secondary, #0b7a32); box-shadow: 0 8px 18px rgba(11, 122, 50, 0.22); }
.mrd-step-no.mrd-purple { background: #5a179d; box-shadow: 0 8px 18px rgba(90, 23, 157, 0.22); }
.mrd-step-no.mrd-orange { background: #f06418; box-shadow: 0 8px 18px rgba(240, 100, 24, 0.22); }
.mrd-step-no.mrd-blue { background: #095ec2; box-shadow: 0 8px 18px rgba(9, 94, 194, 0.22); }

.mrd-step-body h3,
.mrd-step-body h4 {
  margin: 0 0 14px;
  color: #0e2d68;
  font-weight: 800;
}

.mrd-step-body h3 {
  font-size: 21px;
}

.mrd-step-body h4 {
  font-size: 17px;
}

.mrd-subsection {
  margin-top: 18px;
}

.mrd-subsection:first-child {
  margin-top: 0;
}

.mrd-card-grid {
  display: grid;
  gap: 12px;
}

.mrd-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mrd-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrd-programmes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mrd-amount-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mrd-choice-card,
.mrd-programme-card,
.mrd-type-card,
.mrd-amount-card,
.mrd-80g-card,
.mrd-method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 92px;
  padding: 16px;
  border: 1.5px solid #d9e4f4;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.mrd-choice-card:hover,
.mrd-programme-card:hover,
.mrd-type-card:hover,
.mrd-amount-card:hover,
.mrd-80g-card:hover,
.mrd-method-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 33, 59, 0.08);
}

.mrd-choice-card.is-selected,
.mrd-programme-card.is-selected,
.mrd-type-card.is-selected,
.mrd-amount-card.is-selected,
.mrd-80g-card.is-selected,
.mrd-method-card.is-selected {
  border-color: var(--mrd-accent, #0b65d8);
  background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(11, 101, 216, 0.12);
}

.mrd-choice-card input,
.mrd-programme-card input,
.mrd-type-card input,
.mrd-amount-card input,
.mrd-80g-card input,
.mrd-method-card input {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
}

.mrd-choice-icon,
.mrd-programme-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef7ff;
  font-size: 29px;
  margin-bottom: 4px;
}

.mrd-programme-icon {
  background: #f2fff6;
}

.mrd-choice-card strong,
.mrd-programme-card strong,
.mrd-type-card strong,
.mrd-amount-card strong,
.mrd-80g-card strong,
.mrd-method-card strong {
  color: #14233f;
  font-size: 16px;
  line-height: 1.25;
}

.mrd-choice-card small,
.mrd-programme-card small,
.mrd-type-card small,
.mrd-80g-card small,
.mrd-method-card small,
.mrd-custom-amount small,
.mrd-helper,
.mrd-note {
  color: #58647a;
  font-size: 13px;
  line-height: 1.45;
}

.mrd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mrd-grid label,
.mrd-custom-amount label,
.mrd-pan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: #202d45;
}

.mrd-grid input,
.mrd-grid textarea,
.mrd-custom-amount input,
.mrd-pan-field input {
  width: 100%;
  border: 1px solid #cfd8e8;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 15px;
  background: #fff;
  color: #15213b;
  box-sizing: border-box;
}

.mrd-grid input:focus,
.mrd-grid textarea:focus,
.mrd-custom-amount input:focus,
.mrd-pan-field input:focus {
  outline: none;
  border-color: var(--mrd-accent, #0b65d8);
  box-shadow: 0 0 0 3px rgba(11, 101, 216, 0.12);
}

.mrd-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.mrd-grid label:nth-child(4) {
  grid-row: span 3;
}

.mrd-grid span,
.mrd-custom-amount span,
.mrd-check span,
.mrd-pan-required {
  color: #d92323;
}

.mrd-custom-amount {
  margin-top: 12px;
  max-width: 360px;
}

.mrd-80g-wrap {
  background: #fffaf6;
  border: 1px solid #ffddc6;
  border-radius: 16px;
  padding: 16px;
}

.mrd-pan-field {
  margin-top: 12px;
  max-width: 380px;
}

.mrd-pan-field small {
  color: #d92323;
  font-weight: 600;
}

.mrd-pan-field:not(.is-required) .mrd-pan-required,
.mrd-pan-field:not(.is-required) small {
  display: none;
}

.mrd-method-card {
  min-height: 78px;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.mrd-helper {
  margin: 10px 0 0;
}

.mrd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.45;
  color: #202d45;
}

.mrd-check input {
  margin-top: 3px;
}

.mrd-submit {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--mrd-secondary, #0b7a32), #079443);
  color: #ffffff;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 10px 22px rgba(11, 122, 50, 0.18);
}

.mrd-submit:hover {
  filter: brightness(1.03);
}

.mrd-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.mrd-message {
  margin-top: 14px;
  border-radius: 12px;
  font-weight: 700;
}

.mrd-message:not(:empty) {
  padding: 12px 14px;
}

.mrd-message.mrd-info {
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  color: #0e4f94;
}

.mrd-message.mrd-error {
  background: #fff2f2;
  border: 1px solid #ffc7c7;
  color: #9f1515;
}

.mrd-message.mrd-success {
  background: #f1fff5;
  border: 1px solid #bcf0cd;
  color: #075f2e;
}

.mrd-thank-you {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mrd-thank-you p {
  margin: 3px 0;
}

.mrd-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mrd-secondary, #0b7a32);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex: 0 0 auto;
}

.mrd-note {
  margin: 12px 0 0;
  text-align: center;
}

.mrd-completed .mrd-submit {
  display: none;
}

@media (max-width: 820px) {
  .mrd-form { padding: 18px; border-radius: 18px; }
  .mrd-step { grid-template-columns: 1fr; }
  .mrd-step-no { width: 38px; height: 38px; font-size: 18px; }
  .mrd-two,
  .mrd-three,
  .mrd-programmes,
  .mrd-amount-grid,
  .mrd-grid {
    grid-template-columns: 1fr;
  }
  .mrd-grid label:nth-child(4) { grid-row: auto; }
}
