/* Reset */
*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
}

/* PC/모바일 이미지 표시 설정 */
.pc_img {
  display: block;
}

.m_img {
  display: none;
}

.m_img img{
  width: 100%;
  height: auto;
}

/* 모바일에서 이미지 표시 변경 */
@media screen and (max-width: 768px) {
  .pc_img {
    display: none;
  }
  
  .m_img {
    display: block;
  }
}

/* Base */
html {
  overflow-x: hidden;
  background-color: #262626;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, Roboto, "Noto Sans KR", "Segoe UI", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}



.last_img {
  width: 100%;
  height: auto;
}
.moreBtn {
  background-color: #0f3187;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

footer {
  display: none;
  text-align: center;
  color: #fff;
  font-size: 14px;
  padding: 15px;
  background-color: #0f3187;
}


.form_section {
  background-color: #143ca2;
  padding: 15px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: #fff;
}
.inputForm-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#submitBtn {
  height: 100px;
}

.form_section_logo {
  margin-right: 20px;
}

.form_section_title {
  font-size: 23px;
  font-weight: bold;
}

.form_section_title strong {
  color: #ffdc9a;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

.form_section_title_sub {
  margin-left: 10px;
}

.form_section_title_sub #d-day {
   width: 35px;
   height: 35px;
   border-radius: 5px;
   background-color: #fff;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-weight: bold;
   color: #ff4b58;
}

.inputFormInner {
  display: flex;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
}
.form_section #counsel_name{
  width: 100px;
}
.form_section input,
.form_section select {
  height: 40px;
  border-radius: 5px;
  border: none;
  padding: 0 10px;
  font-size: 16px;
  background-color: #fff;
  outline: none;
}

.inputFormInner-item {
  display: flex;
  gap: 15px;
  align-items: center;
 }

 .inputFormInner-item > div{
  display: flex;
  gap: 5px;
  align-items: center;
  position: relative;
 }

/* 셀렉트 박스 커스텀 화살표 */
.form_section select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  padding-right: 35px;
}

/* 셀렉트 박스 포커스 시 화살표 색상 변경 */
.form_section select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23143ca2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 2px rgba(20, 60, 162, 0.2);
}

/* 셀렉트 박스 첫 번째 옵션 스타일링 */
.form_section select option:first-child {
  color: #999;
  opacity: 0.7;
  font-style: italic;
}

/* 셀렉트 박스 자체의 placeholder 스타일 */
.form_section select:invalid {
  color: #999;
}

/* 실제 옵션들은 정상 색상으로 표시 */
.form_section select option:not(:first-child) {
  color: #000;
  opacity: 1;
  font-style: normal;
}
.num-label-sub {
  font-size: 16px;
  font-weight: bold;
  background-color: #ffdc9a;
  padding: 0 10px;
  border-radius: 5px 0 0 5px;
  color: #000;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-left: 5px;
}

#counsel_hp {
  border-radius: 0 5px 5px 0;
}

.num-label {
  display: flex;
  align-items: center;
}

/* Privacy Box */
.privacy_box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.privacy_box label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.privacy_box input[type="checkbox"] {
  display: none;
}

.privacy_box input[type="checkbox"] + span {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  background-color: #9f9f9f;
  border-radius: 13px;
  transition: all 0.3s;
}

.privacy_box input[type="checkbox"] + span:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #143ca2;
  top: 2px;
  left: 2px;
  transition: all 0.3s;
}

.privacy_box input[type="checkbox"]:checked + span {
  background-color: #fff;
}

.privacy_box input[type="checkbox"]:checked + span:before {
  transform: translateX(20px);
}

.agreeText {
  font-size: 15px;
}

#agreeView {
  color: #ffdc9a;
  text-decoration: underline;
  font-weight: bold;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #666;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #ff2e63;
}

.rollLit-wrapper {
  background-color: #121f3e;
  padding: 15px 0;
}


/* Media Queries */
@media screen and (max-width: 768px) {

  .last_img {
    width: 150%;
    transform: translateX(-16%);
  }

  .form_section input, .form_section select {
    height: 35px;
    font-size: 14px;
  }

  .form_section_title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  #submitBtn {
    width: 100%;
    height: auto;
  }

  .form_section_logo, .form_section_title_sub {
    display: none;
  }

  .form_section {
    flex-direction: column;
    gap: 10px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.3);
  }

  .inputFormInner {
    flex-direction: column;
    gap: 8px;
  }

  .num-label-sub {
    height: 35px;
    line-height: 35px;
  }

  .agreeText {
    font-size: 13px;
  }
}

/* 실시간 상담 신청 현황 롤링 */


.rollLit {
  position: relative;
  margin: 20px auto;
  max-width: 800px;
}

.rollLit-title {
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  padding-bottom: 20px;
}

.rollLit-title span {
  color: #ffdc9a;
}

.rollLit-container {
  background-color: #fff;
  padding: 20px;
  max-height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

.rollLit-swiper {
  height: 300px;
}


.rollLit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 30px;
  color: #333;
  font-size: 25px;
}

.rollLit-date {
  color: #666;
  min-width: 80px;
}

.rollLit-name {
  font-weight: bold;
  color: #143ca2;
  margin: 0 10px;
}

.rollLit-phone {
  color: #666;
}


/* 모바일에서 롤링 현황 스타일 */
@media screen and (max-width: 768px) {
  .rollLit {
    margin: 10px;
    max-width: none;
  }
  
  .rollLit-title {
    font-size: 20px;
    padding: 0 0 10px;
  }
  
  .rollLit-container {
    padding: 10px;
    max-height: 170px;
  }
  
  .rollLit-swiper {
    height: 150px;
  }
  
  .rollLit-item {
    padding:0 10px;
    font-size: 14px;
  }

  
  .rollLit-date {
    min-width: 70px;
  }
  
  .privacy_box input[type="checkbox"] + span {
    width: 40px;
    height: 20px;
    border-radius: 10px;
  }

  .privacy_box input[type="checkbox"] + span:before {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
  }

  .privacy_box input[type="checkbox"]:checked + span:before {
    transform: translateX(20px);
  }

  .name-warning {
    position: absolute;
    top: -23px;
  }
}

/* 이름 입력 경고 메시지 */
.name-warning {
  display: block;
  color: #ff4444;
  font-size: 12px;
  margin-top: 5px;
  font-weight: bold;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

