/* Carfreeoh mobile experience v0.6. The form is the existing #heroform. */
@media (max-width: 991px) {
  #popular_car, #benefit, #faq {
    scroll-margin-top: var(--cf-mobile-header-offset, 78px);
  }
  #cf-quote-overlay[hidden] { display: none !important; }
  #cf-quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(7, 22, 50, .66);
    box-sizing: border-box;
  }
  #cf-quote-overlay *, #cf-quote-overlay *::before,
  #cf-quote-overlay *::after { box-sizing: border-box; }
  #cf-quote-overlay .cf-quote-dialog {
    width: min(380px, 100%);
    max-height: calc(100vh - 30px);
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(6, 22, 60, .25);
    -webkit-overflow-scrolling: touch;
  }
  #cf-quote-overlay .cf-quote-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #cf-quote-overlay .cf-quote-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #1159e8;
    background: #edf4ff;
    font-size: 12px;
    font-weight: 800;
  }
  #cf-quote-overlay .cf-quote-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #1464ef;
  }
  #cf-quote-overlay .cf-quote-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #46556d;
    background: #f3f6fb;
    font-size: 23px;
    font-weight: 400;
    cursor: pointer;
  }
  #cf-quote-overlay .cf-quote-title {
    margin: 29px 0 8px;
    color: #14213b;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -.5px;
    word-break: keep-all;
  }
  #cf-quote-overlay .cf-quote-description {
    margin: 0 0 19px;
    color: #69778c;
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
  }
  #cf-quote-overlay #heroform { display: block; margin: 0; }
  #cf-quote-overlay #heroform .inp_wrap { position: relative; margin: 0 0 17px; }
  #cf-quote-overlay #heroform .inp_wrap::before {
    display: block;
    margin: 0 0 7px 2px;
    color: #14213b;
    font-size: 13px;
    font-weight: 700;
  }
  #cf-quote-overlay #heroform .inp_wrap:nth-of-type(1)::before { content: '이름 *'; }
  #cf-quote-overlay #heroform .inp_wrap:nth-of-type(2)::before { content: '연락처 *'; }
  #cf-quote-overlay #heroform .inp_wrap:nth-of-type(3)::before { content: '관심 차량 (선택)'; }
  #cf-quote-overlay #heroform .inp_wrap input {
    display: block;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 13px 0 50px;
    border: 1.5px solid #dce4ee;
    border-radius: 12px;
    color: #14213b;
    background: #fff;
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    outline-offset: 2px;
  }
  #cf-quote-overlay #heroform .inp_wrap input::placeholder { color: #8996a8; opacity: 1; }
  #cf-quote-overlay #heroform .inp_wrap svg {
    position: absolute;
    top: 32px;
    left: 14px;
    width: 22px;
    height: 22px;
    color: #92a2b8;
    stroke: #92a2b8;
    pointer-events: none;
  }
  #cf-quote-overlay #heroform .agr_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    margin: 7px 0 16px !important;
    color: #14213b !important;
    font-size: 13px !important;
    line-height: 1.55;
  }
  #cf-quote-overlay #heroform .agr_wrap input[type='checkbox'] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 5px 0 0;
    vertical-align: -4px !important;
    accent-color: #125ef0;
  }
  #cf-quote-overlay #heroform .agr_wrap a { color: #69778c; font-size: 12px; }
  #cf-quote-overlay #heroform .send { display: block; margin: 0; }
  #cf-quote-overlay #heroform .send input[type='submit'] {
    display: block;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: #0757ec;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
  }
}