*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.card {
  margin: 0 auto;
}

.card__title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.12em;
  border-bottom: 2px solid #d19c34;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 5px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex .img {
  width: 300px;
}

.flex .img img {
  width: 100%;
  box-shadow: none;
}

.flex .calc {
  width: calc(100% - 300px);
  padding-left: 50px;
}

@media (max-width: 640px) {
  .flex .img {
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px;
  }
  .flex .calc {
    width: 100%;
    padding-left: 0;
  }
}

.section {
  margin-bottom: 28px;
}

.section__label {
  font-size: 14px;
  font-weight: 500;
  color: #1A1E2E;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.section__label .dot {
  width: 14px;
  height: 14px;
  background: #d19c34;
  border-radius: 50%;
  flex-shrink: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.field-row--2col {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: #8A7A5C;
  letter-spacing: 0.04em;
}

.field input {
  /* font-family: 'DM Mono', monospace; */
  font-size: 15px;
  font-weight: 500;
  color: #1A1E2E;
  background: #FBF2DF;
  border: 1px solid #E8D9B8;
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.field input:focus {
  border-color: #C08A2A;
  box-shadow: 0 0 0 3px rgba(192, 138, 42, 0.18);
}

.field input::placeholder {
  color: #AEAEAE;
}

.field select {
  /* font-family: 'DM Mono', monospace; */
  font-size: 15px;
  font-weight: 500;
  color: #1A1E2E;
  background: #FBF2DF;
  border: 1px solid #E8D9B8;
  border-radius: 3px;
  padding: 10px 12px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C08A2A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}

.field select:focus {
  border-color: #C08A2A;
  box-shadow: 0 0 0 3px rgba(192, 138, 42, 0.18);
}

.divider {
  border: none;
  border-top: 1.5px solid #E8D9B8;
  margin: 24px 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 14px 16px;
  background: #FBF2DF;
  border-radius: 5px;
  border: 1.5px solid #E8D9B8;
  transition: border-color 0.18s;
}

.toggle-row:hover {
  border-color: #C08A2A;
}

.toggle-row input[type="checkbox"] {
  display: none;
}

.toggle-row.checked .toggle-row__box {
  background: #d19c34;
  border-color: #d19c34;
}

.toggle-row.checked .toggle-row__box svg {
  display: block;
}

.toggle-row.checked .toggle-row__badge {
  background: #C08A2A;
  color: #fff;
}

.toggle-row__box {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid #C08A2A;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.toggle-row__box svg {
  display: none;
}

.toggle-row__text {
  font-size: 14px;
  font-weight: 600;
  color: #1A1E2E;
}

.toggle-row__badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #E8D9B8;
  color: #8A7A5C;
  letter-spacing: 0.06em;
  transition: background 0.18s, color 0.18s;
}

.zuredome-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.zuredome-detail.open {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

.result-block {
  background: #FDF7EA;
  border-radius: 8px;
  border: 1.5px solid #C08A2A;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-block__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.result-block__label {
  font-size: 13px;
  color: #8A7A5C;
  font-weight: 500;
}

.result-block__value {
  /* font-family: 'DM Mono', monospace; */
  font-size: 18px;
  font-weight: 500;
  color: #d19c34;
  transition: color 0.2s;
}

.result-block__value--main {
  font-size: 22px;
  font-weight: 700;
  color: #A6740F;
}

.result-block__unit {
  font-size: 13px;
  font-weight: 400;
  margin-left: 4px;
  color: #8A7A5C;
}

.result-block__sep {
  border: none;
  border-top: 1px solid #E8D9B8;
}

.price-block {
  background: #E8F5EF;
  border-radius: 8px;
  border: 1.5px solid #34A871;
  padding: 0 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.28s ease, padding 0.3s ease;
}

.price-block.visible {
  max-height: 400px;
  opacity: 1;
  padding: 20px 24px;
}

.price-block__header {
  font-size: 14px;
  font-weight: 700;
  color: #0D7A4E;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-block__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.price-block__label {
  font-size: 13px;
  color: #3A6654;
  font-weight: 500;
}

.price-block__value {
  /* font-family: 'DM Mono', monospace; */
  font-size: 13px;
  font-weight: 500;
  color: #3A6654;
}

.price-block__sep {
  border: none;
  border-top: 1px dashed #a0cfb9;
}

.price-block__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1.5px solid #34A871;
}

.price-block__total-label {
  font-size: 14px;
  font-weight: 700;
  color: #0D7A4E;
}

.price-block__total-value {
  /* font-family: 'DM Mono', monospace; */
  font-size: 28px;
  font-weight: 700;
  color: #0D7A4E;
}

.price-block__total-unit {
  font-size: 14px;
  font-weight: 400;
  margin-left: 4px;
  color: #0D7A4E;
  opacity: 0.7;
}

.formula-note {
  margin-top: 12px;
  font-size: 11px;
  color: #8A7A5C;
  background: #FBF2DF;
  border-radius: 6px;
  padding: 8px 12px;
  /* font-family: 'DM Mono', monospace; */
  letter-spacing: 0.03em;
  line-height: 1.9;
}

@keyframes pop {
  0% {
    transform: scale(0.97);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate {
  animation: pop 0.2s ease-out;
}
