/* ── CONTACT PANEL ── */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 40px rgba(0,0,0,0.14);
}

.contact-panel.open {
  transform: translateX(0);
}

.contact-panel-header {
  padding: 40px 36px 28px;
  flex-shrink: 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.contact-panel-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  max-width: 340px;
}

.contact-panel-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 6px;
  transition: color 0.2s;
}

.contact-panel-close:hover { color: var(--black); }

.contact-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.contact-input,
.contact-select,
.contact-textarea {
  padding: 13px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--black);
  background: #f9f9f9;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--black);
  background: #fff;
}

.contact-input::placeholder,
.contact-textarea::placeholder { color: #bbb; }

.contact-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

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

.contact-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--black);
}

.contact-checkbox-row label {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.contact-recaptcha {
  font-size: 12px;
  color: #aaa;
  line-height: 1.5;
}

.contact-recaptcha a { color: #888; }

.contact-panel-footer {
  padding: 20px 36px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-back {
  font-size: 14px;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.contact-submit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.contact-submit:hover { opacity: 0.8; }

/* 완료 화면 */
.contact-complete {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 36px;
  gap: 16px;
}

.contact-complete-icon {
  width: 64px;
  height: 64px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-complete h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}

.contact-complete p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .contact-panel { width: 100vw; }
  .contact-panel-header,
  .contact-panel-body,
  .contact-panel-footer { padding-left: 20px; padding-right: 20px; }
  .contact-row { grid-template-columns: 1fr; }
}
