.ms-customer-service-card {
  position: relative;
  display: flex;
  min-height: 265px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(135deg, #101828 0%, #243b64 58%, #395b8f 120%);
  box-shadow: 0 12px 28px rgba(22, 38, 68, .12);
  color: #fff;
}

.ms-customer-service-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -65px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.ms-customer-service-card > * { position: relative; z-index: 1; }
.ms-customer-service-card h2 { margin: 0; color: #fff; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
.ms-customer-service-card small { color: rgba(255, 255, 255, .76); font-weight: 700; }
.ms-customer-service-card p { max-width: 34ch; margin: 0; color: #edf3fb; font-size: 15px; line-height: 1.5; }
.ms-customer-service-badge { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.ms-customer-service-actions { display: grid; width: 100%; gap: 8px; margin-top: auto; }
.ms-customer-service-actions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 850; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.ms-customer-service-actions a:first-child { border-color: #fff; background: #fff; color: #173653; }
.ms-customer-service-actions a:hover { transform: translateX(2px); background: rgba(255, 255, 255, .18); }
.ms-customer-service-actions a:first-child:hover { background: #f3f7ff; }

.math-test-grid > .ms-customer-service-card { min-height: 320px; }

@media (max-width: 600px) {
  .ms-customer-service-card { min-height: 225px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-customer-service-actions a { transition: none; }
}
