/* /css/car-travel-cost-calculator.css */

.travel-tool-card,
.travel-content-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.travel-tool-card {
  overflow: hidden;
}

.travel-inner {
  padding: 1.25rem 1rem 0;
}

.travel-input-area {
  padding-top: 1.25rem;
}

.travel-section-title,
.travel-content-title {
  color: #1f2937;
  font-weight: 700;
}

.travel-section-title {
  font-size: 1.125rem;
  margin-bottom: 0.85rem;
}

.travel-content-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.travel-content-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.travel-content-title i {
  color: #3b82f6;
}

.travel-lead-box,
.travel-example-box,
.travel-caution-box,
.travel-formula-box,
.travel-memo-box {
  border-radius: 0.85rem;
  padding: 1rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

.travel-lead-box {
  margin-top: 1rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #374151;
}

.travel-lead-title,
.travel-box-title,
.travel-caution-title {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.travel-example-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.travel-example-box ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.travel-note {
  color: #6b7280;
  margin-top: 0.5rem;
}

.travel-caution-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #374151;
}

.travel-form-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.travel-form-row label {
  width: 25%;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
}

.travel-input-unit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.travel-input-unit input {
  width: 100%;
  max-width: 20rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.6rem;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.travel-input-unit input:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #60a5fa;
}

.travel-input-unit span {
  color: #4b5563;
  font-size: 0.9rem;
  white-space: nowrap;
}

.travel-sample-area {
  margin-top: 0.5rem;
  padding: 0.95rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
}

.travel-sample-title {
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.travel-sample-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  font-size: 0.8rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sample-button:hover,
.sample-button.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.travel-button-area {
  padding-top: 0.85rem;
}

.travel-error {
  min-height: 1.5rem;
  color: #ef4444;
  font-size: 0.9rem;
}

.travel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.travel-main-button,
.travel-sub-button,
.travel-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.6rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.travel-main-button:active,
.travel-sub-button:active,
.travel-copy-button:active {
  transform: scale(0.98);
}

.travel-main-button {
  padding: 0.65rem 1.5rem;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.travel-main-button:hover {
  background: #2563eb;
}

.travel-sub-button {
  padding: 0.65rem 1.25rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.travel-sub-button:hover {
  background: #e5e7eb;
}

.travel-result-wrap {
  padding-bottom: 1.5rem;
}

.travel-result-empty,
.travel-result-box {
  border-radius: 0.85rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.travel-result-empty {
  min-height: 7rem;
  padding: 1.25rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.travel-result-box {
  padding: 1.25rem;
}

.travel-result-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.travel-result-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 999px;
}

.travel-result-label {
  color: #6b7280;
  font-size: 0.85rem;
}

.travel-result-main {
  color: #1f2937;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  margin-top: 0.15rem;
}

.travel-result-sub {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.travel-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.travel-result-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.95rem;
}

.travel-result-item-blue .travel-result-item-value {
  color: #2563eb;
}

.travel-result-item-label {
  color: #6b7280;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.travel-result-item-value {
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.travel-small-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.travel-memo-box {
  margin-top: 0.85rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.travel-memo-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.travel-copy-button {
  padding: 0.4rem 0.75rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.8rem;
}

.travel-copy-button:hover {
  background: #dbeafe;
}

.travel-memo-box textarea {
  width: 100%;
  min-height: 11rem;
  padding: 0.75rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.7rem;
  background: #fff;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.65;
  resize: vertical;
}

.travel-memo-box textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #93c5fd;
}

.travel-copy-status {
  min-height: 1.25rem;
  margin-top: 0.4rem;
  color: #2563eb;
  font-size: 0.82rem;
}

.travel-text,
.travel-text-area {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
}

.travel-text {
  margin-bottom: 1.25rem;
}

.travel-text-area p + p {
  margin-top: 1rem;
}

.travel-formula-box {
  margin: 1rem 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.travel-step-list {
  display: grid;
  gap: 1rem;
}

.travel-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.travel-step-number {
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #2563eb;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.1rem;
}

.travel-step h3 {
  color: #374151;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.travel-step p {
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.75;
}

.travel-faq-list {
  display: grid;
  gap: 0.75rem;
}

.travel-faq-list details {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
}

.travel-faq-list summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  background: #f9fafb;
  color: #1f2937;
  font-weight: 700;
  transition: background 0.15s ease;
}

.travel-faq-list summary:hover {
  background: #f3f4f6;
}

.travel-faq-list details > div {
  padding: 0.9rem 1rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.75;
}

.travel-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.travel-related-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.travel-related-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.travel-related-icon {
  color: #3b82f6;
  padding-top: 0.1rem;
}

.travel-related-title {
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 700;
}

.travel-related-text {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.2rem;
}

@media (min-width: 640px) {
  .travel-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .travel-content-card {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .travel-form-row {
    display: block;
  }

  .travel-form-row label {
    display: block;
    width: auto;
    margin-bottom: 0.4rem;
  }

  .travel-input-unit input {
    max-width: none;
  }

  .travel-result-grid,
  .travel-related-grid {
    grid-template-columns: 1fr;
  }

  .travel-result-main {
    font-size: 1.75rem;
  }

  .travel-memo-head {
    align-items: flex-start;
    flex-direction: column;
  }
}