@charset "UTF-8";

.loan-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 0 42px;
}

.loan-page .utility-top {
  padding: 34px 20px 30px;
  text-align: center;
}

.loan-page .utility-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcfce7, #eff6ff);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.loan-page .utility-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.loan-page .utility-desc {
  max-width: 860px;
  margin: 18px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.loan-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.loan-summary-guide-item {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.loan-summary-guide-item::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #2563eb);
}

.loan-summary-guide-item strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.loan-summary-guide-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.loan-card,
.loan-result-card,
.loan-info-card {
  margin-bottom: 24px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.loan-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.loan-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.loan-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.loan-status-badge,
.loan-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dcfce7, #eff6ff);
  color: #166534;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.loan-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.loan-field-full {
  grid-column: 1 / -1;
}

.loan-page .utility-field-label {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.loan-page .utility-input,
.loan-page .utility-textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loan-page .utility-input {
  min-height: 52px;
  padding: 0 16px;
}

.loan-page .utility-input:focus,
.loan-page .utility-textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.loan-page .utility-input::placeholder {
  color: #94a3b8;
}

.loan-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.loan-quick-btn,
.loan-table-action-btn {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loan-quick-btn:hover,
.loan-table-action-btn:hover {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.3);
  color: #166534;
  transform: translateY(-1px);
}

.loan-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.loan-page .utility-btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
}

.loan-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #166534);
  color: #ffffff;
}

.loan-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 101, 52, 0.24);
}

.loan-message-box {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  color: #166534;
  line-height: 1.8;
}

.loan-result-box {
  min-height: 220px;
}

.loan-result-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.loan-result-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ecfdf5, #dbeafe);
  color: #166534;
  font-size: 28px;
  font-weight: 900;
}

.loan-result-placeholder p,
.loan-result-message {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.loan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.loan-summary-item {
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fafc, #f0fdf4);
}

.loan-summary-label {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.loan-summary-value {
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.loan-subinfo {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: #ffffff;
}

.loan-subinfo-title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.loan-subinfo-list {
  display: grid;
  gap: 12px;
}

.loan-subinfo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.loan-subinfo-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.loan-subinfo-label {
  color: #64748b;
  font-size: 14px;
}

.loan-subinfo-value {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.loan-table-wrap {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: #ffffff;
}

.loan-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: #f8fafc;
}

.loan-table-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loan-table-title {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.loan-table-caption {
  color: #64748b;
  font-size: 13px;
}

.loan-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.loan-table-scroll {
  overflow-x: auto;
}

.loan-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.loan-table th,
.loan-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: right;
  font-size: 14px;
  color: #334155;
  white-space: nowrap;
}

.loan-table th {
  background: #fcfdff;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.loan-table th:first-child,
.loan-table td:first-child {
  text-align: center;
}

.loan-table tbody tr:hover {
  background: #f8fafc;
}

.loan-table-note {
  padding: 16px 22px;
  background: #ffffff;
  color: #64748b;
  font-size: 13px;
}

.loan-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.loan-compare-item {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.loan-compare-item strong {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.loan-compare-item p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.loan-page .help-panel {
  margin-top: 30px;
}

.loan-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.loan-page .help-box {
  border-radius: 24px;
}

.loan-page .help-toggle-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.loan-page .help-toggle-box summary::-webkit-details-marker {
  display: none;
}

.loan-page .help-toggle-box summary::after {
  content: "+";
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 700;
}

.loan-page .help-toggle-box[open] summary::after {
  content: "−";
}

.loan-page .help-toggle-content {
  margin-top: 14px;
}

.loan-page .help-toggle-content p {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

@media (max-width: 1080px) {
  .loan-summary-card,
  .loan-summary,
  .loan-compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .loan-form-grid {
    grid-template-columns: 1fr;
  }

  .loan-field-full {
    grid-column: auto;
  }

  .loan-card-head {
    grid-template-columns: 1fr;
  }

  .loan-table-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .loan-page {
    padding: 0 0 28px;
  }

  .loan-page .utility-top {
    padding: 26px 14px 24px;
  }

  .loan-page .utility-title {
    font-size: 34px;
  }

  .loan-card,
  .loan-result-card,
  .loan-info-card {
    padding: 22px;
    border-radius: 22px;
  }

  .loan-btn-row {
    flex-direction: column;
  }

  .loan-btn-row .utility-btn {
    width: 100%;
  }

  .loan-summary-value {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .loan-card,
  .loan-result-card,
  .loan-info-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .loan-result-box {
    min-height: 180px;
  }

  .loan-subinfo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .loan-subinfo-value {
    text-align: left;
  }

  .loan-quick-btn,
  .loan-table-action-btn {
    width: 100%;
    justify-content: center;
  }
}