/* =========================================================
   SE Global - New Car Installment Page
   Figma 화면 기준 전체 스타일
========================================================= */

/* =========================================================
   Page
========================================================= */

.newcar-page {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
}

.newcar-section {
  width: 100%;
  padding: 40px 0 56px;
  background:
    linear-gradient(
      180deg,
      #f9fafb 0%,
      #ffffff 54%,
      #ffffff 100%
    );
}

.newcar-container {
  width: 100%;
  max-width: 1024px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* =========================================================
   Main Hero
========================================================= */

.newcar-hero {
  margin-bottom: 64px;
  text-align: center;
}

/* .newcar-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 0;
  height: 36px;
  margin-bottom: 16px;
  padding: 0 24px;

  border-radius: 9999px;

  background: rgba(2, 61, 165, 0.1);
  color: #023da5;

  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
} */

.newcar-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-bottom: 16px;
    padding: 8px 24px;
    border-radius: 9999px;
    background: rgba(2, 61, 165, 0.1);
    color: #023da5;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}


.newcar-hero h1 {
  margin: 0;
  padding: 0 16px;

  color: #1a1a1a;

  font-size: 48px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.05em;

  word-break: keep-all;
  overflow-wrap: break-word;
}

.newcar-hero h1 strong {
  color: #023da5;
  font-weight: 700;
}

.newcar-hero__action {
  margin-top: 32px;
}

.newcar-consultation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 202px;
  min-height: 56px;
  padding: 0 48px;

  border: 0;
  border-radius: 12px;

  background: #023da5;
  color: #ffffff;

  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;

  box-shadow:
    0 10px 15px -3px rgba(2, 61, 165, 0.2),
    0 4px 6px -4px rgba(2, 61, 165, 0.2);

  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.newcar-consultation-button:hover,
.newcar-consultation-button:focus-visible {
  background: #012f82;
  color: #ffffff;

  box-shadow:
    0 20px 25px -5px rgba(2, 61, 165, 0.2),
    0 8px 10px -6px rgba(2, 61, 165, 0.18);
}

.newcar-consultation-button:focus-visible {
  outline: 3px solid rgba(2, 61, 165, 0.2);
  outline-offset: 3px;
}

/* =========================================================
   Shared Section Titles
========================================================= */

.newcar-service {
  margin-bottom: 68px;
}

.newcar-service > h2,
.newcar-recommend > h2 {
  margin: 0 0 32px;

  color: #111827;

  text-align: center;

  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.035em;

  word-break: keep-all;
}

/* =========================================================
   Benefits
========================================================= */

.newcar-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;

  margin-bottom: 32px;
}

.newcar-benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;

  min-width: 0;
  min-height: 94px;
  padding: 24px 32px;

  border: 1px solid #b9cce9;
  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #f2f6fd 0%,
      #e9f0fa 100%
    );
}

.newcar-benefit-card__icon {
  flex: 0 0 22px;

  display: block;
  width: 22px;
  height: 22px;

  color: #0757bd;
}

.newcar-benefit-card p {
  min-width: 0;
  margin: 0;

  color: #1f2937;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.025em;

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   Purchase Process Card
========================================================= */

.newcar-process-card {
  width: 100%;
  padding: 32px 24px 30px;

  border: 1px solid #e3e9f1;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 8px 26px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04);
}

.newcar-process-card > h3 {
  margin: 0 0 34px;

  color: #111827;

  text-align: center;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* =========================================================
   Process Rows
========================================================= */

.newcar-process-row {
  position: relative;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  width: 100%;
}

.newcar-process-row__line {
  position: absolute;
  top: 28px;
  right: 12.5%;
  left: 12.5%;
  z-index: 0;

  height: 2px;

  background: #1161ca;
}

.newcar-process-step {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  flex-direction: column;

  min-width: 0;

  text-align: center;
}

.newcar-process-step__number {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  margin-bottom: 12px;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #0759c4 0%,
      #0446a8 100%
    );

  color: #ffffff;

  font-size: 18px;
  line-height: 1;
  font-weight: 800;

  box-shadow:
    0 6px 14px rgba(2, 61, 165, 0.28);
}

.newcar-process-step p {
  min-width: 0;
  margin: 0;
  padding: 0 6px;

  color: #111827;

  text-align: center;

  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.02em;

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   Down Arrow
========================================================= */

.newcar-process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 50px;
  padding: 4px 0;

  color: #0759c4;

  font-size: 25px;
  line-height: 1;
  font-weight: 800;
}

/* =========================================================
   Second Process Row
========================================================= */

.newcar-process-row--second {
  margin-bottom: 0;
}

.newcar-process-row--second .newcar-process-row__line {
  background: #1161ca;
}

.newcar-process-row--second .newcar-process-step__number {
  background:
    linear-gradient(
      145deg,
      #0759c4 0%,
      #0446a8 100%
    );
}

/* =========================================================
   Process Notice
========================================================= */

.newcar-process-notice {
  margin-top: 28px;
  padding: 12px 18px;

  border-left: 3px solid #0759c4;
  border-radius: 7px;

  background: #eef3ff;
}

.newcar-process-notice p {
  margin: 0;

  color: #6b7280;

  font-size: 11px;
  line-height: 1.7;
  font-weight: 400;

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   Recommendations
========================================================= */

.newcar-recommend {
  width: 100%;
}

.newcar-recommend > h2 {
  margin-bottom: 32px;
}

.newcar-recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;

  width: 100%;
}

.newcar-recommend-card {
  min-width: 0;
  overflow: hidden;

  border: 1px solid #d7dde6;
  border-radius: 14px;

  background: #ffffff;

  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.newcar-recommend-card:hover {
  border-color: #b7c9e3;

  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.newcar-recommend-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #edf3f8;
}

.newcar-recommend-card__image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

.newcar-recommend-card__body {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 76px;
  padding: 18px 24px;

  background: #ffffff;
}

.newcar-recommend-card__body p {
  margin: 0;

  color: #111827;

  text-align: center;

  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -0.02em;

  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   Desktop Large
========================================================= */

@media (min-width: 1280px) {
  .newcar-section {
    padding-top: 40px;
    padding-bottom: 64px;
  }
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1024px) {
  .newcar-container {
    max-width: 960px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .newcar-hero h1 {
    font-size: 40px;
  }

  .newcar-process-step p {
    font-size: 11px;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {
  .newcar-section {
    padding: 32px 0 44px;
  }

  .newcar-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* Hero */

  .newcar-hero {
    margin-bottom: 48px;
  }

  .newcar-hero__badge {
    width: 96px;
    height: 30px;
    margin-bottom: 14px;
    padding: 0;

    font-size: 12px;
  }

  .newcar-hero h1 {
    padding: 0;

    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.05em;
  }

  .newcar-hero__action {
    margin-top: 28px;
  }

  .newcar-consultation-button {
    min-width: 170px;
    min-height: 52px;
    padding: 0 28px;

    font-size: 15px;
  }

  /* Section title */

  .newcar-service {
    margin-bottom: 48px;
  }

  .newcar-service > h2,
  .newcar-recommend > h2 {
    margin-bottom: 24px;

    font-size: 21px;
  }

  /* Benefits */

  .newcar-benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;

    margin-bottom: 24px;
  }

  .newcar-benefit-card {
    min-height: 78px;
    padding: 20px;
  }

  .newcar-benefit-card p {
    font-size: 15px;
  }

  /* Process */

  .newcar-process-card {
    padding: 26px 12px 22px;

    border-radius: 16px;
  }

  .newcar-process-card > h3 {
    margin-bottom: 28px;

    font-size: 16px;
  }

  .newcar-process-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .newcar-process-row__line {
    top: 23px;
    right: 12.5%;
    left: 12.5%;
  }

  .newcar-process-step__number {
    flex-basis: 46px;

    width: 46px;
    height: 46px;
    margin-bottom: 10px;

    font-size: 15px;
  }

  .newcar-process-step p {
    padding: 0 2px;

    font-size: 10px;
    line-height: 1.4;
  }

  .newcar-process-arrow {
    height: 42px;

    font-size: 22px;
  }

  .newcar-process-notice {
    margin-top: 22px;
    padding: 10px 12px;
  }

  .newcar-process-notice p {
    font-size: 10px;
    line-height: 1.65;
  }

  /* Recommendations */

  .newcar-recommend-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .newcar-recommend-card__body {
    min-height: 68px;
    padding: 16px 18px;
  }

  .newcar-recommend-card__body p {
    font-size: 14px;
  }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 479px) {
  .newcar-hero h1 {
    font-size: 30px;
  }

  .newcar-process-card {
    padding-right: 8px;
    padding-left: 8px;
  }

  .newcar-process-step__number {
    flex-basis: 42px;

    width: 42px;
    height: 42px;

    font-size: 14px;
  }

  .newcar-process-row__line {
    top: 21px;
  }

  .newcar-process-step p {
    font-size: 9px;
    letter-spacing: -0.04em;
  }
}

/* =========================================================
   Very Small Mobile
========================================================= */

@media (max-width: 359px) {
  .newcar-hero h1 {
    font-size: 30px;
  }

  .newcar-process-step__number {
    flex-basis: 38px;

    width: 38px;
    height: 38px;
  }

  .newcar-process-row__line {
    top: 19px;
  }

  .newcar-process-step p {
    font-size: 8px;
  }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .newcar-consultation-button,
  .newcar-recommend-card {
    transition: none;
  }
}
