/* Carping1 Style Estimate Calculator Styling */

.title {
  margin: 40px auto 30px;
  text-align: center;
}
.title h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1b2d72;
  margin-bottom: 10px;
}
.title p {
  color: #64748b;
  font-size: 20px;
}

.est-top-btnbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.est-top-btnbox button {
  width: 130px;
  height: 130px;
  font-weight: 800;
  font-size: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s;
}

.est-top-btnbox button.on {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: transparent;
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
}

.est-cont {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.est-brand-select {
  width: 100%;
}

.est-cont-title {
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 26px;
  color: #1e293b;
}

.est-cont-tab {
  display: flex;
  margin-bottom: 15px;
  width: 100%;
  max-width: 300px;
}

.est-cont-tab button {
  flex: 1;
  height: 55px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.est-cont-tab button.on {
  color: #fff;
  background: #0284c7;
  border-color: #0284c7;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.brand-grid li {
  width: 100%;
}

.brand-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 110px;
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.brand-grid button:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
  color: #0ea5e9;
}

.brand-grid li.on button {
  border: 2px solid #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}

.brand-grid button .icon-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-grid button:hover .icon-logo img {
  transform: scale(1.05);
}

/* Foreign brands container height restriction (two rows) and scrollbar */
.brand-grid.foreign-brands-list {
  max-height: 245px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 8px 8px 4px;
  align-content: start;
}

.brand-grid.foreign-brands-list::-webkit-scrollbar {
  width: 6px;
}

.brand-grid.foreign-brands-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.brand-grid.foreign-brands-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
  transition: background 0.2s;
}

.brand-grid.foreign-brands-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.ecl-btn-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecl-btn-box li {
  width: 100%;
}

.ecl-btn-box button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 20px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.ecl-btn-box button:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.ecl-btn-box li.on button {
  border: 2px solid #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}

.ecl-btn-box button .icon-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.est-result {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04);
}

#infoTitle {
  font-weight: 800;
  font-size: 1.35rem;
  color: #1e293b;
  margin-bottom: 10px;
  white-space: pre-line;
}

.est-result span {
  display: block;
  font-size: 18px;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.7;
}

.est-result span span {
  display: inline !important;
  white-space: nowrap;
}

.est-result span strong {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  color: #0284c7;
  white-space: nowrap;
  margin-top: 5px;
}

.est-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.est-result-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.2s;
}

.est-result-list li:first-child a {
  background: #0284c7;
  color: #ffffff;
}

.est-result-list li:first-child a:hover {
  background: #025a87;
}

.est-result-list li:last-child a {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.est-result-list li:last-child a:hover {
  background: #f1f5f9;
}

/* Right Section */
.est-cont-right {
  flex: 1;
}

.est-tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.est-tab-list > li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.list-front {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: background 0.2s;
}

.list-front:hover {
  background: #f8fafc;
}

.list-front .est-cont-title {
  margin-bottom: 0;
  font-size: 26px;
}

.list-front .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #64748b;
  transition: transform 0.2s;
}

.list-content {
  display: none;
  padding: 0 25px 25px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.list-content-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding-top: 20px;
}

/* Items inside selectors */
.list-content .item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.list-content .item:hover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.list-content .item.on {
  border-color: #0284c7;
  background: #f0f9ff;
  font-weight: 700;
}

.list-content .imgbox {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
}

.list-content .imgbox img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.list-content span.item-name {
  font-size: 18px;
  color: #333;
}

/* Color chip selections */
.color-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  padding-top: 20px;
}

.color-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.color-item.on {
  border-color: #0284c7;
  background: #f0f9ff;
}

.color-chip {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

/* Options */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.opt-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.opt-item-row.on {
  border-color: #0284c7;
  background: #f0f9ff;
}

.opt-item-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Contract settings grid */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 20px;
}

.sel7-period-box {
  display: flex;
  gap: 20px;
}

.sel7-period-box > div {
  flex: 1;
}

.contract-title {
  font-weight: 700;
  font-size: 24px;
  color: #64748b;
  margin-bottom: 10px;
}

.slt-box select {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
  background-color: #fff;
  cursor: pointer;
}

.sel7-price-box {
  border-top: 1px solid #f1f5f9;
  padding-top: 25px;
}

.price-common-cont {
  margin-bottom: 25px;
}

.deposit-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.deposit-box-top strong {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
}

.deposit-box-bottom {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 30px 25px;
  background: #f8fafc;
}

.range-box {
  position: relative;
  margin-bottom: 20px;
}

.balloon-txt {
  position: absolute;
  top: -38px;
  transform: translateX(-50%);
  background: #0284c7;
  color: #fff;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.balloon-txt::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -4px;
  border-width: 6px 4px 0;
  border-style: solid;
  border-color: #0284c7 transparent;
}

.range-item {
  width: 100%;
  height: 8px;
  background: #cbd5e1;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.range-item::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.perent-item {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.perent-item p {
  font-size: 16px;
  color: #94a3b8;
}

.deposit-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 2px solid #cbd5e1;
  padding-bottom: 5px;
  max-width: 300px;
  margin-left: auto;
}

.ebinput {
  border: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 800;
  text-align: right;
  width: 80%;
  outline: none;
}

.deposit-price span {
  font-size: 20px;
  font-weight: 700;
  color: #475569;
  margin-left: 5px;
}

/* Insurance/Liability selection */
.tab-ui {
  display: flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.tab-ui button {
  flex: 1;
  height: 44px;
  border: 0;
  background: #ffffff;
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid #cbd5e1;
}

.tab-ui button:last-child {
  border-right: 0;
}

.tab-ui button.on {
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 800;
}

.sel-pack {
  display: flex;
  flex-direction: column;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 20px;
}

.sel-pack-flexbox {
  display: flex;
  gap: 20px;
}

.sel-pack-flexbox > div {
  flex: 1;
}

/* Consign box destinations */
.consign-box {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 20px;
}

.consign-box button {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.consign-box li.active button {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}

/* Responsive GNB and menus */
@media (max-width: 1024px) {
  .est-cont {
    flex-direction: column;
    gap: 30px;
  }
  .est-cont-left {
    width: 100%;
    position: static;
  }
  .est-cont-right {
    width: 100%;
  }
  .consign-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Modal overlay */
.modal_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal_content_v2 {
  background: #fff;
  width: 90%;
  max-width: 440px;
  border-radius: 20px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal_close_btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: 0;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.modal_header_v2 {
  text-align: center;
  margin-bottom: 25px;
}

.modal_header_v2 h3 {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
}

.modal_header_v2 p {
  font-size: 18px;
  color: #64748b;
  margin-top: 8px;
  line-height: 1.5;
}

.form_group {
  margin-bottom: 18px;
}

.form_group label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.form_group input {
  width: 100%;
  height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
}

.form_group input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.agree_check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 20px;
  cursor: pointer;
}

.btn_submit_request {
  width: 100%;
  height: 52px;
  background: #0284c7;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.btn_submit_request:hover {
  background: #025a87;
}

/* Bottom Result Dashboard */
.est-result-bottom {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  width: 100%;
  box-sizing: border-box;
}

.est-result-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.est-result-bottom .car-info {
  flex: 1.5;
  min-width: 250px;
}

.est-result-bottom #infoTitle {
  font-weight: 800;
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 8px;
  white-space: pre-line;
  line-height: 1.3;
}

.est-result-bottom .price-details {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
}

.est-result-bottom .price-details span {
  font-weight: 600;
  color: #475569;
}

.est-result-bottom .total-info {
  flex: 2;
  display: flex;
  gap: 40px;
  justify-content: flex-end;
  min-width: 300px;
}

.est-result-bottom .total-price-box,
.est-result-bottom .monthly-payment-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.est-result-bottom .lbl {
  font-size: 15px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 5px;
}

.est-result-bottom .total-price-box strong {
  font-size: 26px;
  font-weight: 800;
  color: #475569;
}

.est-result-bottom .monthly-payment-box strong {
  font-size: 34px;
  font-weight: 900;
  color: #0284c7;
}

.est-result-bottom .request-btn-box {
  flex: 1;
  min-width: 200px;
}

.est-result-bottom .btn-request-estimate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.est-result-bottom .btn-request-estimate:hover {
  background: linear-gradient(135deg, #0284c7 0%, #025a87 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .est-result-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .est-result-bottom .total-info {
    justify-content: space-between;
    min-width: 100%;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    gap: 15px;
  }
  .est-result-bottom .total-price-box,
  .est-result-bottom .monthly-payment-box {
    align-items: flex-start;
  }
  .est-result-bottom .total-info .lbl {
    align-self: flex-start;
  }
  .est-result-bottom .request-btn-box {
    width: 100%;
  }
}
