/* regular */
@font-face {
    font-family: 'Noto Sans Korean';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Noto Sans Regular'), local('NotoSans-Regular'),
    url(/static/fonts/NotoSansKR-Regular-Hestia.woff) format('woff'),
    url(/static/fonts/NotoSansKR-Regular-Hestia.otf) format('opentype');
}

/* bold */
@font-face {
    font-family: 'Noto Sans Korean';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Noto Sans Bold'), local('NotoSans-Bold'),
    url(/static/fonts/NotoSansKR-Bold-Hestia.woff) format('woff'),
    url(/static/fonts/NotoSansKR-Bold-Hestia.otf) format('opentype');
}

html, body {
  font-family: 'Noto Sans Korean', Verdana, sans-serif;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem 0;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h2.deco {
  font-size: 1.8em;
  background: #f5f5f5;
  padding: 0.3em 0;
  text-align: center;
}

h3 {
  font-size: 1.75rem;
}

p.lead {
  font-size: 1.8em;
  font-weight: bold;
  color: #343a40;
  margin: 0.5em 0;
}

hr {
  height: 1px;
  border-width: 0;
  background: #ffffff00;
}

a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

.enlarge {
  font-size: 1.5em !important;
}

.sound_only {
  display: none;
}

br.mini-wrap {
  display: none;
}

hr {
  border: 0;
  height: 2px;
}

.main-img {
  width: 60%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 700px) {
  p.lead {
    font-size: 1.3em !important;
  }
  .enlarge {
    font-size: 1.3em !important;
  }
  h2.deco {
    font-size: 1.4em !important;
  }
  .content-section h3 {
    font-size: 1.3em !important;
    font-weight: bold;
  }
  br.mini-wrap {
    display: inherit !important;
  }
}

/* bootstrap */

.m-0 {
  margin: 0 !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.text-center {
  text-align: center !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

@media screen and (max-width: 1200px) {
  .container {
    width: 98%;
    padding-left: 1%;
    padding-right: 1%;
  }
}

.row {
  --grid-gutter-size: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--grid-gutter-size);
}

.row .col {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 calc(50% - var(--grid-gutter-size));
  box-sizing: border-box;
}


.row p {
  margin: 0;
  line-height: 1.8 !important;
}

@media (max-width: 900px) {
  .col {
     flex: 1 1 100% !important;
  }
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #343a40;
}

.form-group .required {
  color: #dc3545;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Noto Sans Korean', Verdana, sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Noto Sans Korean', Verdana, sans-serif;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  animation: pulse-blue 2s infinite;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  animation: none;
}

.btn-submit:active {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(0);
}

.btn-submit:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.contact-info {
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.contact-info p {
  margin: 0.5rem 0;
  line-height: 1.8;
}

@media screen and (max-width: 700px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* 모바일에서 줌 방지 */
  }
}

/* Loading Indicator */
.loading-indicator {
  text-align: center;
  padding: 2rem;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-indicator p {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

/* Success Message */
.success-message {
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-weight: bold;
}

.success-message h2 {
  color: #28a745;
  font-size: 2rem;
}

@media screen and (max-width: 700px) {
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .success-message h2 {
    font-size: 1.5rem;
  }
}

/* 플로팅 문의하기 버튼 */
.floating-contact-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  z-index: 1000;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s ease;
  pointer-events: none;
  border: 2px solid #fff;
  white-space: nowrap;
}

.floating-contact-btn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: pulse-blue 2s infinite;
}

/* 버튼 호버 효과 */
.floating-contact-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #fff;
  text-decoration: none;
  animation: none; /* 호버 시 펄스 애니메이션 중지 */
}

.floating-contact-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* 펄스 효과 (파란색 버튼용) */
@keyframes pulse-blue {
  0% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* 모바일 반응형 */
@media screen and (max-width: 700px) {
  .floating-contact-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}