@charset "UTF-8";

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

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

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

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

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

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

.vat-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);
}

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

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

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

.vat-card,
.vat-result-card,
.vat-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);
}

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

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

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

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

.vat-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  margin-bottom: 26px;
}

.vat-field {
  min-width: 0;
}

.vat-page .utility-field-label {
  display: block;
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.vat-page .utility-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  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;
}

.vat-page .utility-input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

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

.vat-type-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.vat-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.vat-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vat-radio:hover {
  border-color: rgba(236, 72, 153, 0.28);
  background: #fdf2f8;
}

.vat-radio input {
  flex: 0 0 auto;
  margin: 0;
}

.vat-radio span {
  display: inline-block;
  padding-top: 1px;
}

.vat-rate-panel {
  margin-bottom: 26px;
  padding: 24px 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf2f8 100%);
}

.vat-panel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.vat-panel-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.vat-panel-head span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.vat-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vat-quick-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vat-quick-btn:hover {
  border-color: rgba(236, 72, 153, 0.28);
  background: #fdf2f8;
  color: #be185d;
  transform: translateY(-1px);
}

.vat-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

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

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

.vat-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(168, 85, 247, 0.22);
}

.vat-message-box {
  margin-top: 0;
  padding: 20px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  color: #be185d;
  font-size: 14px;
  line-height: 1.8;
}

.vat-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

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

.vat-result-total {
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  border-color: rgba(236, 72, 153, 0.2);
}

.vat-result-label {
  display: block;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.vat-result-item strong {
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.35;
  word-break: break-all;
}

.vat-summary {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
  color: #9d174d;
  font-size: 14px;
  line-height: 1.8;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .vat-form-grid,
  .vat-type-group,
  .vat-rate-panel {
    margin-bottom: 22px;
  }

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

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

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

  .vat-rate-panel {
    padding: 20px 18px;
  }

  .vat-quick-btn,
  .vat-radio {
    width: 100%;
    justify-content: center;
  }

  .vat-result-item strong {
    font-size: 26px;
  }
}