@charset "UTF-8";
.asset-guide-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f0f7ff;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px 0 5px 0;
}
.asset-guide-bar .search {
  display: flex;
  gap: 10px;
}
.asset-guide-bar .search img {
  width: 15px;
}
.asset-guide-bar__text {
  color: #13a8fe;
  font-size: 12px;
  font-weight: 600;
}
.asset-guide-bar__icon {
  color: #555;
  display: flex;
}

/* === Layout === */
.apply-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 70px 0 20px;
}
@media (max-width: 768px) {
  .apply-wrapper {
    padding: 70px 20px 20px;
  }
}

.apply-container {
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

/* === Hero === */
.apply-hero {
  max-width: 500px;
  width: 100%;
}
.apply-hero__title {
  font-size: 28px;
  margin-bottom: 5px;
}
.apply-hero__desc {
  font-size: 15px;
  color: var(--color-gray);
}

/* === Common Section === */
.apply-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
}

/* === Select Grid === */
.apply-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 5px;
}
.apply-select-grid--cols-2 {
  grid-template-columns: 1fr 1fr;
}
.apply-select-grid--cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.apply-select-grid--cols-6 {
  grid-template-columns: repeat(6, 1fr);
}
.apply-select-grid--full {
  grid-column: span 2;
}

/* === Select Item === */
.apply-select-item {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  min-height: 50px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.apply-select-item input[type=radio],
.apply-select-item input[type=checkbox] {
  display: none;
}
.apply-select-item--desc {
  color: #999;
  font-size: 11px;
  text-align: center;
}
.apply-select-item--active {
  border-color: var(--color-primary);
  font-weight: 600;
}
.apply-select-item__content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.apply-select-item__content img {
  width: 20px;
}
.apply-select-item__content span {
  font-weight: 600;
}
@media (max-width: 768px) {
  .apply-select-item__content span {
    font-size: 12px;
  }
}
.apply-select-item--brand {
  padding: 10px 5px;
  background: #fff;
  gap: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apply-select-item--brand img {
  margin: 0 auto;
}
.apply-select-item--brand:hover {
  border-color: #7c4dff;
}
.apply-select-item--brand.apply-select-item--active {
  background-color: #f3f0ff;
  border-color: #7c4dff;
}

/* === Input Groups === */
.apply-input-box {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.apply-input-box--relative {
  position: relative;
  width: 100%;
  display: block;
}
.apply-input-box__field {
  width: 100%;
}
.apply-input-box__textarea {
  height: 120px;
  width: 100%;
}
.apply-input-box__unit {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #191f28;
  pointer-events: none;
}
.apply-input-box__unit--gray {
  color: var(--color-gray);
}
.apply-input-box__clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #999;
  cursor: pointer;
  padding: 10px;
}
.apply-input-box__clear-btn:hover {
  color: #333;
}

/* === Autocomplete === */
.apply-autocomplete {
  position: relative;
  width: 100%;
}
.apply-autocomplete__list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  padding: 0;
  margin: 5px 0 0 0;
  list-style: none;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  width: 100%;
}
.apply-autocomplete__item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}
.apply-autocomplete__item strong {
  color: #333;
}
.apply-autocomplete__item:hover {
  background-color: #f0f0ff;
  color: #7c4dff;
}

/* === AI Upload === */
.ai-section__header h3 {
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 5px;
}
.ai-section__header p {
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 10px;
}
.ai-section__status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.ai-section__count {
  font-size: 12px;
  color: var(--color-gray);
}
.ai-section__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 10px 0;
}
@media (max-width: 768px) {
  .ai-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.ai-section__item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #eee;
}
.ai-section__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-section__del-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ai-section__add-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}

/* === Terms === */
.apply-terms {
  margin-top: 30px;
  border-top: 1px solid #f5f5f5;
}
.apply-terms__head {
  display: flex;
  flex-direction: column;
  justify-content: left;
  font-size: 14px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  gap: 5px;
}
@media (max-width: 768px) {
  .apply-terms__head {
    font-size: 12px;
  }
}
.apply-terms__head-title {
  font-weight: 600;
  font-size: 14px;
}
.apply-terms__head-desc {
  padding-left: 20px;
  color: #999;
}
.apply-terms__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}
@media (max-width: 768px) {
  .apply-terms__item {
    font-size: 12px;
  }
}
.apply-terms__label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.apply-terms__tag {
  font-weight: bold;
  font-size: 13px;
  color: #ffb400;
}
.apply-terms__view-btn {
  color: #999;
  font-size: 12px;
  text-decoration: underline;
}

/* === Term Modal === */
.term-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.4s;
}
.term-modal.is-active {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.term-modal.is-active .term-modal__overlay {
  opacity: 1;
}
.term-modal.is-active .term-modal__content {
  transform: translate(0, 0);
  opacity: 1;
}
.term-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.term-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 5px;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s ease;
}
@media (max-width: 768px) {
  .term-modal__content {
    padding: 25px 20px;
  }
}
.term-modal__close-x {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
}
.term-modal__header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.term-modal__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}
.term-modal__body {
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #333;
  max-height: 50vh;
  overflow-y: auto;
  margin-bottom: 25px;
}
.term-modal__body p, .term-modal__body li {
  margin-bottom: 10px;
}
.term-modal__body .term-list-item {
  position: relative;
  padding-left: 15px;
}
.term-modal__body .term-list-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #333;
}
.term-modal__btn {
  width: 100%;
}
.term-modal__btn:hover {
  opacity: 0.8;
}

/* === Loading === */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}
.loading-overlay__spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
/* === Metal === */
.metal-calc__display {
  text-align: right;
}
.metal-calc__text {
  font-size: 14px;
  color: var(--color-gray-soft);
  transition: color 0.3s ease;
}
.metal-calc__text--calculated {
  color: var(--color-primary-bold);
  font-weight: 600;
}

/* === Result === */
.ai-result-card {
  background: linear-gradient(180deg, #f3d2ee 0%, #f5fbbe 100%);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: none;
}
.ai-result-card--show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.ai-result-card__inner {
  background: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.ai-result-card__header {
  margin-bottom: 25px;
}
.ai-result-card__title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #7c4dff 0%, #2196F3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-result-card__title::before {
  content: "✦";
  background: linear-gradient(90deg, #7c4dff 0%, #2196F3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-result-card__desc {
  font-size: 14px;
  color: var(--color-gray);
  margin: 0;
}
.ai-result-card__grid {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}
.ai-result-card__grid--3 {
  gap: 10px;
}
.ai-result-card__grid--3 .ai-result-card__grid-item {
  padding: 14px 10px;
}
.ai-result-card__grid-item {
  flex: 1;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
}
.ai-result-card__grid-item .label {
  font-size: 12px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 4px;
}
.ai-result-card__grid-item .val {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin: 0;
  word-break: break-all;
}
.ai-result-card__group {
  padding: 15px 0;
}
.ai-result-card__group:last-child {
  border-bottom: none;
}
.ai-result-card__group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ai-result-card__group-head .label-text {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.ai-result-card__group-head .badge {
  font-size: 11px;
  font-weight: 400;
  color: #adb5bd;
}
.ai-result-card__group-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #8b95a1;
}
.ai-result-card__group-body .status-desc {
  flex: 7;
  line-height: 1.5;
}
.ai-result-card__group-body .prefix {
  color: #8b95a1;
}
.ai-result-card__group-body .highlight-text {
  font-weight: 700;
  font-size: 16px;
  color: #000;
}
.ai-result-card__group-body .highlight-text.text-yellow {
  color: var(--color-primary);
  font-size: 22px;
}
.ai-result-card__group-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ai-result-card__group-row .sub-label {
  font-size: 14px;
  color: #777;
}
.ai-result-card__group-row .price-val {
  font-size: 12px;
  font-weight: 600;
  color: #777;
}
.ai-result-card__group-row .price-val.text-purple {
  font-size: 20px;
  color: #7c4dff;
}
.ai-result-card__divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}
.ai-result-card__footer {
  background: #f0f4f8;
  padding: 15px;
  border-radius: 5px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-top: 20px;
}
.ai-result-card__footer-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e4e8;
}
.ai-result-card__footer-meta p {
  font-size: 12px;
  color: #999;
}

/* === Message Box === */
.ai-message-box {
  text-align: left;
  margin-top: 30px;
  font-size: 20px;
}
.ai-message-box__text {
  font-weight: 700;
}

.mt-5 {
  margin-top: 5px;
}

.mb-5 {
  margin-bottom: 5px;
}

.text-gray {
  color: var(--color-gray);
}

.guide-text {
  font-size: 13px;
  color: var(--color-gray);
  margin: 10px 0 5px;
  line-height: 1.5;
}

.btn-submit:hover {
  background: var(--color-primary-bold);
}
.btn-submit.disabled {
  cursor: not-allowed;
}
