@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --header-h: 88px;
  --color-brand-red: #E12328;
  --color-brand-red-hover: #C01B20;
  --color-brand-red-light: #FFF1F1;
  --color-brand-red-border: #F5C2C4;

  --color-primary-black: #1D1E21;
  --color-sub-black: #4A5565;
  --color-gray: #999A9B;
  --color-gray-disabled: #D6D7D7;
  --color-black-disabled: #A5A5A6;
  --color-line: #E1E2E9;
  --color-surface: #FBFBFC;
  --color-surface-hover: #F2F2F2;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;
}

html, body {
  overflow-x: hidden;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--color-primary-black);
  background-color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ul, li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.line {
  width: 100%;
  border-bottom: 1px solid #E1E2E9;
}

/* Header (Carmeolap Exact) */
.section-header {
  min-height: 88px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.header-logo .logo-svg {
  width: 236px;
  max-width: 100%;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-admin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-admin-link:hover {
  color: var(--color-primary-black);
  background: var(--color-surface);
}

.header-call {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-black);
  padding: 8px 14px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-surface);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.header-call:hover {
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
  background: var(--color-brand-red-light);
}

/* Main Section (Carmeolap Exact) */
.section-main {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.main-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
  padding: 24px 36px;
  gap: 24px;
}

.main-wrapper-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 2;
  gap: 12px;
  min-width: 0;
}

.main-wrapper-right {
  width: 360px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 310px;
}

/* Slide Container (Carmeolap 743/418) */
.slide-container {
  position: relative;
  width: 100%;
  aspect-ratio: 743 / 418;
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-y;
  background-color: #16181D;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.slide-bg-1 {
  background: radial-gradient(circle at 80% 30%, rgba(225, 35, 40, 0.28), transparent 55%),
              linear-gradient(135deg, #16181D 0%, #242730 100%);
}

.slide-bg-2 {
  background: radial-gradient(circle at 85% 25%, rgba(225, 35, 40, 0.22), transparent 50%),
              linear-gradient(135deg, #1B1C20 0%, #2B2D35 100%);
}

.slide-bg-3 {
  background: radial-gradient(circle at 75% 35%, rgba(225, 35, 40, 0.25), transparent 55%),
              linear-gradient(135deg, #121316 0%, #22252C 100%);
}

.slide-visual {
  position: absolute;
  right: 36px;
  top: 46%;
  transform: translateY(-50%);
  opacity: 0.92;
  pointer-events: none;
}

.slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 1;
  pointer-events: none;
}

.caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding: 0 30px 30px;
  color: #fff;
  z-index: 2;
  max-width: 72%;
}

.caption h3 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.caption span {
  font-size: 15px;
  color: #D6D7D7;
}

.controls {
  position: absolute;
  bottom: 26px;
  right: 26px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  z-index: 10;
}

.controls button {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.slide-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
}

.slide-dot.active {
  width: 14px;
  border-radius: 999px;
  background: var(--color-brand-red);
}

/* Title & Business Card 8 Icons */
.title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-primary-black);
  line-height: 1.4;
}

.card-icons-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.icon-chip {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-sub-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-chip:hover,
.icon-chip.active {
  border-color: var(--color-brand-red);
  background: var(--color-brand-red-light);
  color: var(--color-brand-red);
}

/* 3-Column CS Wrapper (Exact Carmeolap) */
.cs-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.cs-wrapper-first {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-wrapper-second,
.cs-wrapper-third {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-item {
  height: 100%;
  border: 1px solid #E1E2E9;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.justify-content-between {
  justify-content: space-between;
}

.cs-title {
  width: 100%;
  min-height: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-inline-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-primary-black);
}

.copy-inline-btn:hover {
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
}

.cs-content {
  width: 100%;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-black);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.cs-content a:hover {
  color: var(--color-brand-red);
}

.cs-worktime {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-black);
  line-height: 1.65;
}

.cs-location {
  font-size: 14px;
  font-weight: 500;
  color: #999A9B;
  margin-right: 4px;
}

.cs-phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary-black);
}

.map-links-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-red);
}

.map-links-inline a:hover {
  text-decoration: underline;
}

/* Right Reservation Panel (Borderless Carmeolap Style) */
.reservation-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-black);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
}

.reservation-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.dropdown-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown {
  position: relative;
}

.dropdown-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  padding: 16px;
  border: 1px solid #E1E2E9;
  border-radius: 6px;
  background-color: #FBFBFC;
  transition: all 0.2s ease;
}

.dropdown-button.selected {
  border-color: var(--color-brand-red);
}

.dropdown-title {
  color: var(--color-primary-black);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-button .selected-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-button .selected-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dropdown-button .selected-text {
  color: var(--color-brand-red);
  font-weight: 600;
  font-size: 14px;
}

.dropdown-button .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  color: var(--color-primary-black);
}

.dropdown-button[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

.collapse {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  max-height: 260px;
  overflow-y: auto;
  align-content: flex-start;
  justify-content: flex-start;
  scrollbar-width: none;
}

.collapse::-webkit-scrollbar {
  display: none;
}

.collapse.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  color: var(--color-primary-black);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

#car_maker .dropdown-item {
  flex: 1 1 calc(20% - 8px);
  max-width: calc(20% - 8px);
  height: 92px;
  gap: 6px;
  padding: 10px 4px;
  border: none;
}

#car_maker .maker-logo {
  width: 40px;
  height: 32px;
  object-fit: contain;
  display: block;
}

#car_maker .dropdown-item:hover {
  background-color: var(--color-brand-red-light);
  border-radius: 8px;
}

#car_maker .dropdown-item.active {
  background-color: #F2F2F2;
  border-radius: 8px;
  font-weight: 700;
}

#car_maker .dropdown-item.active .maker-badge {
  background-color: var(--color-brand-red);
  color: #fff;
}

#car_kind .dropdown-item {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
  height: 40px;
  padding: 0 8px;
}

#car_year .dropdown-item {
  flex: 1 1 calc(25% - 8px);
  max-width: calc(25% - 8px);
  height: 40px;
  padding: 0 6px;
}

#car_model .dropdown-item {
  flex: 1 1 100%;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 12px;
}

#car_kind .dropdown-item:hover,
#car_year .dropdown-item:hover,
#car_model .dropdown-item:hover {
  background-color: var(--color-brand-red-light);
}

#car_kind .dropdown-item.active,
#car_year .dropdown-item.active,
#car_model .dropdown-item.active {
  background-color: var(--color-brand-red);
  border-color: var(--color-brand-red);
  color: #fff;
  font-weight: 600;
}

.next-button {
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background-color: #A5A5A6;
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
}

.next-button.completed {
  background-color: var(--color-brand-red);
}

.next-button.completed:hover {
  background-color: var(--color-brand-red-hover);
}

/* Footer (Carmeolap Exact) */
.section-footer {
  padding: 24px 36px;
}

.footer-info {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  color: #999A9B;
  gap: 48px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  color: #999A9B;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-links a:hover {
  color: var(--color-primary-black);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 16px;
}

.modal-header h4 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-gray);
}

.selected-vehicle-pill {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-sub-black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-brand-red);
}

.modal-submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--color-brand-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-top: 6px;
}

.modal-submit-btn:hover {
  background: var(--color-brand-red-hover);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-primary-black);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive: PC 4종 (1920, 1440, 1280, 1024) & Mobile 4종 (430, 390, 375, 320) */
@media (max-width: 1280px) {
  .section-header,
  .main-wrapper,
  .section-footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .caption h3 {
    font-size: 26px;
  }
  .main-title {
    font-size: 24px;
  }
}

@media (max-width: 1120px) {
  .cs-wrapper {
    flex-wrap: wrap;
  }
  .cs-wrapper-first,
  .cs-wrapper-second,
  .cs-wrapper-third {
    flex: 1 1 calc(50% - 6px);
    min-width: 210px;
  }
}

@media (max-width: 960px) {
  .main-wrapper {
    flex-direction: column;
  }
  .main-wrapper-left,
  .main-wrapper-right {
    width: 100%;
    min-width: 0;
  }
  .cs-wrapper-first,
  .cs-wrapper-second,
  .cs-wrapper-third {
    flex: 1 1 0;
    min-width: 0;
  }
  .footer-info {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 720px) {
  .section-header,
  .main-wrapper,
  .section-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .section-header {
    min-height: 70px;
  }
  .header-logo .logo-svg {
    width: 184px;
  }
  .header-admin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-admin-link:hover {
  color: var(--color-primary-black);
  background: var(--color-surface);
}

.header-call {
    font-size: 13px;
    padding: 7px 10px;
  }
  .slide-container {
    aspect-ratio: auto;
    min-height: 245px;
  }
  .slide {
    min-height: 245px;
  }
  .slide-visual {
    display: none;
  }
  .caption {
    max-width: 100%;
    padding: 24px 20px 64px;
  }
  .caption h3 {
    font-size: 22px;
  }
  .caption span {
    font-size: 14px;
  }
  .controls {
    bottom: 16px;
    right: 16px;
  }
  .main-title {
    font-size: 21px;
  }
  .cs-wrapper {
    flex-direction: column;
  }
  #car_maker .dropdown-item {
    flex: 1 1 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
}

@media (max-width: 480px) {
  .section-header,
  .main-wrapper,
  .section-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-logo .logo-svg {
    width: 162px;
  }
  .header-admin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-admin-link:hover {
  color: var(--color-primary-black);
  background: var(--color-surface);
}

.header-call {
    font-size: 12px;
    padding: 6px 9px;
  }
  #car_year .dropdown-item {
    flex: 1 1 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 360px) {
  .section-header,
  .main-wrapper,
  .section-footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-logo .logo-svg {
    width: 140px;
  }
  .header-admin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray);
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-admin-link:hover {
  color: var(--color-primary-black);
  background: var(--color-surface);
}

.header-call {
    font-size: 11px;
    padding: 5px 8px;
  }
  .caption h3 {
    font-size: 19px;
  }
  .caption span {
    font-size: 13px;
  }
  .main-title {
    font-size: 19px;
  }
  .cs-content {
    font-size: 16px;
  }
  #car_kind .dropdown-item,
  #service_type .dropdown-item {
    font-size: 12px;
  }
}
