/* Gmarket Sans 폰트 */
@font-face {
  font-family: 'Gmarket Sans';
  src: url('font/GmarketSansTTFLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('font/GmarketSansTTFMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Gmarket Sans';
  src: url('font/GmarketSansTTFBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1rem 0;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  font-family: 'Gmarket Sans', -apple-system, sans-serif;
  text-align: center;
}

.wrap {
  width: 100%;
  max-width: 680px;
}

.banner-wrap {
  width: 100%;
}

.banner-link {
  display: block;
  text-decoration: none;
}

.banner-img {
  display: block;
  width: 680px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

/* 보험회사 로고 무한 스크롤 */
.logo-marquee {
  width: 100%;
  max-width: 680px;
  overflow: hidden;
  background: #f5f5f5;
  padding: 12px 0;
}

.logo-marquee-inner {
  width: 100%;
  overflow: hidden;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: logoScroll 18s linear infinite;
}

.logo-track img {
  flex-shrink: 0;
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 문의 폼 - 트렌디 카드 스타일 */
.inquiry-form {
  width: 100%;
  max-width: 680px;
  padding: 40px 28px 44px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: hidden;
  box-sizing: border-box;
}

.form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.form-group {
  width: 100%;
  max-width: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.form-label {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #334155;
  text-align: left;
  letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Gmarket Sans', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  box-sizing: border-box;
}

.form-group select {
  padding-right: 40px;
  cursor: pointer;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
  background: #f8fafc;
  background-image: none;
  padding-right: 18px;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
  background-color: #fff;
}

.form-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.phone-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.phone-inputs .form-label {
  display: none;
}

.phone-prefix {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #334155;
  flex-shrink: 0;
}

.phone-inputs input {
  width: 72px;
  min-width: 0;
  max-width: 80px;
  text-align: center;
  flex: 1 1 72px;
}

.dash {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.gender-options {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.radio-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.2s;
}

.radio-wrap:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.radio-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-options .radio-wrap:has(input:checked) {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  color: #0d9488;
}

.form-note {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin: 0;
}

.form-group-check {
  max-width: 380px;
}

.check-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: center;
  flex-wrap: wrap;
  padding: 12px 0;
}

.check-wrap input {
  width: 20px;
  height: 20px;
  accent-color: #0d9488;
  flex-shrink: 0;
}

.link-view {
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.link-view:hover {
  border-bottom-color: #0d9488;
}

/* 버튼 - 그라데이션 + 트렌디 */
.btn-submit {
  margin-top: 8px;
  padding: 18px 32px;
  width: 100%;
  max-width: 340px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #0c5c55 100%);
  background-size: 200% 200%;
  animation: btnGradient 4s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: btnShineMove 2.5s ease-in-out infinite;
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes btnShineMove {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 개인정보 동의 모달 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #222;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 13px;
  line-height: 1.75;
  color: #444;
  text-align: left;
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 4px;
}

.modal-footer {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid #eee;
  text-align: center;
}

.btn-modal-close {
  padding: 12px 32px;
  border: none;
  border-radius: 10px;
  background: #1a7c47;
  color: #fff;
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.btn-modal-close:hover {
  background: #156b3c;
}

/* 심의문구 섹션 */
.review-notice {
  width: 100%;
  max-width: 680px;
  padding: 20px 24px;
  background: #454545;
  text-align: center;
}

.review-notice-content {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* 푸터 */
.review-footer {
  width: 100%;
  max-width: 680px;
  padding: 28px 20px;
  background: #2d2d2d;
  border-top: 1px solid #444;
  text-align: center;
}

.review-content {
  font-family: 'Gmarket Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.9;
  color: #fff;
  white-space: pre-line;
}

/* 모바일: 모든 섹션 좌우 여백 없이 풀폭 */
@media (max-width: 680px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  .wrap {
    max-width: 100%;
  }

  /* 배너 이미지: 화면 너비에 맞춰 꽉 차게, 잘리지 않게 */
  .banner-wrap {
    width: 100%;
    max-width: 100%;
  }

  .banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* 로고 마키: 풀폭 */
  .logo-marquee {
    width: 100%;
    max-width: 100%;
  }

  /* 문의폼: 좌우 여백 없이 풀폭 */
  .inquiry-form {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .form-group {
    max-width: 100%;
  }
  .btn-submit {
    max-width: 100%;
  }

  /* 심의문구·푸터: 풀폭 */
  .review-notice,
  .review-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}

/* 우하단 고정 버튼: TOP, 전화 */
.fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fab-top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.fab-top svg {
  width: 14px;
  height: 14px;
}

.fab-top-txt {
  font-family: 'Gmarket Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.fab-phone {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
