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

/* Base */
html {
  overflow-x: hidden;
  background-color: #071d3c;
  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;
}


.container {
  width: 900px;
  margin: 0 auto;
  background-color: #fff;
  padding-bottom:150px;
}

img {
  width: 100%;
  display: block;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 0px 0 0 20px;
  border-bottom:1px solid #ccc;
  height: 70px;
}

header .logo {
   width: auto;
   height: 45px;
}


.callBtn {
  height: 70px;
  background-color: #002f90;
  display: block;
}

.callBtn img {
  border-radius: 30px;
  overflow: hidden;
  height: 100%;
}


.section03 {
  position: relative;
  padding: 100px 100px 60px;
}

.section03 .lawyerSlide  {
  padding:30px;
}

.section03 .lawyerSlide .swiper-pagination {
  bottom:50px;
}

.section04{
  position: relative;
  padding: 100px 0;
  height: 670px;
  overflow: hidden;
}

.section04 .inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color:#fff;
  font-size: 40px;
}

.section04 h3 {
  margin: 60px 0 20px;
}

.section04_logo {
  width: 300px;
}

.section04_bg {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.section04 .btnWrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section04 a {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  background-color: #002f90;
  border-radius: 100px;
  padding: 15px 100px;
}

.section04 a img {
  width: 30px;
  height: auto;
}

.section04_2 {
  padding: 100px;
}

.section04_2 .lawyerSlide {
  padding: 50px 0;
  margin-bottom: 50px;
}

.section04_2 .swiper-button-next:after{
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
} 
.section04_2 .swiper-button-prev:after {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}


.rollTitle {
  display: flex;
  gap: 20px;
  flex-direction: column;
  align-items: center;
  padding: 100px 0 0;
}

.rollTitle p{
  border-bottom: 1px solid #000;
  padding: 30px 0 13px;
  width: 70%;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.rollTitle img:nth-child(1){
  width: 50%;
}

.rollTitle a {
  width: 50%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}










/* Submit 버튼 애니메이션 */
@keyframes submitPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Submit 버튼에 펄스 애니메이션 적용 */
#submitBtn {
  animation: submitPulse 2s infinite;
  transition: all 0.3s ease;
}

#submitBtn:hover {
  animation: none;
  transform: scale(1.05);
}

#submitBtn:active {
  transform: scale(0.95);
}

.formArea {
  color: #fff;
  padding: 10%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #000;
}

#formBox {
  display: flex;
  gap: 15px;
  flex-direction: column;
  padding: 25px 0 0;
  align-items: start;
  width: 100%;
}

#formBox input {
  width: 89.8%;
  border:1px solid #fff;
  background: transparent;
  padding: 5px 15px;
  height: 45px;
  color:#fff;
  font-size: 18px;
}

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

.nameBox, .phoneBox, .contentsBox {
  display: flex;
  white-space: nowrap;
  align-items: center;
  position: relative;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

.phoneBox > span{
  position: absolute;
  left: 16%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-right: 1px solid #fff;
  padding-right: 15px;
}

#formBox .phoneBox input {
  padding-left: 11%;
}

.contentsBox {
  align-items: start;
}

.contentsBox textarea{
  width: 90%;
  height: 100px;
  background: transparent;
  border:1px solid #fff;
  color: #fff;
  padding: 15px;
  font-size: 18px;
}



/* 애니메이션 효과 */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Privacy Box 스타일링 */
.privacy_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: all 0.3s ease;
}

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

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

.privacy_box input[type="checkbox"] + span {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy_box input[type="checkbox"] + span:before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:#fff;
  top: 3px;
  left: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.privacy_box input[type="checkbox"]:checked + span {
  background: #155fd2;
}

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

.agreeText {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

#agreeView {
  color: #155fd2;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 8px;
}

#agreeView:hover {
  color: #155fd2;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Modal 스타일링 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s ease-out;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #000;
  font-size: 20px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.modal-content-inner {
  padding: 10px 20px;
}

.modal-content h3 {
  margin: 0;
  padding: 15px 30px;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  background: #333;
  color: white;
}

.modal-content p {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  word-break: keep-all;
  overflow-y: auto;
  max-height: 60vh;
}



.bottomFixed {
  position: fixed;
  bottom:-1px;
  width: 100%;
  max-width: 900px;
  z-index: 99;
  box-shadow: 0 -7px 20px 0px rgba(0, 0, 0, 0.4); 
  
}

.bottomFixed .time {
  width: 100%;
  background-color: #000;
  border-top:1px solid #333;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
}

.bottomFixed .time img {
  width:30px;
  height: auto;
  animation: rotate360 1s linear 1;
  animation-delay: 0s;
}

.bottomFixed .btnWrap {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.bottomFixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  background:#003b8c;
  height: 60px;
}

.bottomFixed a:nth-child(2) {
  background-color: #2a7eff;
}

.bottomFixed a img {
  height: 30px;
  width: auto;
}

.section04_2,
.section04_2 .inner {
  position: relative;
} 

/* Modal 애니메이션 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* 시계 아이콘 회전 애니메이션 */
@keyframes rotate360 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 반응형 Modal */
@media (max-width: 768px) {

  #formBox input {
    width: 82.5%;
    font-size: 14px;
  }

  .contentsBox textarea {
    font-size: 14px;
  }
  
  #formBox .phoneBox input {
    padding-left: 16%;
  }

  .phoneBox > span {
    left: 25%;
    padding-right: 6px;
  }

  .section03 .lawyerSlide .swiper-pagination { 
    bottom:30px
  }


  .container {
    width: 100%;
    padding-bottom: 120px;
  }
  .modal-content {
    width: 95%;
    max-width: none;
    margin: 20px auto;
  }
  
  .modal-content h3 {
    font-size: 20px;
    padding: 10px 25px;
  }
  
  .modal-content p {
    font-size: 13px;
  }
  
  .close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }
}


/* RollList 스타일링 */
.rollList {
  width: 70%;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 2px solid #fff;
}


.rollList h3 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #7b52ff;
  margin-bottom: 20px;
}

.rollSwiper {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.rollItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  transition: all 0.3s ease;
  height: 50px;
  margin-bottom: 5px;
  gap: 10px;
  font-size: 20px;
}

.rollTime {
  font-weight: 500;
}


.rollStatus {
  background:#155fd2;
  color: #fff;
  font-weight: bold;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Swiper 네비게이션 숨기기 */
.rollSwiper .swiper-button-next,
.rollSwiper .swiper-button-prev {
  display: none;
}

/* Swiper 페이징 숨기기 */
.rollSwiper .swiper-pagination {
  display: none;
}

/* 반응형 RollList */
@media (max-width: 768px) {
  .rollTitle p {
    width: 90%;
    font-size: 16px;
  }
  .section04_2 .lawyerSlide {
    padding: 38px 0;
    margin-bottom: 15px;
  }
  .section04_2 {
    padding: 50px 25px;
  }
  .section04 {
    padding: 30px 0;
    height: 340px;
  }
  .section04_logo {
    width: 39%;
  }
  .section04 h3 {
    margin: 30px 0 10px;
  }
  .section04 a {
    padding: 12px 0;
    width: 80%;
  }
  .section04 a img {
    width: 20px;
  }
  .section04 .btnWrap {
    width: 100%;
    align-items: center;
    gap: 10px;
  }
  .section04 .inner {
    font-size: 20px;
  }
  .section03 {
    padding: 50px 0 0;
  }

  .section03 .section03_title {
    width: 85%;
    margin: 0 auto;
  }


  .section03 .swiper-button-next:after, .section03 .swiper-button-prev:after,
  .section04_2 .swiper-button-next:after, .section04_2 .swiper-button-prev:after {
    font-size: 20px;
  }

  .section04_2 .inner {
    padding: 0 20px;
  } 

  .section04_2 .swiper-button-next:after{
    right: -15px;
  }
  .section04_2 .swiper-button-prev:after{
    left: -15px;
  }

  .rollList {
    padding:15px 0;
    width: 90%;
  }
  
  .rollSwiper {
    height: 200px;
  }
  
  .rollName {
    font-size: 14px;
  }
  
  .rollPhone {
    font-size: 12px;
  }
  
  .rollTime {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .rollItem {
    padding: 8px 0px;
    height: 35px;
    font-size: 12px;
  }

  .bottomFixed a img {
    height: 20px;
  }

  .bottomFixed .time {
    font-size: 14px;
  }

  .bottomFixed .time img {
    width: 20px;
    animation: rotate360 1s linear 1;
    animation-delay: 0s;
  }

  header .logo {
    height: 30px;
  }

  header .btnBox img {
    height: 60px;
  }

  .rollTitle {padding: 50px 0 0;}

  .formArea {
    padding: 50px 15px;
  }

  .rollTitle > img:nth-child(1) {
    width: 65%;
  }
  .rollTitle a {
    width: 90%;
  }
}

/* Section04 버튼 순차 점등 애니메이션 (서로 다른 구간 전용) */
@keyframes btnGlow1 {
  0%, 33.333% { background-color: #2a7eff; }
  33.334%, 100% { background-color: #002f90; }
}

@keyframes btnGlow2 {
  0%, 33.333% { background-color: #002f90; }
  33.334%, 66.666% { background-color: #2a7eff; }
  66.667%, 100% { background-color: #002f90; }
}

@keyframes btnGlow3 {
  0%, 66.666% { background-color: #002f90; }
  66.667%, 100% { background-color: #2a7eff; }
}


.section04 .btnWrap a {
  will-change: background-color;
}

.section04 .btnWrap a:nth-child(1) { animation: btnGlow1 4.5s steps(1, end) infinite; }
.section04 .btnWrap a:nth-child(2) { animation: btnGlow2 4.5s steps(1, end) infinite; }
.section04 .btnWrap a:nth-child(3) { animation: btnGlow3 4.5s steps(1, end) infinite; }

/* Fixed header and content offset */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  z-index: 1000;
}

.container {
  padding-top: 70px; /* prevent content under header */
}

@media (max-width: 768px) {
  .container { padding-top: 60px; }
}

@media (max-width: 480px) {
  .container { padding-top: 50px; }
  header {
    height: 50px;
  }
  .callBtn {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .callBtn img {
    width: 155px;
    height:auto;
  }
}
