header {
  padding: 1rem;
  display: flex;
  align-items: center;
  background-color: #ffffff;
}

body {
  isolation: isolate;
}

/* main */
main {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

main > .title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2.75rem;
}
.title > .chip {
  background-color: #ffe5de;
  border-radius: 60px;
  padding: 6px 12px 6px 12px;
  color: #ff5e2e;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .title > .chip {
    font-size: 1rem;
    margin-bottom: 12px;
  }
}

.title > .gap {
  margin-top: 2rem;
}

.title > p {
  color: #000f1f;
  font-weight: 700;
  font-size: 2.5rem;
}
.title > p.sub-title {
  font-weight: 400;
  font-size: 1.5rem;
}

.title > p.sub-title > span {
  color: #ff5e2e;
}

@media (max-width: 768px) {
  .title > p {
    font-size: 1.75rem;
  }

  .title > p.sub-title {
    font-weight: 400;
    font-size: 1rem;
  }
}

/* section */
section {
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

section.main-card-section {
  margin-bottom: auto;
}

section > .card-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4열, 각 열 동일 너비 */
  gap: 0.75rem;
}

@media (max-width: 768px) {
  section > .card-wrap {
    grid-template-columns: repeat(1, 1fr); /* 768px 이하 1열 */
  }
}

/* wrap */
section .col-wrap {
  display: flex;
  gap: 0.5rem;
}

/* card */
.card {
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .card {
    flex-direction: row-reverse;
    aspect-ratio: unset;
    align-items: center;
  }
}

.card > .title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .card > .title-wrap {
    justify-content: center;
    gap: 0.5rem;
    margin-right: auto;
  }
}

.card > .title-wrap > .title {
  font-weight: 600;
  font-size: 1.75rem;
}

@media (max-width: 768px) {
  .card > .title-wrap > .title {
    font-size: 1rem;
  }
}

.card > .title-wrap > .sub-title {
  font-size: 1rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .card > .title-wrap > .sub-title {
    font-size: 0.725rem;
  }
}

.card > .image-wrap {
  margin-top: auto;
  margin-left: auto;
}

@media (max-width: 768px) {
  .card > .image-wrap {
    margin: 0;
    width: 5rem;
    height: 5rem;
  }
}

.card.black {
  background-color: #000f1f;
}
.card.navy-blue {
  background-color: #1b3a66;
}
.card.blue {
  background-color: #527ebd;
}
.card.gray-blue {
  background-color: #dae0e6;
}

.card.black > .title-wrap > .title,
.card.blue > .title-wrap > .title,
.card.navy-blue > .title-wrap > .title {
  color: #ffffff;
}

.card.black > .title-wrap > .sub-title,
.card.blue > .title-wrap > .sub-title,
.card.navy-blue > .title-wrap > .sub-title {
  color: #ffffff;
}

.card.gray-blue > .title-wrap > .title {
  color: #000f1f;
}

.card.gray-blue > .title-wrap > .sub-title {
  color: #00152b;
}

.card > .mobile {
  display: none;
  width: fit-content;
  height: fit-content;
}

@media (max-width: 768px) {
  .card > .mobile {
    display: block;
  }
}

.card > .mobile > .chip {
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
}

.card.black > .mobile > .chip,
.card.blue > .mobile > .chip,
.card.navy-blue > .mobile > .chip {
  background: rgba(255, 255, 255, 0.2);
}

.card.gray-blue > .mobile > .chip {
  background-color: rgba(0, 15, 31, 0.2);
}

/* radio */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

label.radio-wrap {
  border-radius: 8px;
  border: 1px solid #dae0e6;
  padding: 1.25rem;
  display: flex;
  width: 100%;
  cursor: pointer;
}

label.radio-wrap:has(input:checked) {
  border-color: #ff5e2e;
}

label.radio-wrap > .content {
  color: #000f1f;
  font-size: 18px;
  font-weight: 400;
  user-select: none;
}

label.radio-wrap > .content-wrap {
  display: flex;
  gap: 0.25rem;
}

@media (max-width: 768px) {
  label.radio-wrap > .content-wrap {
    flex-direction: column;
  }
}

label.radio-wrap > .content-wrap > .content {
  color: #000f1f;
  font-size: 16px;
  font-weight: 400;
  user-select: none;
}

label.radio-wrap > .content-wrap > .sub-content {
  color: #848b90;
  font-size: 14px;
  font-weight: 400;
  user-select: none;
}

label.radio-wrap > .radio {
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

label.radio-wrap > .radio > input {
  display: none;
}

label.radio-wrap > .radio > .radio-circle {
  width: 20px;
  height: 20px;
  border: 1px solid #dae0e6;
  border-radius: 20px;
  position: relative;
}

label.radio-wrap > .radio > .radio-circle > .inner-circle {
  display: none;
  position: absolute;
  transform: translateX(-50%) translateY(-50%);
  left: 50%;
  top: 50%;
  background-color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 12px;
}

label.radio-wrap > .radio > input:checked ~ .radio-circle {
  border: none;
  background-color: #ff5e2e;
}

label.radio-wrap > .radio > input:checked ~ .radio-circle > .inner-circle {
  display: block;
}

/* checkbox */
label.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  cursor: pointer;
  user-select: none;
}

label.checkbox-wrap > input {
  display: none;
}

label.checkbox-wrap > .checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
}

label.checkbox-wrap > .checkbox > .checkbox-circle {
  width: 20px;
  height: 20px;
  border: 1px solid #dae0e6;
  border-radius: 20px;
  position: relative;
}

label.checkbox-wrap > .checkbox > .checkbox-circle > .inner-circle {
  display: none;
  position: absolute;
  transform: translateX(-50%) translateY(-50%);
  left: 50%;
  top: 50%;
  background-color: #ffffff;
  width: 12px;
  height: 12px;
  border-radius: 12px;
}

label.checkbox-wrap > .checkbox > input:checked ~ .checkbox-circle {
  border: none;
  background-color: #ff5e2e;
}

label.checkbox-wrap
  > .checkbox
  > input:checked
  ~ .checkbox-circle
  > .inner-circle {
  display: block;
}

label.checkbox-wrap > .label {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  color: #000f1f;
}

label.checkbox-wrap > .label > span.bold {
  font-weight: 600;
}

/* button */
.btn-wrap {
  display: flex;
  gap: 0.75rem;
  max-width: 27.5rem;
  width: 100%;
  padding-top: 4.25rem;
  margin-top: auto;
  margin-bottom: 5rem;
  margin-left: auto;
  margin-right: auto;
}

button {
  border-radius: 8px;
  padding: 0.5rem;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  cursor: pointer;
  user-select: none;
}
button:disabled {
  border-radius: 8px;
  padding: 0.5rem;
  cursor: not-allowed;
}
button.primary {
  background: #1b3a66;
  color: #ffffff;
}
button.primary:disabled {
  background: #748fb6;
  color: #ffffff;
}
button.secondary {
  background: #ffffff;
  border: 1px solid #dae0e6;
  color: #000f1f;
}
button.secondary:disabled {
  background: #ffffff;
  border: 1px solid #dae0e6;
  color: #000f1f;
}

/* select */
.select {
  border-radius: 8px;
  border: 1px solid #dae0e6;
  display: flex;
  width: 100%;
  font-weight: 500;

  padding: 1rem 1rem 0.9rem 1rem;
  cursor: pointer;
  align-items: center;
  position: relative;
}

.select > input {
  display: none;
}

.select > .selected {
  display: flex;
  align-items: center;
  flex: 1;
  font-size: 18px;
  color: #818181;
}

.select > .selected.active {
  color: #000f1f;
}

.select > .selected::after {
  content: "";
  background-image: url(../../assets/images/icon/icon-arrow-bottom.svg);
  width: 24px;
  height: 24px;
  margin-left: auto;
  color: #818181;
}

.select > .options {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  scale: 0;
  position: absolute;
  top: 100%;
  margin-top: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #dae0e6;
  width: 100%;
  transform: translateX(-50%);
  left: 50%;
  border-radius: 8px;
  padding: 0.5rem 0;
  pointer-events: none; /* 클릭 안 되게 */
  max-height: 20rem;
  overflow-y: auto;
}

.select.open > .options {
  opacity: 1;
  scale: 1;
  pointer-events: auto; /* 클릭 가능 */
  user-select: none;
}

.select > .options > li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 18px;
  color: #000f1f;
}

.select > .options > li.disabled {
  cursor: not-allowed;
  color: #848b90;
}

.select > .options > li:hover {
  color: #000000;
  font-weight: 600;
}

.select > .options > li.disabled:hover {
  color: #848b90;
  font-weight: unset;
}

/* input */
.input {
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #dae0e6;
  border-radius: 8px;
  overflow: hidden;
  padding: 1rem 1rem;
  font-size: 18px;
}

.input > input {
  flex: 1;
  font-weight: 500;
  width: 100%;
}

.input > .surfix {
  align-items: center;
  color: #848b90;
  user-select: none;
  font-size: 18px;
}

/* form */
.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
}

.form > .key {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  gap: 0.25rem;
}

.form > .key.import::after {
  content: "*";
  color: #ff5e2e;
}

.form > .form-phone-number-wrap {
  display: flex;
  width: 60%;
  align-items: center;
  gap: 0.5rem;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .form > .form-phone-number-wrap {
    width: 100%;
  }
}

/* tooltip */

.tooltip-wrap {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.tooltip-wrap.flex-1 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tooltip-wrap > .tooltip {
  position: absolute;
  bottom: 100%;
  transform: translateX(-50%);
  left: 50%;
  margin-bottom: 0.5rem;
  font-size: 16px;
  border-radius: 16px;
  width: max-content;
  padding: 0.5rem 1rem;
}

.tooltip-wrap > .tooltip.type2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
  bottom: 150%;
  align-items: center;
}

.tooltip-wrap > .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; /* tooltip 바로 아래 */
  left: 50%;
  transform: translateX(-50%);

  /* 삼각형 만들기 */
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 7px solid transparent; /* tooltip의 background color와 일치 */
}

.tooltip-wrap > .tooltip.type2::after {
  content: "";
  position: absolute;
  top: 100%; /* tooltip 바로 아래 */

  width: 20px;
  height: 20px;
  border: none;
  background-image: url("/assets/images/icon/icon-arrow-bottom-outline.svg");
  background-position: center;
  background-repeat: no-repeat; /* 반복 제거 */
}

.tooltip-wrap > .tooltip.black {
  background-color: #000f1f;
  color: #ffffff;
}

.tooltip-wrap > .tooltip.white {
  background-color: white;
  color: #848b90;
}

.tooltip-wrap > .tooltip.black::after {
  border-top-color: #000f1f;
}

.textarea {
  width: 100%;
}
.textarea > textarea {
  width: 100%;
  resize: none;
  border: 1px solid #848b90;
  border-radius: 8px;
  min-height: 12.5rem;
  padding: 1.25rem;
  font-size: 1rem;
}

/* etc-textarea */
.etc-textarea-wrap {
  display: none;
}

.etc-textarea-wrap.active {
  display: block;
}

/* linked */
.linked {
  border-bottom: 1px solid;
  width: fit-content;
  font-size: 0.75rem;
  line-height: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.linked.gray {
  color: #848b90;
  border-bottom-color: #848b90;
}

.linked.right {
  margin-left: auto;
}

.quotation-text-card {
  border: 1px solid #d5d8e5;
  background: #f9faff;
  padding: 1rem;
  max-width: 1080px;
  width: 100%;
  margin-bottom: 2rem;
}

.quotation-text-card > .title {
  color: #000f1f;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.quotation-text-card > .title > span {
  color: #ff5e2e;
}

.quotation-text-card > .content {
  font-size: 0.9rem;
}

.quotation-text-card > .content > .title {
  color: #1b3a66;
  font-weight: 700;
}
.quotation-text-card > .content > ul {
  list-style: disc; /* 기본 점 */
  padding-left: 20px;
}

.quotation-text-card > .content > ul > li {
  list-style: disc; /* 기본 점 */
  color: #000f1f;
}

.quotation-card {
  border-radius: 12px;
  border: 1px solid #dae0e6;
  background: #fff;

  /* 1 */
  box-shadow: 0 8px 40px 0 rgba(30, 31, 32, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.quotation-card > input {
  display: none;
}

.quotation-card > .info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quotation-card > .info > .manufacturer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quotation-card > .info > .manufacturer-info > .img-wrap {
  width: 5rem;
  height: 5rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #dae0e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quotation-card > .info > .manufacturer-info > .manufacturer-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.quotation-card > .info > .quotation-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quotation-card > .info > .quotation-info > .option {
  color: #000f1f;
  font-size: 0.9rem;
  font-weight: 400;
}

.quotation-card > .info > .quotation-info > .totalAmount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: #909fb7;
}

.quotation-card > .info > .quotation-info > .totalAmount > img {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
}

.quotation-card > .info > .quotation-info > .totalAmount > span {
  color: #000f1f;
  font-weight: 500;
  font-size: 2rem;
}

.quotation-card > .btn-wrap {
  margin: auto;
  padding: 0;
}

.quotation-card > .btn-wrap > button {
  font-size: 1.25rem;
}

.quotations-end-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quotations-end-title > .text {
  font-size: 1.5rem;
  color: #848b90;
}

@media (max-width: 768px) {
  .quotations-end-title > .text {
    font-size: 1rem;
  }
}

.quotations-end-title > .manufacturer {
  font-size: 2.25rem;
  color: #ff5e2e;
  font-weight: 700;
}

@media (max-width: 768px) {
  .quotations-end-title > .manufacturer {
    font-size: 1.25rem;
  }
}

.bottom-wrap {
  margin-top: auto;
  max-width: 1080px;
  width: 100%;
}

.bottom-wrap > .btn-wrap {
  margin-top: 0;
  padding-top: 1rem;
}

.alert-card {
  border-radius: 8px;
  border: 1px solid #d5d8e5;
  background-color: #f9faff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  width: 100%;
}

.alert-card.red {
  border-radius: 0;
  border: none;
  border-top: 2px solid #ff5e2e;
  background-color: rgba(255, 94, 46, 0.07);
  margin-top: 2rem;
}

.alert-card > .title {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: #848b90;
  font-size: 1rem;
}

.alert-card.red > .title {
  color: #ff5e2e;
}

.alert-card > .title > img {
  width: 1rem;
  height: 1rem;
}

.alert-card > .content {
  color: #848b90;
  font-size: 1rem;
}

.alert-card > .content > ul {
  list-style: disc; /* 기본 점 */
  padding-left: 20px;
}

.alert-card > .content > ul > li {
  list-style: disc; /* 기본 점 */
}

.alert-card.red > .content {
  color: #000f1f;
}

.survey-modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: none;
  z-index: 1000;
}

.survey-modal.active {
  display: block;
}

.survey-modal > .dim {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  opacity: 0.4;
  z-index: 1000;
}

.survey-modal > .body {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  padding: 0.5rem;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.5rem;
  z-index: 1001; /* dim보다 위 */
}

.survey-modal > .body > .head {
  display: flex;
  gap: 0.25rem;
}

.survey-modal > .body > .head > .text {
  font-weight: 600;
  color: #000f1f;
}

.survey-modal > .body > .head > .close {
  margin-left: auto;
  cursor: pointer;
}

.survey-modal > .body > .content {
  font-size: 14px;
  font-weight: 400;
  color: #000f1f;
}

.survey-modal > .body > .content > .orange {
  color: #ff5e2e;
}
