* {
  box-sizing: border-box !important;
}

/* BPKB Radio Field */
.bpkb-field-wrapper-article {
  width: 100%;
  /* margin-top: 16px; */
}

.bpkb-label-article {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  /* margin-bottom: 8px; */
  display: block;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (min-width: 1200px) {
  /* .bpkb-field-wrapper-article {
    margin-bottom: 24px !important;
  } */

  .bpkb-label-article {
    font-size: 14px !important;
    line-height: 20px !important;
    color: #ffffff !important;
    margin-bottom: 0px !important;
  }
}

.bpkb-radio-group-article {
  display: flex !important;
  gap: 32px !important;
  margin-top: 8px !important;
  flex-wrap: wrap !important;
}

.bpkb-radio-option-article {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.bpkb-radio-option-article input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  accent-color: #05256e !important;
}

.bpkb-radio-option-article label {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #13131b;
  cursor: pointer;
  line-height: 20px;
}

.bpkb-motor-warning-article {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px !important;
  background-color: #fbeaea !important;
  border: 1px solid #d83130 !important;
  border-radius: 4px !important;
}

.bpkb-motor-warning-article svg {
  flex-shrink: 0;
}

.bpkb-motor-warning-article span {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 16px;
  color: #13131b;
}

.bpkb-motor-warning-article strong {
  font-weight: 700;
}

.leads-input-container {
  display: flex;
  flex-direction: column;
}

/* Desktop Layout - 2 Columns */
.leads-form-article-section {
  background: #246ed4;
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.leads-container {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px !important;
}

.leads-illustration {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 64px;
}

.leads-illustration-text {
  text-align: center;
}

.leads-illustration h3 {
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 48px;
  color: #ffffff;
  margin: 0;
  margin-bottom: 8px;
  text-transform: none !important;
}

@media (min-width: 1200px) {
  .leads-illustration p:not(.leads-partnership-text) {
    width: 320px;
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.leads-illustration p:not(.leads-partnership-text) {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px;
  font-weight: 400 !important;
  line-height: 18px;
  color: #ffffff !important;
  margin: 0 auto !important;
}

.leads-partnership-text {
  font-size: 12px !important;
  line-height: 18px !important;
  color: #ffffff !important;
  font-family: "Open Sans", sans-serif !important;
  margin-bottom: 0px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;

  @media (min-width: 1200px) {
    font-size: 14px !important;
    line-height: 20px !important;
    margin-top: 8px !important;
    justify-content: center !important;
  }
}

.leads-partnership-text img {
  display: inline-block !important;
}

.leads-illustration img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.leads-form-wrapper {
  padding: 0px;
}

.input-container {
  width: 100%;
}
@media (min-width: 1200px) {
  .input-container {
    width: 100%;
    margin-bottom: 24px;
  }
}

.input-container p,
.label-hp {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.input-container > input,
.input-container input[type="text"]:not(.location-search-input) {
  width: 100% !important;
  height: 48px !important;
  border: 1px solid #ebecee !important;
  border-radius: 8px !important;
  /* padding: 0 16px; */
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  color: #13131b !important;
  background-color: white !important;
  padding: 12px 16px !important;

  @media (min-width: 1200px) {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.input-container > input::placeholder,
.input-container input[type="text"]:not(.location-search-input)::placeholder {
  color: #afb3ba !important;
  opacity: 1 !important;
}

.input-container > input:disabled,
.input-container input[type="text"]:not(.location-search-input):disabled {
  background-color: rgb(235, 236, 238) !important;
  color: #afb3ba !important;
  cursor: not-allowed !important;
}

#textCityRef::placeholder {
  color: #afb3ba !important;
  opacity: 1 !important;
}

#textCityRefV2::placeholder {
  color: #afb3ba !important;
  opacity: 1 !important;
}

.input-container > input:focus,
.input-container input[type="text"]:not(.location-search-input):focus {
  outline: none;
  border-color: #246ed4;
}

.number-container:focus-within {
  border-color: #246ed4 !important;
}

.number-container:has(input:disabled) {
  background-color: rgb(235, 236, 238) !important;
  cursor: not-allowed !important;
}

.number-container:has(input:disabled) p {
  color: #afb3ba !important;
}

.number-container input:disabled {
  background-color: rgb(235, 236, 238) !important;
  color: #afb3ba !important;
  cursor: not-allowed !important;
}

.number-container {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #ebecee;
  border-radius: 8px;
  padding: 12px 16px;
  gap: 8px;
  width: 100% !important;
  background-color: white !important;
}

.number-container p {
  margin: 0;
  color: #13131b !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  @media (min-width: 1200px) {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.number-container input[type="tel"] {
  border: none !important;
  outline: none !important;
  flex: 1 !important;
  height: 100% !important;
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  color: #13131b !important;
  min-width: 0 !important;
  padding-left: 0px !important;
  padding: 0 !important;
  background-color: transparent !important;
  border-radius: 0px !important;

  @media (min-width: 1200px) {
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.number-container input[type="tel"]:disabled {
  color: #afb3ba !important;
  -webkit-text-fill-color: #afb3ba !important;
}

.number-container input[type="tel"]::placeholder {
  color: #afb3ba !important;
  opacity: 1 !important;
}

.separator.number {
  width: 1px;
  height: 24px;
  background: #ebecee;
}

.button-container {
  width: 100%;
}

.button-container button {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #05256e;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 16px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0px;

  @media (min-width: 1200px) {
    margin-top: 24px !important;
    font-size: 16px !important;
    line-height: 24px !important;
  }
}

.button-container button:hover:not(:disabled) {
  background: #1a5bac;
}

.button-container button:disabled {
  background: #cdd0d4;
  cursor: not-allowed;
}

.button-container button .button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin-button 0.6s linear infinite;
  margin: 0 auto;
}

.button-container button.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.button-container button.loading .button-text {
  display: none;
}

.button-container button.loading .button-spinner {
  display: block;
}

@keyframes spin-button {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message-lead {
  display: none;
  color: #ff3b30;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  margin-top: 8px;
}

.customer-consent-content-article {
  margin-top: 16px;

  @media (min-width: 1200px) {
    margin-top: 24px;
  }
}

.marketing-consent-article,
.customer-consent-content-article {
  display: flex;
  align-items: start;
  gap: 8px;
}

.marketing-consent-article label,
.customer-consent-content-article label {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  line-height: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (min-width: 1200px) {
  .marketing-consent-article label,
  .customer-consent-content-article label {
    font-size: 14px !important;
    line-height: 20px !important;
    color: #ffffff !important;
  }
}

.customer-consent-content-article label a {
  color: #246ed4;
  text-decoration: none;
}

@media (min-width: 1200px) {
  .customer-consent-content-article label a {
    font-color: #ffffff !important;
    font-weight: 600 !important;
  }
}

.customer-consent-content-article label a:hover {
  text-decoration: underline;
}

.marketing-consent-article input[type="checkbox"],
.customer-consent-content-article input[type="checkbox"] {
  margin-top: 2px !important;
  cursor: pointer !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  accent-color: #05256e !important;
  padding: 0px !important;
}

.marketing-consent-article input[type="checkbox"]:disabled,
.customer-consent-content-article input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  accent-color: #cdd0d4;
}

.number-container.error-border {
  border-color: #ff3b30;
}

/* Desktop Responsive */
@media (min-width: 1200px) {
  .input-container p,
  .label-hp {
    font-size: 14px;
    color: #ffffff;
    line-height: 20px;
  }
}

/* Mobile Responsive */
@media (max-width: 1199px) {
  .leads-form-article-section {
    padding: 16px;
    border-radius: 0;
    width: 100vw;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .leads-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .leads-illustration h3 {
    font-size: 20px !important;
    line-height: 28px !important;
    margin-bottom: 0px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .leads-illustration img {
    display: none;
  }

  .leads-form-wrapper {
    border-radius: 8px;
    overflow: hidden;
  }

  .leads-illustration-text {
    text-align: start;
  }

  .bpkb-radio-option-article label {
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    color: #ffffff;
    cursor: pointer;
    line-height: 18px;
  }
}

.location-body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #333;
  display: flex;
  justify-content: center;
}

.location-container {
  width: 100%;
}

.location-form-group {
  position: relative;
  width: 100%;
  /* margin-bottom: 20px; */
}

.location-label {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-bottom: 8px !important;
  display: block !important;
  color: #ffffff !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.location-dropdown-field {
  width: 100%;
  background-color: white;
  color: #333;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #ebecee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
  height: 48px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  overflow: hidden;
  min-width: 0;
}

.location-dropdown-field span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  color: #b5b3b3;
}

.location-dropdown-field:hover {
  border-color: #007aff;
}

.location-dropdown-field.active {
  border-color: #007aff;
}

.location-dropdown-field.has-value span {
  color: #333;
}

.location-dropdown-field.is-disabled {
  background-color: rgb(235, 236, 238) !important;
  color: #afb3ba !important;
}

.location-dropdown-field.is-disabled span,
.location-dropdown-field.is-disabled.has-value span,
.location-dropdown-field.is-disabled .location-arrow {
  color: #afb3ba !important;
  border-color: #afb3ba !important;
}

/* Overlay popup - Center dengan max width */
.location-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  height: 100%;
  max-width: 570px;
  background: white;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px 8px 0 0;
}

.location-dropdown-overlay.active {
  transform: translateX(-50%) translateY(0);
}

.location-dropdown-header {
  padding: 16px;
  font-weight: 400;
  text-align: left;
  position: relative;
  font-size: 20px;
  background: white;
  border-radius: 8px 8px 0 0;
}

.location-close-btn {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  color: rgba(0, 0, 0, 0.45) !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100 !important;
  padding: 0 !important;
  outline: 0 !important;
  line-height: 1 !important;
  transition:
    color 0.2s,
    background-color 0.2s !important;
}

.location-close-btn svg {
  display: flex !important;
  width: 14px !important;
  height: 14px !important;
}

.location-close-btn:hover {
  background: #f0f0f0 !important;
}

.location-search-container {
  padding: 0 16px !important;
  background: transparent !important;
}

.location-search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #007aff;
  border-radius: 10px;
  padding: 0 14px 0 12px;
  background: transparent !important;
  height: 48px;
}

.location-search-input {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  font-size: 14px !important;
  font-family: "Open Sans", sans-serif !important;
  color: #333 !important;
  background-color: transparent !important;
  padding: 0 !important;
  height: auto !important;
  width: auto !important;
  min-width: 0 !important;
  border-radius: 0px !important;
}

.location-search-input::placeholder {
  color: #afb3ba !important;
  opacity: 1 !important;
}

.location-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 !important;
  background-image: none !important;
  width: 20px;
  height: 20px;
}

.location-clear-btn svg {
  display: block;
  margin: auto;
}

.location-search-input:focus {
  border-color: #007aff;
}

/* Breadcrumb Styles - Updated for mobile */
.location-breadcrumb-container {
  position: relative;
  padding: 16px;
  background: white;
  overflow: hidden;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
}

.location-breadcrumb {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.location-breadcrumb::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.location-breadcrumb-item {
  cursor: pointer;
  color: rgb(135, 141, 152);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.location-breadcrumb-item.active,
.location-breadcrumb-current.active {
  color: #13131b !important;
}

.location-breadcrumb-separator {
  margin: 0 10px;
  color: #666;
  flex-shrink: 0;
}

.location-breadcrumb-current {
  color: #13131b;
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.location-dropdown-items {
  flex: 1;
  overflow-y: auto;
  background: white;
  position: relative;
}

.location-dropdown-item {
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  color: #333;
  transition: background-color 0.2s;
}

.location-dropdown-item:hover {
  background-color: #f8f9fa;
}

.location-dropdown-item:active {
  background-color: #e8f4ff;
}

.location-arrow {
  border: solid #666;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg);
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.location-dropdown-field.active .location-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.location-required {
  color: #ff3b30;
}

/* Loading Animation */
.location-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  margin-top: 200px;
}

.location-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #13131b;
  border-radius: 50%;
  animation: location-spin 1s linear infinite;
  margin-bottom: 16px;
}

.location-loading-text {
  color: #666;
  font-size: 14px;
}

.location-empty-state {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.location-empty-state-message {
  margin: 0 !important;
  color: #878d98 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 400 !important;
}

.location-empty-state-cta {
  margin-top: 8px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #246ed4 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-family: "Open Sans", sans-serif !important;
  cursor: pointer !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

@keyframes location-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Scrollbar styling */
.location-dropdown-items::-webkit-scrollbar {
  width: 4px;
}

.location-dropdown-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.location-dropdown-items::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.location-dropdown-items::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Overlay background */
.location-overlay-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.location-overlay-background.active {
  display: block;
}

/* Breadcrumb gradient overlay for mobile */
.location-breadcrumb-fade-right {
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 20px;
  width: 30px;
  background: linear-gradient(to right, transparent, white);
  pointer-events: none;
}

#cityListMobile {
  display: none;
}

#cityListDesktop {
  display: block;
  position: relative;
}

.iconWrapperCityRef {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iconWrapperCityRef svg {
  display: block;
}

@media (max-width: 1199px) {
  #cityListMobile {
    display: block;
  }

  #cityListDesktop {
    display: none;
  }

  .input-container {
    width: 100% !important;
    margin-bottom: 16px !important;
  }
}

/* Toast Styles */
.overlay-toast {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.toast-container {
  position: relative;
  font-family: "Open Sans", sans-serif;
  margin: 20px;
}

.toast-box {
  text-align: left;
  background-color: #fff;
  padding: 12px 16px 12px 16px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  animation: appear 0.5s;
  height: 64px;
  width: 339px;
  /* Percepat animasi menjadi 0.5 detik */
}

.checkmark-icon {
  font-size: 20px;
  color: #1aa674;
  margin-right: 10px;
}

.toast-text {
  font-size: 14px;
  color: #13131b;
  font-weight: 400;
}

/* radio button styles */
.bpkb-radio-leads {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: border-color 0.2s ease !important;
  padding: 0px !important;
}

.bpkb-radio-leads:checked {
  border-color: #ffffff !important;
  background-color: transparent !important;
}

.bpkb-radio-leads:checked::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
}

/* Checkbox Styles */

.leads-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border: 1.5px solid #afb3ba !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.leads-checkbox:checked {
  border-color: transparent !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='16' height='16' rx='4' fill='%23000000'/%3E%3Cpath d='M6.50008 10.3584L4.41508 8.27336L3.70508 8.97836L6.50008 11.7734L12.5001 5.77336L11.7951 5.06836L6.50008 10.3584Z' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
}

/* switch general */

.consent-switcher-general-article {
  margin-top: 48px !important;
}
