/* Webflow "Made in Webflow" 배지 숨김 — 런타임 JS 가 주입하는 .w-webflow-badge 를 CSS 로 비표시 */
.w-webflow-badge {
  display: none !important;
}

/* Contact 모달 — Figma node 262:1158 디자인 기준 */
.cm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cm-overlay.cm-open {
  display: flex;
  opacity: 1;
}

.cm-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 56px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat', system-ui, sans-serif;
}

.cm-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
.cm-close:hover { color: #111; }

.cm-title {
  font-size: 44px;
  font-weight: 700;
  color: #111;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}

.cm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.cm-field { display: flex; flex-direction: column; gap: 8px; }
.cm-field.cm-full { grid-column: 1 / -1; }

.cm-label {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}
.cm-req { color: #10b981; margin-left: 2px; }

.cm-input,
.cm-textarea {
  width: 100%;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 15px;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.cm-input::placeholder,
.cm-textarea::placeholder { color: #9ca3af; }
.cm-input:focus,
.cm-textarea:focus { border-color: #10b981; background: #fff; }
.cm-textarea { min-height: 170px; resize: vertical; }

.cm-input.cm-error,
.cm-textarea.cm-error { border-color: #dc2626; background: #fef2f2; }

.cm-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 22px;
  font-size: 14px;
  color: #374151;
}
.cm-agree input { width: 18px; height: 18px; accent-color: #111; cursor: pointer; }
.cm-agree label { cursor: pointer; }

.cm-actions { display: flex; justify-content: center; }
.cm-submit {
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 999px;
  padding: 16px 64px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.cm-submit:hover { background: #000; }
.cm-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* 상태 메시지 */
.cm-status {
  text-align: center;
  font-size: 14px;
  margin-top: 16px;
  min-height: 18px;
}
.cm-status.cm-ok { color: #10b981; }
.cm-status.cm-fail { color: #dc2626; }

/* 모바일 — 1열 */
@media (max-width: 640px) {
  .cm-modal { padding: 36px 24px; }
  .cm-title { font-size: 34px; }
  .cm-grid { grid-template-columns: 1fr; }
}
