/* ================================================
   contact.css — JOYS Portfolio / Contact Page
   ================================================ */

.contactWrap section { padding: clamp(60px, 10vw, 100px) 0; }

@keyframes ch-slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ch-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes contact-pulse {
  0%        { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}


/* ================================================
   PAGE HERO
   ================================================ */
.contact-hero-sec {
  position: relative;
  padding: clamp(120px, 18vw, 200px) 0 clamp(60px, 8vw, 100px) !important;
  background: var(--color-bg-point);
  overflow: hidden;
  text-align: center;
}

.contact-hero-bg-text {
  position: absolute;
  font-family: 'Hahmlet', 'Pretendard', sans-serif;
  font-size: clamp(100px, 22vw, 300px);
  color: rgba(0, 0, 0, 0.03);
  letter-spacing: -0.04em;
  user-select: none;
  white-space: nowrap;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: ch-fadeIn 1.0s ease forwards;
  opacity: 0;
}

.contact-hero-sec .container { position: relative; z-index: 1; }

.contact-hero-label {
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  opacity: 0.8;
  margin-bottom: 0.8rem;
  animation: ch-slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}
.contact-hero-title {
  font-family: 'Hahmlet', 'Pretendard', sans-serif;
  font-size: clamp(2.6rem, 7vw, 6rem);
  font-weight: 700;
  color: #1a1714;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: ch-slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.22s;
}
.contact-hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: rgba(0, 0, 0, 0.38);
  margin-top: 20px;
  line-height: 1.85;
  font-weight: 300;
  animation: ch-slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.36s;
}


/* ================================================
   CONTACT MAIN SECTION
   ================================================ */
.contact-main-sec { background: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}


/* ── 왼쪽: 연락 정보 ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.contact-info__eyebrow {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}
.contact-info__eyebrow b { font-weight: 800; }

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-item__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: oklch(0.96 0.02 40);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item__icon i { font-size: 15px; color: var(--color-primary); }

.contact-info-item__body { display: flex; flex-direction: column; gap: 3px; }
.contact-info-item__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}
.contact-info-item__value {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #1a1714;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-info-item__value--hire { color: #00c853; }

@media (hover: hover) {
  a.contact-info-item__value:hover { color: var(--color-primary); }
}

.contact-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  position: relative;
}
.contact-dot::before {
  content: '';
  position: absolute;
  width: 8px;
  aspect-ratio: 1/1;
  inset: 0;
  border-radius: 50%;
  animation: contact-pulse 1.4s ease-in-out infinite;
  top: 50%;
  left: 50%;
}

.contact-info-item__value--hire .contact-dot:before,    .contact-info-item__value--hire .contact-dot    { background: #00c853; }
.contact-info-item__value--company .contact-dot:before, .contact-info-item__value--company .contact-dot { background: #2196f3; }
.contact-info-item__value--project .contact-dot:before, .contact-info-item__value--project .contact-dot { background: #ff9800; }

.contact-info-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: var(--color-bg-point);
  border-radius: 8px;
}
.contact-info-note i { font-size: 14px; color: var(--color-primary); margin-top: 2px; }
.contact-info-note p { font-size: 13px; color: rgba(0, 0, 0, 0.5); line-height: 1.7; }


/* ── 오른쪽: 문의 폼 ── */
.contact-form-wrap { display: flex; flex-direction: column; gap: 18px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--color-bg-point);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1714;
  letter-spacing: 0.02em;
}
.contact-required { color: var(--color-primary); }

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #1a1714;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(0, 0, 0, 0.3); }

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(0.88 0.04 40);
}

.contact-field--invalid input,
.contact-field--invalid textarea {
  border-color: #e5484d;
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239b4f3a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
  cursor: pointer;
}

/* 허니팟 (실제 사용자에게는 보이지 않음) */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: clamp(14px, 2vw, 16px) 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
@media (hover: hover) {
  .contact-submit-btn:hover {
    background: #7f3d2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(155, 79, 58, 0.4);
  }
}

/* 알림 메시지 */
.contact-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.contact-alert i { font-size: 16px; flex-shrink: 0; }
.contact-alert--success {
  background: oklch(0.95 0.05 150);
  color: #1a7d3a;
}
.contact-alert--error {
  background: oklch(0.95 0.04 25);
  color: #c0392b;
}


/* ================================================
   반응형
   ================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 560px) {
  .contact-form-row { grid-template-columns: 1fr; }
}