/* ═══════════════════════════════════════════════════════════════════
   NOVISHI Contact Page — contact.css
   Contact-specific styles only. Shared styles live in main.css,
   components.css, and footer.css.
═══════════════════════════════════════════════════════════════════ */

/* ─── Page Base ───────────────────────────────────────────────────── */
body { background: #f7f8fb; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.contact-hero {
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  padding: 64px 0 56px;
  text-align: center;
}

.contact-hero .section-eyebrow {
  display: block;
  margin-bottom: 16px;
}

.contact-hero__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #111827;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.contact-hero__desc {
  font-size: 17px;
  color: #4B5563;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Contact Section ─────────────────────────────────────────────── */
.contact-section {
  padding: 60px 0 80px;
}

/* Two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* ─── Shared card base ────────────────────────────────────────────── */
.contact-form-card,
.contact-info-card,
.contact-quick-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  padding: 36px 32px;
}

.contact-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.contact-card-desc {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ─── Right column ────────────────────────────────────────────────── */
.contact-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Contact Form ────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.contact-field label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.contact-required {
  color: #4F46E5;
  font-weight: 700;
  margin-left: 1px;
}

.contact-optional {
  color: #9CA3AF;
  font-weight: 400;
  font-size: 12px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

.contact-field textarea {
  min-height: 130px;
  line-height: 1.6;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3.5px rgba(79,70,229,.1);
}

.contact-field input.contact-invalid,
.contact-field textarea.contact-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

.contact-field-err {
  font-size: 12.5px;
  color: #DC2626;
  font-weight: 500;
  min-height: 18px;
  line-height: 1.3;
}

/* ─── Status message ──────────────────────────────────────────────── */
.contact-status {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.contact-status.show { display: block; }

.contact-status--success {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  color: #15803D;
}

.contact-status--error {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  color: #DC2626;
}

/* ─── Submit button ───────────────────────────────────────────────── */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 54px;
  padding: 0 32px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 28px rgba(17,24,39,.18);
  align-self: flex-start;
}

.contact-submit:hover:not(:disabled) {
  background: #1F2937;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(17,24,39,.24);
}

.contact-submit:active:not(:disabled) { transform: translateY(0); }

.contact-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.contact-submit:focus-visible {
  outline: 3px solid rgba(79,70,229,.45);
  outline-offset: 3px;
}

.contact-submit .co-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes contact-spin { to { transform: rotate(360deg); } }

/* ─── Contact Info Card ───────────────────────────────────────────── */
.contact-info-card .contact-card-desc {
  margin-bottom: 22px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: #EEF2FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #4F46E5;
  flex-shrink: 0;
}

.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.contact-info-body strong {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.contact-info-body a {
  font-size: 14.5px;
  color: #4F46E5;
  font-weight: 500;
  transition: color .2s;
}

.contact-info-body a:hover { color: #3730A3; }

.contact-info-body span {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
}

/* ─── Quick Support Card ──────────────────────────────────────────── */
.contact-quick-card .contact-card-desc {
  margin-bottom: 20px;
}

.contact-faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: #EEF2FF;
  color: #4F46E5;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 12px;
  transition: background .2s, color .2s, transform .15s;
}

.contact-faq-btn:hover {
  background: #E0E7FF;
  color: #3730A3;
  transform: translateX(3px);
}

.contact-faq-btn:focus-visible {
  outline: 3px solid rgba(79,70,229,.45);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ─── Trust Section ───────────────────────────────────────────────── */
.contact-trust {
  background: #fff;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  padding: 60px 0;
}

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

.contact-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: #f7f8fb;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  gap: 14px;
  transition: transform .25s, box-shadow .25s;
}

.contact-trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
}

.contact-trust-icon {
  width: 56px;
  height: 56px;
  background: #EEF2FF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #4F46E5;
  flex-shrink: 0;
}

.contact-trust-item h3 {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0;
}

.contact-trust-item p {
  font-size: 14.5px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-right-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .contact-trust-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 48px 0 40px;
  }

  .contact-hero__desc {
    font-size: 15.5px;
  }

  .contact-section {
    padding: 40px 0 60px;
  }

  .contact-form-card,
  .contact-info-card,
  .contact-quick-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .contact-trust {
    padding: 44px 0;
  }

  .contact-trust-grid {
    gap: 16px;
  }

  .contact-trust-item {
    padding: 24px 18px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .contact-right-col {
    grid-template-columns: 1fr;
  }

  .contact-trust-grid {
    grid-template-columns: 1fr;
  }

  .contact-trust-item {
    flex-direction: row;
    text-align: left;
    gap: 18px;
    padding: 22px 18px;
  }

  .contact-trust-icon {
    flex-shrink: 0;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-hero__title {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-trust-item { transition: none; }
  .contact-submit { transition: none; }
  .contact-faq-btn { transition: none; }
  .contact-submit .co-spinner { animation: none; }
}
