.form-section-bg {
  padding: 26px 24px 30px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #e4e4e4;
  max-width: 1080px;
}

.form-section-bg .section-heading {
  max-width: 300px;
  margin: 0 auto 20px;
}

.form-section-bg .textbox-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-section-bg .textbox-label {
  word-break: keep-all;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  background: #00296e;
  color: #fff;
  font-weight: 700;
}

.form-section-bg .period-title {
  font-size: 20px;
  font-weight: 900;
  margin-top: 20px;
  margin-bottom: 5px;
}

.form-section-bg .period-btn-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.form-section-bg .modal-open-link {
  color: #13316a;
}

.form-section-bg .submit-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

.form-section-bg .submit-btn-primary {
  border: none;
  background: none;
  border-radius: 8px;
  padding: 0;
  width: 100%;
  max-width: 600px;
  cursor: pointer;
  color: #ffffff;
  font-size: 40px;
  font-weight: 700;
  background-color: #003fa9;
}

@media (max-width: 768px) {
  .form-section-bg .section-heading {
    font-size: 28px;
  }
}

/* 폼 요소 */
.form-section-bg .contact_bg {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 10px;
  text-align: left;
  padding: 15px 12px;
}

.form-section-bg .contact {
  padding: 15px 12px;
}

.form-section-bg .contact .textbox {
  margin-bottom: 6px !important;
  gap: 5px !important;
  background: #f2f2f2;
  border: 1px solid #f2f2f2;
  border-radius: 10px;
  width: 100%;
  align-items: stretch;
  overflow: hidden;
}

.form-section-bg .contact .textbox input,
.form-section-bg input[type='text'] {
  height: 42px !important;
  padding: 8px 12px !important;
  font-size: 15px !important;
  color: #000;
  background: none;
  border: none;
  width: 100%;
}

.form-section-bg input[type='text']:focus {
  outline: none;
}

.form-section-bg input[type='text']::placeholder {
  color: #aaa;
}

.form-section-bg .contact .textbox div {
  font-size: 15px !important;
}

.form-section-bg .period_btn {
  background: #eaf2ff;
  color: #222;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(1, 37, 97, 0.04);
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  display: block;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 16px;
  height: 40px;
  font-weight: 500;
  font-family: 'Pretendard', 'Malgun Gothic', dotum, sans-serif;
}

.form-section-bg .period_btn.selected {
  background: #012561;
  color: #fff;
}

.form-section-bg .contact #submitBtn {
  font-size: 24px !important;
  padding: 12px 0 !important;
  height: auto !important;
}

.checkbox-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Sticky form styles */
.form-section-bg .contact_bg.sticky-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-out;
  max-height: 70vh;
  overflow-y: auto;
}

.form-section-bg .contact_bg.sticky-form .contact {
  padding: 12px 10px !important;
  max-width: 100%;
}

.form-section-bg .contact_bg.sticky-form .textbox,
.form-section-bg .contact_bg.sticky-form .textbox input {
  margin-bottom: 6px !important;
}

.form-section-bg .contact_bg.sticky-form .textbox input {
  height: 36px !important;
  font-size: 14px !important;
}

.form-section-bg .contact_bg.sticky-form .period_btn {
  padding: 8px 12px !important;
  font-size: 13px !important;
  height: 36px !important;
}

.form-section-bg .contact_bg.sticky-form #submitBtn {
  font-size: 20px !important;
  padding: 10px 0 !important;
}

/* 닫기 버튼 */
.sticky-close-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: #003fa9;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  z-index: 1001;
  transition: background 0.3s;
}

.sticky-close-btn:hover {
  background: #002a73;
}

.form-section-bg .contact_bg.sticky-form .sticky-close-btn {
  display: block;
}

.form-section-bg .contact_bg.sticky-hidden {
  display: none !important;
}

/* 다시 열기 버튼 */
.sticky-reopen-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #003fa9;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.sticky-reopen-btn:hover {
  background: #002a73;
  transform: scale(1.05);
}

.sticky-reopen-btn.show {
  display: block;
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-prefix {
  background: #f2f2f2;
  border-right: 1px solid #000;
  padding: 0 8px 0 5px;
  font-size: 15px;
  color: #00034b;
  font-weight: 700;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .privacy_box .modal-btn-box,
  .form-section-bg .modal-open-link {
    font-size: 14px;
  }
  .form-section-bg .contact_bg {
    width: 100%;
    padding: 10px 8px;
  }
  .form-section-bg .contact_bg.sticky-form {
    max-height: 80vh;
  }

  .form-section-bg .contact_bg.sticky-form .contact {
    padding: 10px 8px !important;
  }

  .form-section-bg .contact_bg.sticky-form #submitBtn {
    font-size: 18px !important;
    margin-top: 8px !important;
  }

  .form-section-bg > .section-heading {
    width: 70%;
  }

  .form-section-bg .contact #submitBtn {
    font-size: 20px !important;
  }
}
