/* /var/www/imrentcar/app/static/css/user/vehicle_quote.css */
/* -*- coding: utf-8 -*- */

/* ============================================================
   IM Rent Car - Vehicle Quote CSS
   ------------------------------------------------------------
   역할
   - index.html과 동일한 좌/우 2단 레이아웃 기준으로 견적 선택 페이지 구성
   - 오른쪽 user-car-search-panel 내부에 차량 조건 선택 UI 출력
   - 왼쪽 안내 영역에 선택 차량/조건 미리보기 카드 출력
   - main.css의 공통 레이아웃을 유지하면서 quote 전용 요소만 보강
   - 데스크탑에서는 오른쪽 패널만 내부 스크롤되도록 제어
============================================================ */

:root {
  --quote-card: #ffffff;
  --quote-text: #172033;
  --quote-text-sub: #667085;
  --quote-muted: #98a2b3;
  --quote-border: #e4e7ec;
  --quote-border-strong: #d0d5dd;
  --quote-primary: #183f36;
  --quote-primary-hover: #12342d;
  --quote-accent: #48b889;
  --quote-accent-dark: #36a877;
  --quote-accent-soft: #e9f8f1;
  --quote-danger: #b42318;
  --quote-danger-bg: #fff1f0;
  --quote-success: #087443;
  --quote-success-bg: #e9f8f1;
  --quote-panel-shadow: 0 14px 36px rgba(23, 32, 51, 0.055);
}

/* ============================================================
   Quote Page Scroll Control
============================================================ */

html,
body {
  height: 100%;
  overflow: hidden;
}

.page-wrap {
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   Layout
============================================================ */

.quote-main-hero {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.quote-main-hero .user-main-inner {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.quote-main-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 560px);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.quote-hero-content {
  max-width: 640px;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.quote-panel {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.quote-panel::-webkit-scrollbar {
  width: 8px;
}

.quote-panel::-webkit-scrollbar-track {
  background: transparent;
}

.quote-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(152, 162, 179, 0.36);
}

.quote-panel-head {
  margin-bottom: 12px;
}

.quote-panel-desc {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--quote-text-sub);
}

.quote-warning-text {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  color: #b54708;
  background: #fffaeb;
  border: 1px solid #fedf89;
}

.quote-anchor-btn {
  text-decoration: none;
}

/* ============================================================
   Left Preview Card
============================================================ */

.quote-left-preview-card {
  width: min(100%, 520px);
  margin-top: 26px;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 63, 54, 0.1);
  box-shadow: 0 18px 46px rgba(23, 63, 54, 0.11);
  backdrop-filter: blur(14px);
}

.quote-left-vehicle-preview {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.quote-left-vehicle-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(72, 184, 137, 0.16), transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(235, 248, 241, 0.88) 100%);
  border: 1px solid rgba(72, 184, 137, 0.12);
}

.quote-left-vehicle-image img {
  display: block;
  width: 100%;
  max-height: 120px;
  padding: 8px;
  object-fit: contain;
}

.quote-left-vehicle-image span {
  color: var(--quote-muted);
  font-size: 12px;
  font-weight: 900;
}

.quote-left-vehicle-info {
  min-width: 0;
}

.quote-left-label {
  display: block;
  margin-bottom: 5px;
  color: var(--quote-accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.quote-left-brand {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 0 7px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--quote-success);
  background: rgba(233, 248, 241, 0.92);
  font-size: 11px;
  font-weight: 950;
}

.quote-left-vehicle-info strong {
  display: block;
  color: var(--quote-text);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.quote-left-vehicle-info p {
  margin: 6px 0 0;
  color: var(--quote-text-sub);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
  word-break: keep-all;
}

.quote-left-vehicle-info em {
  display: inline-flex;
  align-items: center;
  margin-top: 9px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--quote-primary);
  background: rgba(24, 63, 54, 0.07);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.quote-left-condition-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.62fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 63, 54, 0.1);
}

.quote-left-condition-preview > div {
  min-width: 0;
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(24, 63, 54, 0.08);
}

.quote-left-condition-preview strong {
  display: block;
  color: var(--quote-text);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

.quote-left-condition-preview .quote-left-price {
  color: var(--quote-primary);
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.quote-left-condition-preview p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  border-radius: 16px;
  color: rgba(24, 63, 54, 0.82);
  background: rgba(233, 248, 241, 0.72);
  border: 1px solid rgba(72, 184, 137, 0.14);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 850;
  word-break: keep-all;
}

/* ============================================================
   Vehicle Card
============================================================ */

.quote-vehicle-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: var(--quote-card);
  border: 1px solid var(--quote-border);
  box-shadow: var(--quote-panel-shadow);
}

.quote-vehicle-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 14px;
  align-items: center;
}

.quote-vehicle-info {
  min-width: 0;
}

.quote-brand-name {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--quote-accent-soft);
  color: var(--quote-success);
  font-size: 12px;
  font-weight: 900;
}

.quote-vehicle-info h2 {
  margin: 0;
  color: var(--quote-text);
  font-size: 24px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.quote-vehicle-subtitle,
.quote-vehicle-trim {
  margin: 7px 0 0;
  color: var(--quote-text-sub);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.quote-vehicle-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(72, 184, 137, 0.13), transparent 62%),
    linear-gradient(135deg, #f4f7fb 0%, #edf2f7 100%);
}

.quote-vehicle-image img {
  display: block;
  width: 100%;
  max-height: 132px;
  padding: 6px;
  object-fit: contain;
}

.quote-vehicle-image span {
  color: var(--quote-muted);
  font-size: 12px;
  font-weight: 900;
}

.quote-vehicle-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--quote-border);
}

.quote-vehicle-price-box span {
  color: var(--quote-text-sub);
  font-size: 13px;
  font-weight: 900;
}

.quote-vehicle-price-box strong {
  color: var(--quote-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ============================================================
   Options
============================================================ */

.quote-options {
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(228, 231, 236, 0.9);
}

.quote-option-group {
  margin: 0 0 20px;
}

.quote-option-group:last-child {
  margin-bottom: 0;
}

.quote-option-group h3 {
  margin: 0 0 10px;
  color: var(--quote-text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.quote-option-help {
  margin: -4px 0 10px;
  color: var(--quote-text-sub);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.quote-button-grid {
  display: grid;
  gap: 10px;
}

.quote-button-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-button-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-button-grid-payment {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-option-button {
  width: 100%;
  min-height: 52px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid var(--quote-border);
  background: #ffffff;
  color: var(--quote-text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.quote-option-button strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.quote-option-button small {
  display: block;
  margin-top: 3px;
  color: inherit;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  opacity: 0.72;
}

.quote-option-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(72, 184, 137, 0.52);
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.07);
}

.quote-option-button.is-active {
  border-color: var(--quote-accent);
  background: var(--quote-accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(72, 184, 137, 0.26);
}

.quote-option-button.is-disabled,
.quote-option-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
  background: #f2f4f7;
  transform: none;
  box-shadow: none;
}

.quote-option-group.is-none-selected .quote-rate-button:not(.is-active),
.quote-option-group[aria-disabled="true"] .quote-rate-button:not(.is-active) {
  opacity: 0.28;
}

/* ============================================================
   Summary
============================================================ */

.quote-summary-card {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, #183f36 0%, #48b889 100%);
  box-shadow: 0 16px 42px rgba(24, 63, 54, 0.22);
}

.quote-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quote-summary-row span {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.82;
}

.quote-summary-row strong {
  text-align: right;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.quote-summary-price {
  margin-top: 15px;
}

.quote-summary-price span {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.82;
}

.quote-summary-price strong {
  display: block;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.quote-summary-condition {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.quote-notice {
  margin: 0 0 16px;
  padding: 0 4px;
  color: var(--quote-text-sub);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

/* ============================================================
   Consultation Form
============================================================ */

.quote-consult-section {
  margin: 0;
}

.quote-consult-form {
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--quote-border);
  box-shadow: var(--quote-panel-shadow);
}

.quote-form-head {
  margin-bottom: 16px;
}

.quote-form-head h3 {
  margin: 0;
  color: var(--quote-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quote-form-head p {
  margin: 6px 0 0;
  color: var(--quote-text-sub);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quote-field label {
  color: var(--quote-text);
  font-size: 13px;
  font-weight: 900;
}

.quote-field label span {
  color: #ef4444;
}

.quote-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--quote-text);
  background: #ffffff;
  border: 1px solid var(--quote-border);
  outline: none;
}

.quote-field input::placeholder {
  color: var(--quote-muted);
  font-weight: 700;
}

.quote-field input:focus {
  border-color: var(--quote-accent);
  box-shadow: 0 0 0 4px rgba(72, 184, 137, 0.12);
}

.quote-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--quote-border);
  cursor: pointer;
}

.quote-privacy input {
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--quote-accent);
}

.quote-privacy span {
  color: var(--quote-text);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.quote-privacy small {
  display: block;
  margin-top: 4px;
  color: var(--quote-text-sub);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.quote-error-message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--quote-danger);
  background: var(--quote-danger-bg);
  border: 1px solid #ffdad6;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.quote-error-message[hidden] {
  display: none;
}

.quote-success-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 16px;
  color: var(--quote-success);
  background: var(--quote-success-bg);
  border: 1px solid rgba(72, 184, 137, 0.28);
}

.quote-success-message[hidden] {
  display: none;
}

.quote-success-message i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 18px;
}

.quote-success-message strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.quote-success-message span {
  display: block;
  margin-top: 4px;
  color: #246b4d;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.quote-submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  color: #ffffff;
  background: var(--quote-primary);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(24, 63, 54, 0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
}

.quote-submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--quote-primary-hover);
  box-shadow: 0 20px 42px rgba(24, 63, 54, 0.28);
}

.quote-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.quote-submit-button.is-loading {
  background: #667085;
}

.quote-submit-button.is-complete {
  background: var(--quote-success);
}

/* ============================================================
   Empty
============================================================ */

.quote-empty-card {
  padding: 28px 20px;
  border-radius: 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--quote-border-strong);
  box-shadow: var(--quote-panel-shadow);
}

.quote-empty-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--quote-danger);
  background: var(--quote-danger-bg);
  font-size: 26px;
}

.quote-empty-card h2 {
  margin: 0;
  color: var(--quote-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quote-empty-card p {
  margin: 10px 0 18px;
  color: var(--quote-text-sub);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.quote-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quote-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

/* ============================================================
   Responsive
============================================================ */

@media (max-width: 1180px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .page-wrap {
    height: auto;
    overflow: visible;
  }

  .quote-main-hero {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .quote-main-hero .user-main-inner {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .quote-main-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .quote-hero-content {
    width: min(100% - 48px, 760px);
    max-width: 760px;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .quote-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .quote-left-preview-card {
    width: min(100%, 640px);
  }
}

@media (max-width: 768px) {
  .quote-left-preview-card {
    width: 100%;
  }

  .quote-left-vehicle-preview {
    grid-template-columns: 1fr;
  }

  .quote-left-vehicle-image {
    min-height: 150px;
  }

  .quote-left-vehicle-image img {
    max-height: 180px;
  }

  .quote-left-condition-preview {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    padding: 24px 18px 40px;
  }

  .quote-vehicle-top {
    grid-template-columns: 1fr;
  }

  .quote-vehicle-image {
    min-height: 150px;
  }

  .quote-vehicle-image img {
    max-height: 180px;
  }

  .quote-button-grid-payment {
    grid-template-columns: 1fr;
  }

  .quote-summary-price strong {
    font-size: 30px;
  }
}

@media (max-width: 420px) {
  .quote-left-vehicle-info strong {
    font-size: 17px;
  }

  .quote-left-condition-preview .quote-left-price {
    font-size: 19px;
  }

  .quote-vehicle-info h2 {
    font-size: 21px;
  }

  .quote-button-grid-3 {
    gap: 8px;
  }

  .quote-option-button {
    min-height: 48px;
    font-size: 13px;
  }

  .quote-option-button small {
    font-size: 10px;
  }

  .quote-summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-summary-row strong {
    text-align: left;
  }

  .quote-summary-price strong {
    font-size: 28px;
  }
}