/* freeTrial.css - 무료체험 페이지 전용 스타일 */

#freeTrial_wrap {
  padding: 100px 0 160px 0;
  background: #fff;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Hero Section */
.ft_hero {
  margin-bottom: 60px;
}

.ft_hero_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
}

.ft_hero_tit {
  flex: 1;
}

.ft_hero_tit .cate {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--main-brand-color);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ft_hero_tit h2 {
  font-size: 56px;
  line-height: 1.25;
  font-weight: 800;
  color: #000;
  letter-spacing: -0.03em;
}

.ft_hero_desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 15px;
  padding-bottom: 10px;
}

.ft_hero_desc p {
  font-size: 16px;
  line-height: 1.6;
  color: #475467;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ft_hero_desc p.point {
  color: #101828;
}

.ft_hero_desc p strong {
  font-weight: 700;
}

/* Form Area */
.ft_form_area {
  max-width: 100%;
  margin-top: 20px;
}

#freeTrial_form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#freeTrial_form .input_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#freeTrial_form .input_item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#freeTrial_form .input_item label {
  font-size: 15px;
  font-weight: 600;
  color: #252525;
  letter-spacing: -0.02em;
  line-height: 1;
}

#freeTrial_form .input_item input,
#freeTrial_form .input_item select {
  width: 100%;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-SUIT);
  color: #101828;
  transition: all 0.25s ease;
}

#freeTrial_form .input_item input::placeholder {
  color: #aaaaaa;
}

#freeTrial_form .input_item input:focus,
#freeTrial_form .input_item select:focus {
  border-color: var(--main-brand-color);
  box-shadow: 0 0 0 4px rgba(100, 84, 237, 0.1);
  outline: none;
}

#freeTrial_form .divider {
  height: 1px;
  background: #eaecf0;
  margin: 10px 0;
}

/* Select Wrapper */
.select_wrapper {
  position: relative;
}

.select_wrapper select {
  appearance: none;
  cursor: pointer;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231C1B1F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>")
    no-repeat right 24px center / 20px;
}

/* Agree Box */
.agree_box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: #f9fafb;
  border-radius: 12px;
}

.agree_item {
  display: flex;
  align-items: center;
}

.checkbox_label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox_label input {
  display: none;
}

.checkbox_icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  border: 1px solid #727272;
  border-radius: 3px;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox_label input:checked + .checkbox_icon {
  background: var(--main-brand-color);
  border-color: var(--main-brand-color);
}

.checkbox_icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  opacity: 0;
}

.checkbox_label input:checked + .checkbox_icon::after {
  opacity: 1;
}

.agree_txt {
  font-size: 15px;
  font-weight: 600;
  color: #252525;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.agree_txt em.point {
  color: var(--main-brand-color);
  font-style: normal;
}

/* Button Area */
.btn_area {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.submit_btn {
  width: 320px;
  height: 64px;
  background: var(--main-brand-color);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit_btn:hover {
  background: #5042d2;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(100, 84, 237, 0.3);
}

/* Custom Select Dropdown */
.custom_select_wrapper {
  position: relative;
  width: 100%;
}

.custom_select_trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  padding: 0 20px 0 24px;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-SUIT);
  color: #aaaaaa;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.custom_select_trigger.is-selected {
  color: #101828;
}

.custom_select_wrapper.is-open .custom_select_trigger,
.custom_select_trigger:focus {
  border-color: var(--main-brand-color);
  box-shadow: 0 0 0 4px rgba(100, 84, 237, 0.1);
  outline: none;
}

.custom_select_trigger .select_icon {
  position: static;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom_select_wrapper.is-open .custom_select_trigger .select_icon {
  transform: rotate(-90deg);
}

.custom_select_dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.12);
  padding: 8px;
  z-index: 100;
  display: none;
  list-style: none;
}

.custom_select_dropdown.is-open {
  display: block;
  animation: customSelectFadeIn 0.15s ease both;
}

@keyframes customSelectFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom_select_option {
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-SUIT);
  font-weight: 400;
  color: #475467;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.02em;
  transition: background 0.15s ease;
}

.custom_select_option:hover {
  background: #f9fafb;
}

.custom_select_option.is-selected {
  font-weight: 700;
  color: #101828;
}

/* Inline wrapper: the wrapper provides the border, trigger is borderless */
.custom_select_wrapper.inline {
  height: 64px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.custom_select_wrapper.inline.is-open,
.custom_select_wrapper.inline:focus-within {
  border-color: var(--main-brand-color);
  box-shadow: 0 0 0 4px rgba(100, 84, 237, 0.1);
}

.custom_select_wrapper.inline .custom_select_trigger {
  height: 100%;
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none !important;
}

.custom_select_wrapper.inline .custom_select_trigger:focus {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

/* cs_label: bold prefix inside trigger */
.cs_label {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #101828;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 8px;
}

/* Value text in has-label trigger (selected value or empty) */
.custom_select_trigger.has-label .custom_select_value {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  color: #aaaaaa;
}

.custom_select_trigger.has-label.is-selected .custom_select_value {
  color: #101828;
}

/* Responsive */
@media (max-width: 1440px) {
  .container {
    padding: 0 40px;
    box-sizing: border-box;
  }
}

@media (max-width: 991px) {
  #freeTrial_wrap {
    padding: 60px 0 100px 0;
  }

  .container {
    padding: 0 24px;
  }

  .ft_hero {
    margin-bottom: 40px;
  }

  .ft_hero_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .ft_hero_tit h2 {
    font-size: 40px;
  }

  .ft_hero_desc {
    padding-top: 0;
  }

  .ft_hero_desc p {
    font-size: 14px;
  }

  .ft_form_area {
    margin-top: 0px;
  }

  #freeTrial_form {
    gap: 20px;
  }

  #freeTrial_form .input_row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #freeTrial_form .input_item input,
  #freeTrial_form .input_item select {
    height: 56px;
    padding: 0 20px;
  }

  .agree_box {
    padding: 20px;
  }

  .submit_btn {
    width: 100%;
    height: 56px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .ft_hero_tit h2 {
    font-size: 35px;
  }

  .ft_hero_tit .cate {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .ft_hero_desc p br {
    display: none;
  }
}
