.ukmc-calculator {
  max-width: 760px;
  padding: 28px;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  font-family: inherit;
}

.ukmc-calculator * {
  box-sizing: border-box;
}

.ukmc-calculator h2,
.ukmc-calculator h3,
.ukmc-calculator p {
  margin-top: 0;
}

.ukmc-intro,
.ukmc-note {
  color: #555;
  line-height: 1.5;
}

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

.ukmc-form label span:first-child {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.ukmc-form input,
.ukmc-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.ukmc-input-prefix,
.ukmc-input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ukmc-input-prefix span,
.ukmc-input-suffix span {
  padding: 0 12px;
  color: #555;
  white-space: nowrap;
}

.ukmc-input-prefix input,
.ukmc-input-suffix input {
  border: 0;
  border-radius: 0;
}

.ukmc-button,
.ukmc-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #5000a6;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ukmc-results {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.ukmc-result-main {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 16px;
  background: #f7f3ff;
}

.ukmc-result-main strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1;
}

.ukmc-label,
.ukmc-result-grid span {
  color: #555;
}

.ukmc-result-grid div {
  padding: 16px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
}

.ukmc-result-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.ukmc-error {
  margin-top: 16px;
  color: #b00020;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ukmc-calculator {
    padding: 20px;
  }

  .ukmc-grid,
  .ukmc-result-grid {
    grid-template-columns: 1fr;
  }
}

.ukmc-locked-intro {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #eadcff;
  border-radius: 16px;
  background: #fbf8ff;
}

.ukmc-locked-intro p {
  margin-bottom: 12px;
  font-weight: 700;
}

.ukmc-details {
  position: relative;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.ukmc-details-locked {
  max-height: 190px;
  overflow: hidden;
  filter: blur(4px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.ukmc-details-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95));
}

.ukmc-modal[hidden] {
  display: none;
}

.ukmc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ukmc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.ukmc-modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.ukmc-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ukmc-cf7-wrap input,
.ukmc-cf7-wrap textarea,
.ukmc-cf7-wrap select {
  max-width: 100%;
}

body.ukmc-modal-open {
  overflow: hidden;
}
