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

/* ============================================================
   IM Rent Car User Main CSS
============================================================ */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 전체 내부 폭 */
.user-main-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
}

/* 상단 브랜드 */
.user-main-header {
  position: absolute;
  top: 28px;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.user-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.user-brand strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #183f36;
}

.user-brand span {
  font-size: 13px;
  font-weight: 700;
  color: #172033;
}

.main_logo {
  width: 150px;
  height: auto;
  display: block;
}

/* 메인 2단 레이아웃 */
.user-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 560px);
  align-items: stretch;
  gap: 72px;

  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

/* ============================================================
   왼쪽 히어로 콘텐츠
============================================================ */

.user-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 590px;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 72px;
}

.user-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 30px;
  padding: 0 14px;
  margin: 10px 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  color: #183f36;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(23, 63, 54, 0.08);
}

.user-ready-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  margin: 0 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  color: #087443;
  background: rgba(233, 248, 241, 0.9);
  border: 1px solid rgba(72, 184, 137, 0.24);
}

.user-hero-content h1 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  color: #172033;
}

.user-hero-desc {
  max-width: 500px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #667085;
}

.user-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.user-primary-btn,
.user-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.user-secondary-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.user-primary-btn {
  color: #ffffff;
  background: #183f36;
  box-shadow: 0 16px 34px rgba(24, 63, 54, 0.22);
}

.user-primary-btn:hover {
  transform: translateY(-2px);
  background: #12342d;
  box-shadow: 0 20px 42px rgba(24, 63, 54, 0.28);
}

.user-secondary-btn {
  color: #183f36;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 63, 54, 0.12);
}

.user-secondary-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(24, 63, 54, 0.2);
}

/* ============================================================
   메인 전시차량 롤링 영역
============================================================ */

.main-display-vehicle-section {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-top: 28px;
  margin-bottom: 26px;
}

.main-display-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.main-display-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 106px;
  height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  color: #172033;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(24, 63, 54, 0.32);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.main-display-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

.main-display-tab.active {
  color: #ffffff;
  background: #48b889;
  border-color: #48b889;
  box-shadow: 0 12px 26px rgba(72, 184, 137, 0.24);
}

.main-display-control-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.main-display-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
}

.main-display-track {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-display-track::-webkit-scrollbar {
  display: none;
}

.main-display-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

.main-display-card.is-hidden {
  display: none;
}

.main-display-card-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  padding: 34px 36px 24px;
  border-radius: 22px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #55c493 0%, #43b582 48%, #35a974 100%);
  box-shadow: 0 28px 60px rgba(24, 63, 54, 0.2);
}

.main-display-card-inner::before {
  content: "";
  position: absolute;
  left: -16%;
  bottom: -28%;
  width: 74%;
  height: 58%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.main-display-card-inner::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -28%;
  width: 62%;
  height: 46%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.main-display-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 30px;
}

.main-display-badge,
.main-display-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.main-display-badge {
  color: #087443;
  background: #ffffff;
}

.main-display-brand {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-display-info {
  position: relative;
  z-index: 2;
  max-width: 84%;
}

.main-display-info h3 {
  margin: 0;
  font-size: clamp(15px, 3vw, 20px);
  line-height: 1.16;
  letter-spacing: -0.055em;
  color: #ffffff;
  font-weight: 300;
}

.main-display-trim {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.main-display-price {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.045em;
  color: #ffffff;
}

.main-display-price strong {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.main-display-condition {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
}

.main-display-image-wrap {
  position: absolute;
  z-index: 1;
  left: -22%;
  right: -18%;
  bottom: 10px;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.main-display-image {
  display: block;
  width: min(720px, 142%);
  max-width: none;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 28px 20px rgba(15, 23, 42, 0.2));
}

.main-display-image-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78%;
  height: 190px;
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.38);
}

.main-display-image-fallback i {
  font-size: 46px;
  margin-bottom: 8px;
}

.main-display-image-fallback span {
  font-size: 14px;
  font-weight: 900;
}

.main-display-action {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 24px;
}

.main-display-quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  height: 38px;
  padding: 0 20px;
  border-radius: 10px;
  color: #172033;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.72);
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.main-display-quote-link:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

/* 이전/다음 화살표 */
.main-display-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #172033;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.main-display-arrow i {
  font-size: 19px;
  line-height: 1;
}

.main-display-arrow:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.main-display-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.main-display-arrow:disabled,
.main-display-arrow[aria-disabled="true"] {
  opacity: 0;
  pointer-events: none;
}

.main-display-arrow-prev {
  left: -18px;
}

.main-display-arrow-next {
  right: -18px;
}

.main-display-control-wrap.is-single .main-display-arrow {
  opacity: 0;
  pointer-events: none;
}

.main-display-empty,
.main-display-filter-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  padding: 28px;
  border-radius: 22px;
  color: #667085;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(152, 162, 179, 0.55);
}

.main-display-filter-empty[hidden] {
  display: none;
}

.main-display-empty strong,
.main-display-filter-empty strong {
  font-size: 18px;
  font-weight: 900;
  color: #172033;
}

.main-display-empty span,
.main-display-filter-empty span {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

/* ============================================================
   오른쪽 차량 선택 콘텐츠 패널
============================================================ */

.user-car-search-panel {
  position: sticky;
  top: 0;
  align-self: stretch;

  width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;

  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 28px 32px;

  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(228, 231, 236, 0.92);
  border-right: 1px solid rgba(228, 231, 236, 0.72);
  box-shadow: 0 34px 90px rgba(23, 32, 51, 0.12);
  backdrop-filter: blur(18px);
}

.user-car-search-panel::-webkit-scrollbar {
  width: 8px;
}

.user-car-search-panel::-webkit-scrollbar-track {
  background: transparent;
}

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

.car-search-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #48b889;
}

.car-search-panel-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #172033;
}

.panel-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #087443;
  background: #e9f8f1;
  white-space: nowrap;
}

/* 브랜드 선택 */
.brand-choice-area {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.brand-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: #172033;
  background: #ffffff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.brand-choice:hover,
.brand-choice.active {
  transform: translateY(-2px);
}

.brand-choice.active {
  background: #f8fbff;
}

.brand-logo-box,
.brand-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f4f7fb;
  border: 1px solid #e4e7ec;
  overflow: hidden;
}

.brand-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: #183f36;
}

.brand-logo-img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.empty-brand-message {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 104px;
  padding: 20px;
  border-radius: 24px;
  color: #667085;
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
}

/* 검색 폼 */
.car-search-form {
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(228, 231, 236, 0.9);
}

.form-field + .form-field {
  margin-top: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #172033;
}

.form-field select,
.form-field input,
.search-row select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  outline: none;
}

.form-field select:focus,
.form-field input:focus,
.search-row select:focus {
  border-color: #2d3fb8;
  box-shadow: 0 0 0 4px rgba(45, 63, 184, 0.08);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  margin-top: 12px;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  background: #183f36;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.search-submit-btn:hover {
  transform: translateY(-1px);
  background: #12342d;
}

/* 안내 문구 */
.car-search-guide {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #667085;
  background: rgba(233, 248, 241, 0.72);
  border: 1px solid rgba(72, 184, 137, 0.18);
}

.car-search-guide strong {
  flex: 0 0 auto;
  font-weight: 900;
  color: #183f36;
}

.car-search-guide span {
  font-weight: 700;
}

/* 차량 검색 결과 요약 */
.car-result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
  color: #667085;
  background: #ffffff;
  border: 1px solid rgba(228, 231, 236, 0.9);
}

.car-result-summary strong {
  font-weight: 900;
  color: #183f36;
}

/* 차량 결과 리스트 */
.car-result-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.car-result-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  position: relative;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.055);
}

.car-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border-radius: 18px;
  overflow: hidden;
  color: #98a2b3;
  background:
    linear-gradient(135deg, #f4f7fb 0%, #edf2f7 100%);
}

.car-thumb-img {
  object-fit: cover;
}

.car-thumb span {
  font-size: 12px;
  font-weight: 900;
}

.car-info {
  min-width: 0;
  padding-right: 86px;
}

.car-brand-name {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 900;
  color: #48b889;
}

.car-info h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #172033;
}

.car-trim {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #667085;
}

.car-price {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #172033;
}

.car-price strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.car-condition {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #98a2b3;
}

.car-card-action {
  position: absolute;
  right: 16px;
  bottom: 16px;
}

.car-card-action button,
.car-quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  background: #48b889;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.car-card-action button:hover,
.car-quote-link:hover {
  transform: translateY(-1px);
  background: #36a877;
}

.empty-car-result {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px dashed #d0d5dd;
  color: #667085;
}

.empty-car-result strong {
  font-size: 16px;
  font-weight: 900;
  color: #172033;
}

.empty-car-result span {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* 차량 검색 pagination */
.car-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding: 14px 0 2px;
}

.car-page-link,
.car-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e4e7ec;
}

.car-page-link {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.car-page-link:hover {
  transform: translateY(-1px);
  color: #087443;
  background: #f0fbf6;
  border-color: rgba(72, 184, 137, 0.42);
}

.car-page-link.active {
  color: #ffffff;
  background: #183f36;
  border-color: #183f36;
}

.car-page-link.disabled {
  color: #98a2b3;
  background: #f8fafc;
  cursor: not-allowed;
  pointer-events: none;
}

.car-page-ellipsis {
  color: #98a2b3;
  background: transparent;
  border-color: transparent;
}

/* ============================================================
   상담 신청 Floating Button / Bottom Sheet
============================================================ */

.consult-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 64px;
  padding: 10px 18px 10px 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #183f36;
  box-shadow: 0 18px 44px rgba(24, 63, 54, 0.32);
  cursor: pointer;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.consult-floating-button:hover {
  transform: translateY(-3px);
  background: #12342d;
  box-shadow: 0 24px 54px rgba(24, 63, 54, 0.38);
}

.consult-floating-button.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.consult-floating-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
  color: #183f36;
  background: #ffffff;
}

.consult-floating-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.consult-floating-text strong {
  font-size: 15px;
  font-weight: 900;
}

.consult-floating-text small {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.consult-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.46);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.consult-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.consult-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1100;
  width: min(540px, calc(100% - 32px));
  max-height: 88vh;
  padding: 10px 24px 24px;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
  box-shadow: 0 -24px 64px rgba(15, 23, 42, 0.24);
  overflow-y: auto;
  transform: translate(-50%, 110%);
  transition: transform 0.28s ease;
}

.consult-sheet.is-open {
  transform: translate(-50%, 0);
}

.consult-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: #d0d5dd;
}

.consult-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.consult-sheet-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: #48b889;
}

.consult-sheet-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #172033;
}

.consult-sheet-head p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  color: #667085;
}

.consult-sheet-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #172033;
  background: #f4f7fb;
  cursor: pointer;
}

.consult-selected-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: #f0fbf6;
  border: 1px solid rgba(72, 184, 137, 0.2);
}

.consult-selected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
  color: #ffffff;
  background: #48b889;
}

.consult-selected-vehicle strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #172033;
}

.consult-selected-vehicle span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
  color: #667085;
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.consult-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 900;
  color: #172033;
}

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

.consult-field input[type="text"],
.consult-field input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  color: #172033;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  outline: none;
}

.consult-field input:focus {
  border-color: #48b889;
  box-shadow: 0 0 0 4px rgba(72, 184, 137, 0.12);
}

.consult-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.consult-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 14px 14px 42px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  cursor: pointer;
}

.consult-radio-card input {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  accent-color: #48b889;
}

.consult-radio-card:has(input:checked) {
  background: #f0fbf6;
  border-color: rgba(72, 184, 137, 0.55);
}

.consult-radio-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #172033;
}

.consult-radio-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  color: #667085;
}

.consult-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  cursor: pointer;
}

.consult-privacy input {
  margin-top: 3px;
  accent-color: #48b889;
}

.consult-privacy span {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
  color: #172033;
}

.consult-privacy small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
  color: #667085;
}

.consult-error-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffdad6;
}

.consult-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  border: 0;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  background: #183f36;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.consult-submit-button:hover {
  transform: translateY(-1px);
  background: #12342d;
}

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

.consult-success-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  color: #087443;
  background: #e9f8f1;
  border: 1px solid rgba(72, 184, 137, 0.28);
}

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

.consult-success-message strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #087443;
}

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

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

/* ============================================================
   반응형
============================================================ */

@media (max-width: 1180px) {
  .user-main-inner {
    width: 100%;
  }

  .user-main-header {
    top: 28px;
    left: 24px;
  }

  .user-main-layout {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;

    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .user-hero-content {
    width: min(100% - 48px, 760px);
    max-width: 760px;
    min-height: auto;
    margin: 0 auto;
    padding-top: 140px;
    padding-bottom: 64px;
  }

  .main-display-vehicle-section {
    max-width: 560px;
  }

  .main-display-card-inner {
    min-height: 500px;
  }

  .main-display-arrow-prev {
    left: -16px;
  }

  .main-display-arrow-next {
    right: -16px;
  }

  .user-car-search-panel {
    position: relative;
    top: auto;
    align-self: auto;

    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;

    border-radius: 32px 32px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(228, 231, 236, 0.92);
    border-bottom: 0;
  }
}

@media (max-width: 768px) {
  .user-main-inner {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .user-main-header {
    top: 22px;
    left: 16px;
  }

  .user-main-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0;
    padding-top: 0;
    overflow-x: hidden;
  }

  .main_logo {
    width: 132px;
  }

  .user-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 130px;
    padding-right: 16px;
    padding-bottom: 48px;
    padding-left: 16px;
    overflow-x: hidden;
  }

  .user-hero-content h1 {
    font-size: 40px;
  }

  .user-hero-desc {
    font-size: 16px;
  }

  .user-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .user-primary-btn,
  .user-secondary-btn {
    width: 100%;
  }

  .main-display-vehicle-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
  }

  .main-display-tabs {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
  }

  .main-display-tab {
    min-width: auto;
    flex: 0 0 auto;
  }

  .main-display-control-wrap {
    overflow: hidden;
    border-radius: 22px;
    contain: layout paint;
  }

  .main-display-viewport {
    overflow: hidden;
  }

  .main-display-track {
    overflow-x: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
  }

  .main-display-arrow {
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
  }

  .main-display-arrow:hover {
    transform: translateY(-50%) scale(1.05);
  }

  .main-display-arrow:active {
    transform: translateY(-50%) scale(0.96);
  }

  .main-display-arrow-prev {
    left: 10px;
  }

  .main-display-arrow-next {
    right: 10px;
  }

  .main-display-card {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .main-display-card-inner {
    width: 100%;
    max-width: 100%;
    min-height: 470px;
    padding: 26px 24px 22px;
  }

  .main-display-card-head {
    margin-bottom: 42px;
  }

  .main-display-info {
    max-width: 96%;
  }

  .main-display-info h3 {
    font-size: 28px;
  }

  .main-display-price strong {
    font-size: 34px;
  }

  .main-display-image-wrap {
    left: -26%;
    right: -26%;
    bottom: 82px;
    height: 220px;
  }

  .main-display-image {
    width: min(620px, 148%);
    max-height: 230px;
  }

  .main-display-action {
    left: 24px;
    right: 24px;
    bottom: 22px;
  }

  .main-display-quote-link {
    width: 100%;
  }

  .user-car-search-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding: 24px 18px 132px;
    border-radius: 28px 28px 0 0;
  }

  .car-search-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-choice-area {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .brand-choice {
    min-height: 92px;
    border-radius: 20px;
  }

  .brand-logo-box,
  .brand-logo-text {
    width: 48px;
    height: 48px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .car-result-card {
    grid-template-columns: 1fr;
  }

  .car-thumb {
    min-height: 150px;
  }

  .car-info {
    padding-right: 0;
  }

  .car-card-action {
    position: static;
    margin-top: 14px;
  }

  .car-card-action button,
  .car-quote-link {
    width: 100%;
  }

  .car-result-summary {
    font-size: 12px;
  }

  .car-pagination {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 30px;
  }

  .car-page-link,
  .car-page-ellipsis {
    flex: 0 0 auto;
  }

  .consult-floating-button {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    min-width: 0;
    width: auto;
  }

  .consult-sheet {
    left: 0;
    width: 100%;
    max-height: 90vh;
    padding: 10px 18px 22px;
    border-radius: 26px 26px 0 0;
    transform: translateY(110%);
  }

  .consult-sheet.is-open {
    transform: translateY(0);
  }

  .consult-form-grid {
    grid-template-columns: 1fr;
  }

  .consult-radio-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .main-display-card-inner {
    min-height: 430px;
    padding: 24px 20px 20px;
  }

  .main-display-card-head {
    margin-bottom: 32px;
  }

  .main-display-badge,
  .main-display-brand {
    font-size: 11px;
    min-height: 26px;
    padding: 0 9px;
  }

  .main-display-info h3 {
    font-size: 25px;
  }

  .main-display-trim {
    font-size: 13px;
  }

  .main-display-price {
    font-size: 16px;
  }

  .main-display-price strong {
    font-size: 30px;
  }

  .main-display-condition {
    font-size: 12px;
  }

  .main-display-image-wrap {
    left: -34%;
    right: -34%;
    bottom: 74px;
    height: 190px;
  }

  .main-display-image {
    width: min(560px, 158%);
    max-height: 205px;
  }

  .main-display-action {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .main-display-arrow {
    width: 36px;
    height: 36px;
  }

  .main-display-arrow-prev {
    left: 8px;
  }

  .main-display-arrow-next {
    right: 8px;
  }

  .main-display-arrow i {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .user-hero-content h1 {
    font-size: 36px;
  }

  .brand-choice-area {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
  }

  /*
    중요:
    기존에는 여기서 .brand-choice를 row 방향 + padding 15px로 변경했으나,
    4열 그리드 안에서 최소 너비를 밀어내는 원인이 될 수 있어 제거했다.
    브랜드 로고 카드는 모바일에서도 column 구조를 유지한다.
  */
  .brand-choice {
    flex-direction: column;
    justify-content: center;
    min-height: 72px;
    padding: 0;
  }

  .consult-floating-text small {
    display: none;
  }

  .main-display-card-inner {
    min-height: 410px;
  }

  .main-display-info h3 {
    font-size: 23px;
  }

  .main-display-price strong {
    font-size: 28px;
  }

  .main-display-image-wrap {
    bottom: 72px;
    height: 170px;
  }

  .main-display-image {
    max-height: 186px;
  }

  .main-display-arrow-prev {
    left: 8px;
  }

  .main-display-arrow-next {
    right: 8px;
  }
}