/* PC_SUB DEDICATED FILE */
/* Split from former 30_components.css for maintenance safety */

/* =========================================================
   Lead Modal (PC)
   ========================================================= */

.lead-modal{
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}

.lead-modal.active{
  display: flex;
}

.lead-modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.lead-modal-content{
  position: relative;
  z-index: 2;
  width: min(520px, 92%);
  padding: 50px 40px 40px;
  border-radius: 18px;
  background: #fff;
  animation: leadModalFadeUp .35s ease;
}

.lead-modal-close{
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 52px;
  border-radius: 29px;
  border: none;
  background: #767676;
  cursor: pointer;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.lead-modal-close::before{
  content: "×";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(-2px);
  color: #fff;
  font-size: 45px;
  font-weight: 300;
  line-height: 1;
}

@keyframes leadModalFadeUp{
  from{
    transform: translateY(15px);
    opacity: 0;
  }
  to{
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-title{
  margin: 0 0 8px;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  color: #111;
}

.modal-sub{
  margin: 0 0 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.lead-modal-form{
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.modal-row{
  height: 55px;
  border-radius: 14px;
  border: 1px solid #d6d6d6;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.modal-label{
  width: 120px;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 26px;
  font-size: 18px;
  font-weight: 400;
  color: #111;
}

.modal-input{
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 400;
  color: #111;
}

.modal-input::placeholder{
  color: #8a8a8a;
  font-weight: 400;
}

.modal-row:focus-within{
  border-color: rgba(136,114,91,.58);
  background: #fff;
}

.modal-row--visit{
  height: 55px;
  border-radius: 14px;
  border: 1px solid #d6d6d6;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.modal-row--visit .modal-label{
  width: 120px;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 26px;
  font-size: 18px;
  font-weight: 400;
  color: #111;
  flex: 0 0 120px;
}

#leadModal .modal-visit-trigger{
  flex: 1;
  height: 100%;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #111;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
}

#leadModal .modal-visit-trigger span{
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #111;
}

#leadModal .modal-visit-trigger.is-filled span{
  color: #111;
}

#leadModal .modal-visit-trigger:focus{
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

#leadModal .modal-visit-modal{
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
}

#leadModal .modal-visit-modal.active{
  display: flex;
}

#leadModal .modal-visit-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(3,14,33,.72);
}

body.modal-visit-open{
  overflow: hidden;
}

#leadModal .modal-visit-picker{
  position: relative;
  z-index: 1;
  width: min(460px, calc(var(--pc-safe-w, 100vw) - 24px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5e6e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0,0,0,.28);
}

#leadModal .modal-visit-calendar{
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
}

#leadModal .modal-visit-times{
  width: 100%;
  box-sizing: border-box;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

#leadModal .modal-visit-times.is-active{
  display: grid;
}

#leadModal .modal-visit-modal__actions{
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

#leadModal .modal-cal__header{
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  column-gap: 8px;
  margin-bottom: 12px;
}

#leadModal .modal-cal__title{
  text-align: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111;
}

#leadModal .modal-cal__nav{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-4px);
}

#leadModal .modal-cal__nav:disabled{
  color: rgba(17,17,17,.18);
  cursor: default;
}

#leadModal .modal-cal__weekdays{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

#leadModal .modal-cal__grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

#leadModal .modal-cal__weekday{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

#leadModal .modal-cal__blank{
  min-width: 0;
  height: 44px;
}

#leadModal .modal-cal__day{
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: #1b1b1b;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

#leadModal .modal-cal__day.is-disabled{
  color: #cfd4db;
  cursor: default;
}

#leadModal .modal-cal__day.is-committed{
  border-color: #767676;
  color: #111;
}

#leadModal .modal-cal__day.is-selected{
  border-color: #767676;
  background: #767676;
  color: #fff;
}

#leadModal .modal-cal__day:not(.is-disabled):not(.is-selected):hover{
  border-color: #767676;
}

#leadModal .modal-time-slot{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid #dde2e9;
  border-radius: 10px;
  background: #fff;
  color: #59677c;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

#leadModal .modal-time-slot:hover,
#leadModal .modal-time-slot.is-active{
  border-color: #767676;
  background: #767676;
  color: #fff;
}

#leadModal .modal-visit-modal__btn{
  min-width: 94px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #767676;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

.modal-agree-group{
  margin-top: 10px;
  margin-bottom: 16px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 35px;
}

.modal-agree-group .agree-title,
.modal-agree-group .agree-option,
.modal-agree-group .policy-link{
  color: #111;
}

.modal-agree-group .policy-link{
  margin-left: 0;
  text-decoration: underline;
  opacity: 1;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-decoration-thickness: 2px;
}

.modal-agree-group .agree-option{
  font-size: 17px;
  font-weight: 500;
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

#leadModal .modal-agree-option--yes{
  position: relative;
  left: var(--modal-agree-yes-x, 0);
  top: var(--modal-agree-yes-y, 0);
}

#leadModal .modal-agree-option--yes .modal-agree-option__text{
  position: relative;
  left: var(--modal-agree-yes-text-x, 0);
  top: var(--modal-agree-yes-text-y, 0);
}

#leadModal .modal-agree-option--no .modal-agree-option__text{
  position: relative;
}

#leadModal .modal-agree-option input[type="radio"]{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.35);
  border-radius: 50%;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

#leadModal .modal-agree-option input[type="radio"]::after{
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  transform: scale(0);
  transition: transform .12s ease;
}

#leadModal .modal-agree-option input[type="radio"]:checked{
  background: #767676;
  border-color: #767676;
}

#leadModal .modal-agree-option input[type="radio"]:checked::after{
  transform: scale(1);
}

#leadModal .modal-field{
  position: relative;
  display: flex;
  flex-direction: column;
}

#leadModal .modal-error-bubble{
  position: absolute;
  left: 132px;
  top: calc(100% + 10px);
  z-index: 20;
  display: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #f0c9c0;
  border-radius: 8px;
  background: #fff;
  color: #e0674d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  width: max-content;
  max-width: calc(100% - 132px);
  white-space: normal;
  pointer-events: none;
}

#leadModal .modal-error-bubble::before{
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #f0c9c0;
  border-top: 1px solid #f0c9c0;
  transform: rotate(45deg);
}

#leadModal .modal-error-bubble.is-active{
  display: block;
}

#leadModal .modal-field--agree .modal-error-bubble{
  left: 144px;
  top: calc(100% + -6px);
  max-width: calc(100% - 144px);
}

#leadModal .modal-field--agree .modal-error-bubble::before{
  left: 16px;
}


/* =========================================================
   Lead Modal Submit Button
   ========================================================= */

#leadModal{
  --lead-modal-btn-h: 72px;
  --lead-modal-btn-fs: 24px;
  --lead-modal-btn-fw: 600;
  --lead-modal-icon: 30px;
  --lead-modal-btn-radius: 16px;
  --lead-modal-btn-gap: 14px;
}

/* PC 모달 제출버튼 */
#leadModal .lead-btn{
  height: var(--lead-modal-btn-h);
  border-radius: var(--lead-modal-btn-radius);

  background: #767676;
  color: #fff;

  font-size: var(--lead-modal-btn-fs);
  font-weight: var(--lead-modal-btn-fw);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--lead-modal-btn-gap);

  border: 0;
  cursor: pointer;

  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

/* 버튼 안 아이콘 크기 */
#leadModal .lead-btn i{
  font-size: var(--lead-modal-icon);
  line-height: 1;
}


