.hidden {
    display: none !important;
}
  
  .modal {
    background-color: #27293d;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .modal-content {
    background-color: #343f76;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}
  .signup-container {
    background-color: #27293d;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    margin: 100px auto;
    margin-top: 220px;
    text-align: left;
  }
  
  .signup-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
  }
  
  .signup-container .form-group {
    margin-bottom: 15px;
  }
  
  .signup-container input[type="text"],
  .signup-container input[type="tel"],
  .signup-container textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .signup-container button {
    display: inline-block;
    background-color: #5c5cf1;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
  }
  
  .signup-container button:hover {
    background-color: #4b4bce;
  }

  @media screen and (max-width: 768px) {
    #edit-modal.signup-container {
        width: 90%;
        max-width: 320px;
        padding: 15px;
        z-index: 999;
        max-height: 60vh;
        position: fixed;
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        background: white;
        
        /* 내용이 처음부터 보이도록 */
        display: flex;
        flex-direction: column;
    }

    #edit-modal form {
        /* 폼이 처음부터 보이도록 */
        display: flex;
        flex-direction: column;
        padding: 0; /* 패딩 제거 */
        margin: 0; /* 마진 제거 */
    }

    #edit-modal .form-group:first-child {
        margin-top: 10px; /* 첫 번째 폼 그룹에 상단 여백 추가 */
    }

    #edit-modal .form-group {
        margin-bottom: 12px;
        padding: 0 15px;
    }

    #edit-modal h2 {
        font-size: 16px;
        margin: 0 0 12px 0; /* 마진 재설정 */
        padding: 0 15px;
    }

    /* 나머지 스타일은 유지 */
    #edit-modal input[type="text"],
    #edit-modal input[type="password"] {
        padding: 8px;
        margin-bottom: 8px;
    }

    #edit-modal label {
        font-size: 14px;
        margin-bottom: 4px;
        display: block; /* 확실하게 블록 레벨로 설정 */
    }

    #edit-modal button {
        padding: 8px;
        margin: 8px 15px;
        width: calc(100% - 30px);
    }
}

/* 더 작은 모바일 화면 */
@media screen and (max-width: 480px) {
    #edit-modal.signup-container {
        width: 95%;
        margin: 10px auto;
    }

    #edit-modal form {
        padding-top: 15px;
        padding-bottom: 25px;
    }
}

  

  /* #edit-modal을 중앙에 배치하기 위한 스타일 */
#edit-modal {
    display: flex;
    justify-content: center;  /* 가로로 중앙 정렬 */
    align-items: center;      /* 세로로 중앙 정렬 */
    position: fixed;          /* 화면에 고정 */
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999;  /* 다른 요소 위로 띄우기 */
    padding: 0px;
  }
  
  /* 폼 스타일 */
  form {
    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;  /* 폼의 최대 너비 */
    box-sizing: border-box;
  }
  
  /* 각 입력 박스 스타일 */
  .form-group input {
    width: 100%;  /* 입력란 너비를 100%로 설정 */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  .form-group label {
    color: black;  /* 라벨 텍스트 색을 검정색으로 */
    font-weight: bold;  /* 라벨 텍스트 두껍게 */
    font-size: 14px;  /* 라벨 폰트 크기 설정 */
  }
  button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end;  /* 버튼을 오른쪽 끝으로 정렬 */
  }
  
  button:hover {
    background-color: #0056b3;
  }
  /* error-message 기본 스타일 */
  .error-message {
    display: none; /* 기본적으로 숨겨져 있음 */
    background: linear-gradient(135deg, #f44336, #e91e63); /* 그라디언트 배경 */
    color: white;
    padding: 10px 20px; /* 패딩 크기 줄이기 */
    border-radius: 8px; /* 모서리 반지름 줄이기 */
    font-size: 14px; /* 텍스트 크기 줄이기 */
    font-weight: 500;
    max-width: 350px; /* 상자의 최대 너비 줄이기 */
    margin: 15px auto; /* 상자 간격 줄이기 */

    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 부드러운 그림자 */
    opacity: 0; /* 기본 상태에서 투명 */
    transform: translateY(20px); /* 화면 아래에서 시작 */
    transition: opacity 0.4s ease, transform 0.4s ease; /* opacity와 transform을 부드럽게 전환 */
  }
  
  /* error-message 표시될 때 애니메이션 */
  .error-message.show {
    display: block;
    opacity: 1; /* 완전히 불투명 */
    transform: translateY(0); /* 원래 위치로 돌아옴 */
  }
  
  /* error-text 스타일 */
  .error-text {
    font-size: 16px; /* 텍스트 크기 줄이기 */
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
  }
  
  
  /* error-message 숨김 클래스 */
  .hidden {
    display: none !important;
  }

  #info {
    padding: 20px; /* 전체 섹션에 여백 추가 */
    max-width: 1200px; /* 최대 너비 제한 */
    margin: 0 auto; /* 중앙 정렬 */
    background-color: #141313; /* 배경색을 추가해서 구분 */
    border-radius: 10px; /* 테두리 둥글게 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 섀도우 추가 */
  }
  
  .menu-section {
    padding: 20px; /* 각 섹션에 패딩 추가 */
  }
  
  .intro-section, .steps-section, .features-section, .pricing-section, .extras-section, .cta-section {
    margin-bottom: 30px; /* 섹션 사이의 간격 추가 */
  }
  @media screen and (min-width: 1024px) {
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    p, li { font-size: 16px; }
    .step { margin-bottom: 20px; }
}

/* 중간 화면 (태블릿) */
@media screen and (max-width: 1023px) and (min-width: 768px) {
    .menu-section { padding: 15px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    p, li { font-size: 15px; }
    .step { margin-bottom: 15px; }
}

/* 작은 화면 (모바일) */
@media screen and (max-width: 767px) {
    .menu-section { 
        padding: 10px;
        width: 90%; /* 화면 양쪽에 약간의 여백 */
        margin: 0 auto;
        box-sizing: border-box;
    }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    p, li { font-size: 14px; }
    .step { margin-bottom: 12px; }
    
    /* 테이블 조정 */
    .pricing-table {
        font-size: 13px;
    }
    .pricing-table th,
    .pricing-table td {
        padding: 6px;
    }
}

/* 매우 작은 화면 */
@media screen and (max-width: 480px) {
    .menu-section { 
        padding: 8px;
        width: 98%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }
    p, li { font-size: 13px; 
    word-wrap: break-word;
  padding-right: 5px;}
    
    /* 단계별 설명 조정 */
    .step {
        margin-bottom: 10px;
        display: flex;
        align-items: flex-start;
    }
    .step-number {
        min-width: 20px;
        margin-right: 8px;
    }
    
    /* 특징 목록 조정 */
    .features-section ul {
        padding-left: 15px;
    }
    
    /* 테이블 더 작게 조정 */
    .pricing-table {
        font-size: 12px;
    }
    .pricing-table th,
    .pricing-table td {
        padding: 4px;
    }
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

/* 열 너비 조정 */
.pricing-table th:first-child,
.pricing-table td:first-child {
  width: 25%; /* 옵션 열을 더 좁게 */
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  width: 75%; /* 가격 열을 더 넓게 */
}

/* 모바일 화면에서의 테이블 조정 */
@media screen and (max-width: 768px) {
  .pricing-table {
      width: 85%;
      margin: 15px auto;
      font-size: 15px;
  }
  
  .pricing-table th,
  .pricing-table td {
      padding: 6px;
  }

  /* 모바일에서의 열 너비 조정 */
  .pricing-table th:first-child,
  .pricing-table td:first-child {
      width: 30%;
  }

  .pricing-table th:last-child,
  .pricing-table td:last-child {
      width: 70%;
  }
}

/* 더 작은 모바일 화면 */
@media screen and (max-width: 480px) {
  .pricing-table {
      width: 90%;
      font-size: 11px;
  }
  
  .pricing-table th,
  .pricing-table td {
      padding: 4px;
  }
}
.features-image {
  max-width: 20%; /* 현재 크기의 20%로 줄임 */
  height: auto;
  margin: 15px auto;
  display: block;
  padding: 30px;
  float: left;
  border-radius: 40px;
}

/* 모바일 화면에서도 동일한 비율 유지 */
@media screen and (max-width: 768px) {
  .features-image {
      
      padding-left: 25px;
      float: left;
  }
}

/* 더 작은 모바일 화면 */
@media screen and (max-width: 480px) {
  .features-image {
      max-width: 20%;
      padding-left: 20px;
      float: left;
  }
}
  
  
  #password-modal {
    position: fixed; /* 스크롤 관계없이 화면에 고정 */
    top: 50%; /* 화면 세로 중앙 */
    left: 50%; /* 화면 가로 중앙 */
    transform: translate(-50%, -50%); /* 정확히 중앙에 위치하도록 조정 */
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px; /* 최대 너비 설정 */
    opacity: 1;
    z-index: 900; /* 다른 요소들 위에 표시되도록 설정 */
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  @media screen and (max-width: 768px) {
    #password-modal.modal {
        width: 80%; /* 화면의 80% 너비로 */
        max-width: 300px; /* 최대 너비 300px로 제한 */
        margin: 20px auto; /* 상하 여백 20px, 좌우 자동 중앙 정렬 */
        padding: 15px;
    }

    #password-modal input[type="password"] {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-sizing: border-box;
    }

    #password-modal button {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
        border-radius: 5px;
    }

    #password-modal h2 {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
    }
}
  
  #password-modal h2 {
    font-weight: bold;
    color: #333;
    font-size: 18px; /* 글씨 크기 약간 작게 설정 */
    margin-bottom: 20px;
  }
  
  #password {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
  }
  
  #password:focus {
    border-color: #5b9bd5;
    outline: none;
  }
  
  #password-btn {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #5b9bd5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
  }
  
  #password-btn:hover {
    background-color: #4a8bc2;
  }
  
  #error-message {
    display: none;
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
  }
  
  #error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  
  #error-message .error-text {
    font-size: 18px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
  }
  
/* 견적서 테이블 스타일 */
.estimate-table {
    background-color: #141313;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;  /* 가로 스크롤 추가 */
    -webkit-overflow-scrolling: touch;  /* iOS 스크롤 부드럽게 */
}

table {
    width: 100%;
    min-width: 800px;  /* 테이블 최소 너비 설정 */
    border-collapse: collapse;
    margin-bottom: 20px;
    color: #ffffff;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #35374a;
}

th {
    background-color: #35374a;
    font-weight: bold;
}

tr:hover {
    background-color: #2c2e43;
}

.summary {
    text-align: right;
    font-size: 1.1em;
    color: #ffffff;
    padding: 15px 0;
    border-top: 1px solid #35374a;
}

.summary div {
    margin: 8px 0;
}

.total {
    font-size: 1.2em;
    font-weight: bold;
    color: #5c5cf1;
}

/* 모바일 최적화 추가 */
@media screen and (max-width: 768px) {
    .estimate-table {
        margin: 10px -10px;  /* 네거티브 마진으로 패딩 상쇄 */
        border-radius: 0;    /* 모바일에서는 모서리를 직각으로 */
    }

    .estimate-table::after {
        content: '← 옆으로 스크롤하여 더 보기 →';
        display: block;
        text-align: center;
        padding: 5px;
        color: #5c5cf1;
        font-size: 12px;
        margin-top: 10px;
    }

    /* 스크롤바 스타일링 */
    .estimate-table::-webkit-scrollbar {
        height: 4px;
    }

    .estimate-table::-webkit-scrollbar-track {
        background: #1e1e2f;
    }

    .estimate-table::-webkit-scrollbar-thumb {
        background: #5c5cf1;
        border-radius: 2px;
    }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  color: #cccccc;
  margin-left: 10px;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #555;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 5px; /* 패딩 추가 */
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 105%; /* 툴팁을 오른쪽에 표시 */
  transform: translateY(-50%); /* 수직 중앙 정렬 */
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  .tooltiptext {
      font-size: 9px;
      padding: 1px;
  }
}

/* 견적서 선택기 스타일 유지 */
.estimate-selector {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: #1f180e;
    color: rgb(255, 255, 255);
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.estimate-selector:hover {
    border-color: #7a7af0;
    box-shadow: 0 0 10px rgba(92, 92, 241, 0.2);
}

.estimate-selector option {
    background-color: #27293d;
    color: white;
    padding: 8px;
}



#selectedEstimateId {
    color: #5c5cf1;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
}

/* 금액에 천단위 쉼표를 위한 글꼴 설정 */
.summary span, td {
    font-family: 'Courier New', monospace;
}

@media (min-width: 1200px) {
    #menu button {
        font-size: 14px;
        max-width: 200px;
        margin-right: 15px;
    }
}

#menu button:hover,
#menu button.active {
    background-color: #5c5cf1;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(92, 92, 241, 0.3);
}
/* 로딩 스플래시 스타일 */
.loading-splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #5c5cf1;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-splash p {
    color: #5c5cf1;
    font-size: 18px;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.estimate-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
  
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.notice-banner {
  background-color: #ff6600;
  color: white;
  text-align: center;
  padding:18px 0;
  font-weight: bold;
  font-size: 18px;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #010101;
  padding: 12px 20px;
}

.logo {
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.menu {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.menu li {
  display: inline;
}

.menu button {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}

.menu button:hover {
  color: #ff6600;
}

.action-button {
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: #333;
  color: white;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1100;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
}



.mobile-menu {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000 !important;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  opacity: 0; /* 초기 투명도 */
  visibility: hidden; /* 초기 숨김 */
  transition: opacity 0.3s ease, visibility 0.3s ease; /* 페이드 효과 */
  overflow: hidden;
  max-height: 0; /* 초기 높이 설정 */
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  max-height: 500px; /* 보일 때 최대 높이 설정 */
}


.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  width: 100%;
}

.mobile-menu li {
  margin: 0; /* 리스트 아이템 간의 기본 마진 제거 */
  font-size: 18px;
  color: #333;
  padding: 15px 0; /* 위아래 간격 설정 */
  border-bottom: 0.7px solid #ddd; /* 구분선 추가 */
  transition: background-color 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu li:active {
  transform: scale(0.98);
}

.mobile-menu li:first-child {
  border-top: 0.7px solid #ddd; /* 첫 번째 아이템 위에 구분선 추가 */
  margin-top: 32px;
}

.mobile-menu li:last-child {
  border-bottom: none; /* 마지막 아이템의 구분선 제거 */
}


.mobile-action-button {
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px auto 0; /* 상단 여백, 수평 가운데 정렬 */
  width: 80%;
  max-width: 300px;
  transition: background-color 0.3s;
  display: block;
}

.mobile-action-button:hover {
  background-color: #333;
  color: white;
}

.hidden {
  display: none;
}

/* 미디어 쿼리 */
@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .action-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}


