/* @import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Open+Sans:wght@400;600;700&display=swap"); */

/* === Popup General (ant-modal) === */
#overlay-identity-recom-general {
  display: none;
}

#overlay-identity-recom-general.is-visible {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999999999999999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 16px;
}

#overlay-identity-recom-general .ant-modal-mask {
  display: none;
}

#overlay-identity-recom-general .ant-modal-wrap {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 891px;
}

#overlay-identity-recom-general .ant-modal {
  position: static !important;
  width: 100% !important;
  max-width: 891px;
  max-height: 100vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.ant-modal-root .ant-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  margin: auto;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ant-modal-root .ant-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: auto;
  outline: 0;
  -webkit-overflow-scrolling: touch;
}

.ant-modal-root .ant-modal-centered {
  text-align: center;
}

.ant-modal-root .ant-modal-centered::before {
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
  content: "";
}

.ant-modal-root .ant-modal-centered .ant-modal {
  top: 0;
  display: inline-block;
  padding-bottom: 0;
  text-align: start;
  vertical-align: middle;
}

@media (max-width: 1199px) {
  #overlay-identity-recom-general .ant-modal-content {
    max-height: none;
    -webkit-overflow-scrolling: touch;
  }
}

/* Desktop - no overflow on modal content */
@media (min-width: 1201px) {
  #overlay-identity-recom-general .ant-modal-content {
    max-height: none;
    overflow: visible;
  }
}

.ant-modal .ant-modal-content {
  position: relative;
  background-color: #ffffff;
  background-clip: padding-box;
  border: 0;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  padding: 20px 16px;
}

.ant-modal .ant-modal-close {
  position: absolute;
  top: 17px;
  inset-inline-end: 17px;
  z-index: 100;
  padding: 0;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.ant-modal .ant-modal-close-x {
  display: flex;
  font-size: 16px;
  font-style: normal;
  line-height: 22px;
  justify-content: center;
  text-transform: none;
  text-rendering: auto;
}

.ant-modal .ant-modal-body {
  font-size: 14px;
  line-height: 1.5714285714285714;
  word-wrap: break-word;
}

.full .ant-modal-body {
  width: 100%;
}

.leadsFormPrimary_textDesc {
  font-family: "Open Sans", sans-serif !important;
  font-weight: 400;
  font-size: 12px;
  color: #878d98;
  line-height: 18px;
  text-align: center;
  margin-bottom: 24px;

  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
  }
}

.leadsFormPrimary_textHeading {
  font-family: "Outfit", sans-serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 28px !important;
  color: #13131b !important;
  text-align: center !important;
  padding-top: 0px !important;
  margin-bottom: 0px !important;
  margin-top: 0px !important;
  @media (max-width: 1119px) {
    padding-top: 24px !important;
  }
  @media (min-width: 1200px) {
    font-size: 32px !important;
    line-height: 48px !important;
    margin-bottom: 4px !important;
  }
}

.input_wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  @media (min-width: 1200px) {
    margin-bottom: 24px;
  }
}

.input_titlePrimaryText {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  color: #878d98;
  padding: 0 0 8px;
  line-height: 18px;
  margin-top: 0px !important;
  margin-bottom: 0px !important;

  @media (min-width: 1200px) {
    font-size: 14px;
    line-height: 20px;
  }
}

.input_input__MAvlc {
  border: 1px solid #ebecee;
  padding: 12px 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #13131b;
  border-radius: 8px;
  outline: none;
  background-color: #fff;

  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.input_input__MAvlc::placeholder {
  color: #afb3ba;
  opacity: 1;
}

.input_input__MAvlc:disabled {
  background-color: rgb(235, 236, 238);
}

.input_input__MAvlc:focus {
  border: 1px solid #246ed4;
}

@media (min-width: 1200px) {
  #overlay-identity-recom-general #identity-modal-general {
    width: 891px !important;
  }

  .ant-modal .ant-modal-content {
    padding: 64px 48px 40px;
  }

  .leadsFormPrimary_foreground {
    position: relative;
    z-index: 2;
  }

  .leadsFormPrimary_supergraphicSmall {
    width: 420px;
    height: auto;
    top: 0;
    left: -260px;
    opacity: 0.7;
  }

  .leadsFormPrimary_supergraphicLarge {
    width: 520px;
    height: auto;
    right: -220px;
    top: -160px;
    opacity: 0.3;
  }
}

.leadsFormPrimary_background {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.leadsFormPrimary_supergraphicSmall {
  width: 350px;
  height: 300px;
  position: absolute;
  top: 25px;
  left: -250px;
  z-index: 1;
  opacity: 0.6;
}

.leadsFormPrimary_wrapperSupergraphicLarge {
  display: inline-block;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
}

.leadsFormPrimary_supergraphicLarge {
  width: 350px;
  height: 300px;
  position: absolute;
  right: -170px;
  top: -100px;
  z-index: 1;
  opacity: 0.3;
}

.location-field-wrapper {
  margin-bottom: 16px;
  @media (min-width: 1200px) {
    margin-bottom: 24px;
  }
}

/* Location field visibility control */
#cityListMobileGeneralLeads {
  display: none;
}

#cityListDesktopGeneralLeads {
  display: block;
}

@media (max-width: 1200px) {
  #cityListMobileGeneralLeads {
    display: block;
  }

  #cityListDesktopGeneralLeads {
    display: none;
  }
}

.inputPhone_wrapper {
  width: 100%;
  margin-bottom: 16px;

  @media (min-width: 1200px) {
    margin-bottom: 24px;
  }
}

.inputPhone_titlePrimaryText {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px;
  color: #878d98;
  padding: 8px 0;
  line-height: 18px;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  padding-top: 0px !important;

  @media (min-width: 1200px) {
    font-size: 14px;
    line-height: 20px;
  }
}

.inputPhone_default {
  border: 1px solid #ebecee;
}

.inputPhone_wrapperInput {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
}

.inputPhone_wrapperInput:focus-within {
  border: 1px solid #246ed4;
}

.inputPhone_textRegion {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 20px;
  padding-right: 6px;
  margin-bottom: 0px !important;

  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.inputPhone_input {
  outline: none;
  border: none !important;
  margin-left: 6px;
  width: 100%;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #13131b;
  background-color: #fff;
  padding: 0 !important;
  border-radius: 0 !important;
  transition: none !important;

  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.inputPhone_input::placeholder {
  color: #afb3ba;
  opacity: 1;
}

/* bpkb field */

.bpkb-field-wrapper {
  margin-top: 16px;
}

.bpkb-label {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  color: #878d98;
  padding: 0 0 8px;
  line-height: 18px;
  display: block;

  @media (min-width: 1200px) {
    font-size: 14px;
    line-height: 20px;
  }
}

.bpkb-radio-group {
  display: flex;
  gap: 32px;
}

.bpkb-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bpkb-radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #05256e;
}

.bpkb-radio-option label {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  color: #878d98;
  cursor: pointer;
  line-height: 18px;
  @media (min-width: 1200px) {
    font-size: 14px;
    line-height: 20px;
  }
}

/* BPKB Motor Warning Message */
.bpkb-motor-warning {
  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 svg {
  flex-shrink: 0;
}

.bpkb-motor-warning span {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: #13131b;
}

.bpkb-motor-warning strong {
  font-weight: 700;
}

/* consent marketing */
.marketing-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 5px;
  font-family: "Open Sans", sans-serif;
  color: #05256e;
  @media (min-width: 1200px) {
    gap: 8px;
  }
}

.consent-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3px;
}

.consent-text {
  font-size: 12px;
  line-height: 18px;

  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
  }
}

.consent-text label {
  color: #878d98;
  line-height: 18px !important;
}

.consent-text a {
  color: #007bff;
  /* Link color */
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

.customer-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  /* Two columns: one for checkbox and one for text */
  align-items: start;
  gap: 5px;
  /* Adds spacing between checkbox and text */
  margin-top: 16px;
  font-family: "Open Sans", sans-serif;
  color: #05256e;

  @media (min-width: 1200px) {
    margin-top: 16px;
  }
}

/* button */
.button_primaryDarkBlue {
  border: 1px solid #05256e;
  border-radius: 8px;
  background-color: #05256e;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button_primaryDarkBlue:disabled {
  border: 1px solid #cdd0d4;
  border-radius: 8px;
  background-color: #cdd0d4;
  color: #fff;
  cursor: no-drop;
}

.button_primaryDarkBlue:hover:disabled {
  border: 1px solid #cdd0d4;
  border-radius: 8px;
  background-color: #cdd0d4;
  color: #fff;
  cursor: no-drop;
}

@media (hover: hover) {
  .button_primaryDarkBlue:enabled:hover {
    font-family: "Open Sans", sans-serif;
    background-color: #246ed4;
    color: #fff;
    border: none;
    font-weight: 600;
  }
}

.button_primaryDarkBlue:active {
  font-family: "Open Sans", sans-serif;
  background-color: #246ed4;
  color: #fff;
  border: none;
  font-weight: 600;
}

.button_big {
  height: 44px;
  min-height: 44px;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  @media (min-width: 1200px) {
    font-size: 16px;
    line-height: 24px;
  }
}

#submitLeads-general:not(:disabled):hover,
#submitLeads-general:not(:disabled):focus {
  background-color: #246ed4 !important;
  color: #fff !important;
}

#submitLeads-general:disabled {
  background-color: #cdd0d4 !important;
  border-color: #cdd0d4 !important;
  cursor: not-allowed !important;
}

/* Disabled state untuk checkboxes */
.marketing-consent input[type="checkbox"]:disabled,
.customer-consent input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

.marketing-consent:has(input:disabled) .consent-text label,
.customer-consent:has(input:disabled) .consent-text label {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner-general {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin-general 0.6s linear infinite;
}

@keyframes spin-general {
  to {
    transform: rotate(360deg);
  }
}

#submitLeads-general.loading-general {
  background-color: #cdd0d4 !important;
  border-color: #cdd0d4 !important;
}

#submitLeads-general.loading-general .btn-text-general {
  display: none;
}

#submitLeads-general.loading-general .btn-spinner-general {
  display: block;
}

.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;
}

.submit-button-wrapper {
  margin-top: 24px;

  @media (min-width: 1200px) {
    margin-top: 40px;
  }
}

/* manipulasi field location  */

#cityListMobileGeneralLeads .location-dropdown-field-v2.active {
  border-color: #246ed4;
}

#cityListDesktopGeneralLeads #dropdownCityRefContainer:focus-within {
  border: 1px solid #246ed4 !important;
}

/* Checkbox Styles */

.general-leads-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1.5px solid #afb3ba;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;

  @media (min-width: 1200px) {
    margin-top: 3px;
  }
}

.general-leads-checkbox:checked {
  border-color: transparent;
  background-color: transparent;
  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;
  background-position: center;
  background-size: 100% 100%;
}

#textCityRefV2::placeholder {
  color: #afb3ba;
  opacity: 1;
}

.consent-switcher-general {
  margin-top: 24px !important;
}
