


#moreco-calculator {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.moreco-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(60deg, rgba(93,34,124,1) 0%, rgba(129, 48, 173,1) 100%);
  border-radius: 16px;
  border: 1px solid #a9a9a9;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  position: relative;
}

.moreco-header {
  margin-bottom: 24px;
  text-align: center;
}

.moreco-title {
  font-size: clamp(26px, 3.2vw, 28px);
  font-weight: 700;
  margin: 0 0 4px;
  color: #ffffff;
}

.moreco-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  visibility: hidden;
  height: 0;
}

.moreco-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;
  margin-bottom: 20px;
  margin-top: 16px;
}


.moreco-subcard {
  position: relative;
  border-radius: 16px;
  padding: 18px 18px;
  border: 1px solid white;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.06) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.12) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.12);
}


.moreco-subcard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0) 60%);
  mix-blend-mode: screen;
}


.moreco-subcard .moreco-label-main { color: #ffffff; }
.moreco-subcard .moreco-info-text { color: rgba(255,255,255,0.90); }
.moreco-subcard .moreco-helper { color: rgba(255,255,255,0.75); }

.moreco-subcard .moreco-input-wrapper {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
}
.moreco-subcard .moreco-input-prefix { color: #ffffff; }
.moreco-subcard .moreco-input { color: #ffffff; }
.moreco-subcard .moreco-input::placeholder { color: rgba(255,255,255,0.85); }

.moreco-subcard .moreco-plan-button {
  border-color: rgba(255,255,255,0.35);
  color: #ffffff;
}
.moreco-subcard .moreco-plan-button.inactive { opacity: 0.6; filter: none;  }
.moreco-subcard .moreco-plan-pill { background: rgba(255,255,255,0.14); color: #ffffff; }
.moreco-subcard .moreco-plan-button.active { border-color: #f7bf03; }
.moreco-subcard .moreco-plan-button.active .moreco-plan-pill { background: #f7bf03; color: #5d227c; }

.moreco-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.moreco-field-center {
  align-items: center;
  text-align: center;
}

.moreco-label-main {
  font-size: clamp(18px, 2.5vw, 20px);
  font-weight: 700;
  color: #5e247d;
}

.moreco-info-text {
  font-size: 14px;
  color: #6b7280;
  max-width: 420px;
  line-height: 1.35;
  margin-top: 12px;
  margin-bottom: 8px;
}

.moreco-input-wrapper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  background: #f3e8ff;
  max-width: 280px;
  justify-content: center;
}

.moreco-input-prefix {
  margin-right: 8px;
  font-size: 20px;
  color: #5e247d;
  font-weight: 600;
}

.moreco-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 700;
  color: #5e247d;
  text-align: center;
  letter-spacing: 0.03em;
}

.moreco-input::placeholder {
  color: #5e247d;
  opacity: 0.7;
}

.moreco-helper {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.moreco-plan-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.moreco-plan-button {
  border-radius: 16px;
  border: 1px solid #f7bf03;
  padding: 12px 16px;
  cursor: pointer;
  background: rgba(87, 198, 208, 0.16);
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.15s;
  text-align: center;
  align-items: center;
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
}

.moreco-plan-button.active {

  border-width: 2px;
  background-color: #5d227c;
  transform: none;
  opacity: 1;
}

.moreco-plan-button.inactive {
  opacity: 0.4;
  border-color: #d1d5db;
  
}

.moreco-plan-button.active .moreco-plan-pill {
  background: #6b7280 ;
  color: #374151;
}

.moreco-plan-button.inactive .moreco-plan-pill {
  background: #e5e7eb;
  color: #6b7280;
  opacity: 0.5;
}

.moreco-plan-button:hover { filter: brightness(1.02); }

.moreco-plan-button:focus-visible {
  outline: 2px solid rgba(94, 36, 125, 0.4);
  outline-offset: 2px;
}

.moreco-plan-pill {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  font-weight: 700;
}

.moreco-plan-desc {
  font-size: 12px;
  color: #ffffff; 
  line-height: 1.35;
}

.moreco-plan-button.active .moreco-plan-desc { color: #ffffff; }

@media (min-width: 901px) {
  .moreco-plan-desc {
    max-width: none;
    white-space: nowrap;
  }
}

.moreco-button-row {
  margin-top: 12px;
  margin-bottom: 16px;
}

.moreco-button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: #f7bf03;
  color: #5d227c;
  transition: 0.08s;
}

.moreco-button:hover {
  filter: brightness(1.2);
}

.moreco-results {
  border-top: 1px dashed #e5e7eb;
  padding-top: 16px;
  margin-top: 16px;
}

.moreco-results-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.moreco-results-grid {
  width: 100%;
  box-sizing: border-box;
}

.moreco-results-single {
  display: flex;
  justify-content: center;
}

.moreco-results-single .moreco-result-card {
  max-width: 320px;
  width: 100%;
}

.moreco-results-dual {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.moreco-result-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: #f9fafb;
  text-align: center;
}

.moreco-result-card.highlight {
  background: rgba(87, 198, 208, 0.16);
  border: 1px solid #57c6d0;
}

.moreco-result-label {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.moreco-result-value {
  font-size: clamp(22px, 3vw, 26px);
  font-weight: 800;
  color: #f7bf03;
}

.moreco-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(84px, 11.2vw, 140px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  transform: translate(10%, -10%) rotate(0deg);
  z-index: 2;
}
.moreco-decor-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .moreco-decor {
    left: 50%;
    right: auto;
    top: 0;
    transform: translate(-50%, 10%) rotate(0deg);
    width: clamp(90px, 32vw, 140px);
  }

  .moreco-header { padding-top: 120px; }
}

.moreco-result-note {
  font-size: 11px;
  color: #ffffff;
}

.moreco-footer-note {
  font-size: 11px;
  color: #ffffff;
  text-align: center;
  margin-top: 12px;
}


@media (max-width: 900px) {
  .moreco-form { grid-template-columns: 1fr !important; gap: 32px !important; }
  .moreco-input-wrapper { max-width: 260px; }
  .moreco-plan-group { max-width: 100%; }
}
