.p-firstYearCostSimulator {
  margin: 30px 0 0;
}

.p-firstYearCostSimulator__simulator {
  margin: 50px auto 0;
  width: 100%;
  max-width: 990px;
  display: grid;
  grid-template-columns: 426px 1fr;
  gap: 4px;
}

@media screen and (max-width: 990px) {
  .p-firstYearCostSimulator__simulator {
    margin: 50px 16px 0;
    max-width: none;
    width: auto;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-firstYearCostSimulator__simulator {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.p-firstYearCostSimulator__simulator__controls {
  background-color: var(--white);
  padding: 40px;
  border-radius: 24px;
  width: 100%;
}

@media screen and (max-width: 990px) {
  .p-firstYearCostSimulator__simulator__controls {
    padding: 24px 16px;
  }
}

@media screen and (max-width: 767px) {
  .p-firstYearCostSimulator__simulator__controls {
    padding: 32px 16px;
    max-width: none;
    width: 100%;
  }
}

.p-firstYearCostSimulator__section {
  margin-bottom: 28px;
}

.p-firstYearCostSimulator__section:last-child {
  margin-bottom: 0;
}

.p-firstYearCostSimulator__pillStep {
  display: inline-block;
  padding: 3px 14px;
  background: var(--yellow);
  border-radius: 2rem;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.p-firstYearCostSimulator__pillStep--blue {
  background: #dbeafe;
  color: #2563eb;
}

.p-firstYearCostSimulator__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #171717;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.p-firstYearCostSimulator__selectWrap {
  position: relative;
}

.p-firstYearCostSimulator__selectWrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' 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-size: contain;
  pointer-events: none;
}

.p-firstYearCostSimulator__select {
  width: 100%;
  background-color: #f5f5f5;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 40px 16px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #171717;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.p-firstYearCostSimulator__select:focus {
  background-color: #fff;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.p-firstYearCostSimulator__inputWrap {
  position: relative;
}

.p-firstYearCostSimulator__input {
  width: 100%;
  background: #f5f5f5 !important;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  padding: 16px 40px 16px 16px !important;
  font-size: 14px;
  font-weight: 700;
  color: #171717;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}

.p-firstYearCostSimulator__input::-webkit-outer-spin-button,
.p-firstYearCostSimulator__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.p-firstYearCostSimulator__input:focus {
  background-color: #fff !important;
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.p-firstYearCostSimulator__input--withPrefix {
  padding-left: 40px;
}

.p-firstYearCostSimulator__inputUnit {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #a3a3a3;
  pointer-events: none;
}

.p-firstYearCostSimulator__inputUnit--right {
  right: 16px;
}

.p-firstYearCostSimulator__inputUnit--left {
  left: 16px;
}

.p-firstYearCostSimulator__insuranceNotes {
  margin-top: 12px;
}

.p-firstYearCostSimulator__insuranceNote {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.7;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}


.p-firstYearCostSimulator__insuranceLink {
  margin-top: 6px;
  font-size: 14px;
}

.p-firstYearCostSimulator__insuranceLink a {
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-firstYearCostSimulator__insuranceLink a:hover, .p-firstYearCostSimulator__insuranceLink a:focus, .p-firstYearCostSimulator__insuranceLink a:active {
  color: #525252;
  text-decoration: none;
}

.p-firstYearCostSimulator__simulator__resultWrapper {
  width: 100%;
  max-width: 526px;
  justify-self: end;
  align-self: start;
}

@media screen and (max-width: 767px) {
  .p-firstYearCostSimulator__simulator__resultWrapper {
    max-width: none;
  }
}

.p-firstYearCostSimulator__result {
  background-color: #27272a;
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  overflow: hidden;
}

@media screen and (max-width: 990px) {
  .p-firstYearCostSimulator__result {
    padding: 24px 16px;
  }
}

@media screen and (max-width: 767px) {
  .p-firstYearCostSimulator__result {
    padding: 32px 16px;
  }
}

.p-firstYearCostSimulator__result__heading {
  font-size: 18px;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin: 0 0 24px;
}

.p-firstYearCostSimulator__result__totalWrap {
  text-align: right;
  margin-bottom: 36px;
}

.p-firstYearCostSimulator__result__totalBlock {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.p-firstYearCostSimulator__result__totalAmount {
  font-size: 62px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  word-break: break-all;
  min-width: 0;
}

@media screen and (max-width: 480px) {
  .p-firstYearCostSimulator__result__totalAmount {
    font-size: 44px;
  }
}

.p-firstYearCostSimulator__result__totalUnit {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.p-firstYearCostSimulator__result__totalPrefix {
  font-size: 15px;
  font-weight: 700;
  color: #a3a3a3;
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 10px;
}

.p-firstYearCostSimulator__result__summaryCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

@media screen and (max-width: 480px) {
  .p-firstYearCostSimulator__result__summaryCards {
    grid-template-columns: 1fr;
  }
}

.p-firstYearCostSimulator__result__summaryCard {
  padding: 20px 16px;
  border-radius: 20px;
}

.p-firstYearCostSimulator__result__summaryCard--initial {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.p-firstYearCostSimulator__result__summaryCard--running {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.p-firstYearCostSimulator__result__summaryCardLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.p-firstYearCostSimulator__result__summaryCardLabel--yellow {
  color: rgba(255, 202, 40, 0.8);
}

.p-firstYearCostSimulator__result__summaryCardValue {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  word-break: break-all;
  min-width: 0;
  margin: 0 0 6px;
}

.p-firstYearCostSimulator__result__summaryCardValue--yellow {
  color: var(--yellow);
}

.p-firstYearCostSimulator__result__summaryCardNote {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.p-firstYearCostSimulator__result__summaryCardNote--yellow {
  color: rgba(255, 202, 40, 0.6);
}

.p-firstYearCostSimulator__result__detailSection {

}

.p-firstYearCostSimulator__result__detailHeader {
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.2em;
  margin: 0;
}

.p-firstYearCostSimulator__result__detailList {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.p-firstYearCostSimulator__result__detailRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.p-firstYearCostSimulator__result__detailRow:first-child {
  border-top: none;
}

.p-firstYearCostSimulator__result__detailRow--bordered {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 14px;
  margin-top: 4px;
}

.p-firstYearCostSimulator__result__detailRow--muted {
  opacity: 0.6;
}

.p-firstYearCostSimulator__result__detailRow--blue .p-firstYearCostSimulator__result__detailRowLabel {
  color: #93c5fd;
  font-weight: 900;
}

.p-firstYearCostSimulator__result__detailRow--blue .p-firstYearCostSimulator__result__detailRowValue {
  color: #93c5fd;
}

.p-firstYearCostSimulator__result__detailRowLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.p-firstYearCostSimulator__result__detailRowLabel--white {
  color: #fff;
}

.p-firstYearCostSimulator__result__detailRowValue {
  font-size: 16px;
  font-weight: 900;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.p-firstYearCostSimulator__result__detailRowValue.is-inquiry {
  color: #f87171;
}

.p-firstYearCostSimulator__pdfBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--black);
  border: 2px solid #e5e5e5;
  padding: 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin: 12px 0 40px;
}

.p-firstYearCostSimulator__pdfBtn:hover,
.p-firstYearCostSimulator__pdfBtn:active,
.p-firstYearCostSimulator__pdfBtn:focus {
  background: #f5f5f5;
  color: var(--black);
}

@media screen and (max-width: 767px) {
  .p-firstYearCostSimulator__pdfBtn {
    margin: 12px 0 0;
  }
}

@media print {
  .p-firstYearCostSimulator__pdfBtn { display: none !important; }

  .p-firstYearCostSimulator__result {
    background: #27272a !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .p-firstYearCostSimulator__result__totalAmount,
  .p-firstYearCostSimulator__result__heading,
  .p-firstYearCostSimulator__result__summaryCardValue--yellow,
  .p-firstYearCostSimulator__result__detailRowValue {
    color: var(--yellow) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
