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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background-color: #fafafa;
  color: #2a2a2a;
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin-top: 70px;
}

.inquiry-section {
  max-width: 760px;
  margin: 28px auto 40px;
  padding: 56px 40px 64px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.gradient-line {
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #667eea 0%, #764ba2 50%, #f093fb 100%);
  margin-bottom: 36px;
  border-radius: 3px;
}

.inquiry-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #667eea;
  text-align: center;
  margin-bottom: 8px;
}

.inquiry-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.inquiry-lead {
  text-align: center;
  color: #666666;
  margin-bottom: 36px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #1a1a1a;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.field-error {
  font-size: 12px;
  color: #dc2626;
  line-height: 1.4;
}

.consent-box {
  padding: 16px 16px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fafafa;
}

.consent-box.is-invalid {
  border-color: #dc2626;
  background: #fff7f7;
}

.consent-summary {
  font-size: 13px;
  color: #555555;
  margin-bottom: 12px;
}

.consent-summary span {
  display: block;
}

.consent-summary span + span {
  margin-top: 4px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #667eea;
  flex-shrink: 0;
}

.consent-row label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
}

.consent-link {
  display: inline-block;
  margin-top: 8px;
  margin-left: 28px;
  font-size: 13px;
  font-weight: 600;
  color: #667eea;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-box .field-error {
  margin-top: 8px;
  margin-left: 28px;
}

.form-status {
  min-height: 1.4em;
  font-size: 14px;
  color: #b45309;
}

.form-status.is-error {
  color: #dc2626;
}

.inquiry-submit,
.inquiry-reset {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.28);
  transition: transform 0.12s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.inquiry-submit:hover,
.inquiry-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.36);
}

.inquiry-submit:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

body.inquiry-modal-open {
  overflow: hidden;
}

.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.inquiry-modal[hidden] {
  display: none;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 28, 0.46);
  animation: inquiryFade 0.28s ease;
}

.inquiry-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 36px 28px 28px;
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  animation: inquiryPop 0.42s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.inquiry-modal-dialog h2 {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.inquiry-modal-dialog p {
  color: #555555;
  margin-bottom: 22px;
}

.inquiry-modal-dialog .inquiry-reset {
  width: 100%;
}

.check-badge {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkBadge 0.5s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.check-svg {
  width: 72px;
  height: 72px;
}

.check-circle,
.check-mark {
  fill: none;
  stroke: #667eea;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-circle {
  stroke-width: 3;
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  animation: drawCircle 0.55s ease forwards;
}

.check-mark {
  stroke-width: 4;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 0.35s 0.42s ease forwards;
}

@keyframes inquiryFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inquiryPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkBadge {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-modal-backdrop,
  .inquiry-modal-dialog,
  .check-badge,
  .check-circle,
  .check-mark {
    animation: none;
  }

  .check-circle,
  .check-mark {
    stroke-dashoffset: 0;
  }
}

.inquiry-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .inquiry-section {
    margin: 16px 16px 28px;
    padding: 40px 20px 48px;
    border-radius: 18px;
  }

  .inquiry-title {
    font-size: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .inquiry-submit,
  .inquiry-reset {
    width: 100%;
  }
}
