:root {
  --primary: #0d58fc;
  --primary-light01: #3e7bff;
  --primary-dark: #0646d8;
  --primary-soft: rgba(13, 88, 252, 0.08);
  --primary-soft01: rgba(13, 88, 252, 0.2);
  --primary-light: #eaf1ff;
  --navy: #0c1b2a;
  --navy-light: #132b44;
  --text: #111827;
  --text-sub: #535557;
  --line: #e5eaf1;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --white: #ffffff;
  --formgray: #d8dee8;
  --star: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 14px 40px rgba(15, 35, 75, 0.08);
  --radius: 18px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.7vw, 3.7rem); }
h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }
h4 { font-size: 1rem; font-weight: 600; }

p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
}

section {
  width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.text-container {
  text-align: center;
  margin-bottom: 52px;
}

.text-container .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

input[type="checkbox"] {
    transform: scale(1.15);
    transform-origin: left center;
    accent-color: var(--primary);
    transform: scale(1.5);
    padding-right: 0;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.text-container h2 {
  margin-bottom: 14px;
}

.text-container p {
  font-size: 1.0625rem;
  margin: 0 auto;
  color: var(--text-sub);
}

.content-container {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  height: 100%;
  border-radius: 10px;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 88, 252, 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
  border-radius: 7px;
  width:50%;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/******************버튼애니메이션**********************/
.header-cta .btn-primary,
.fixed-form .btn-primary,
.btnSubmit.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background: linear-gradient(135deg, #0c59fd 0%, #0047e8 100%);
  border: none;

  box-shadow: 0 12px 28px rgba(12, 89, 253, 0.28);
}

/* 내부 회전 라인 */
.header-cta .btn-primary::before,
.fixed-form .btn-primary::before, .btnSubmit.btn-primary::before
{
  content: "";

  position: absolute;
  inset: 2px;
  border-radius: inherit;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 60deg,
    rgba(255,255,255,0.95) 90deg,
    #63f7ff 120deg,
    rgba(255,255,255,0.95) 145deg,
    transparent 180deg,
    transparent 360deg
  );

  animation: btnRotate 2.5s linear infinite;

  z-index: -2;
}

/* 버튼 실제 배경 */
.header-cta .btn-primary::after,
.frmConsult .btn-primary ::after,
.btnSubmit.btn-primary::after {
  content: "";

  position: absolute;
  inset: 3px;
  border-radius: inherit;

  background: linear-gradient(135deg, #0c59fd 0%, #0047e8 100%);

  z-index: -1;
}

.header-cta .btn-primary:hover,
.fixed-form .btn-primary:hover {
  transform: translateY(-1px);

  box-shadow:
    0 16px 34px rgba(12, 89, 253, 0.38),
    0 0 18px rgba(77, 252, 255, 0.35);
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 10px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .text-container {
    margin-bottom: 36px;
  }

  .text-container p {
    font-size: 0.9375rem;
  }

  .btn-lg {
    padding: 10px 28px;
    font-size: 1rem;
  }
}
