/* ============================================================
   CONTACT US PAGE STYLES
   Scoped under #contactPage — zero conflict with other pages
   ============================================================ */

/* ----------------------------------------------------------
   BASE — Navbar offset for fixed header
   ---------------------------------------------------------- */
#contactPage {
  padding-top: 96px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
}

/* ----------------------------------------------------------
   HEADER BANNER
   ---------------------------------------------------------- */
#contactPage .contact-header {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 19, 43, 0.82), rgba(11, 19, 43, 0.65)),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1920&q=80') no-repeat center center / cover;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 50px 24px;
  overflow: hidden;
}

#contactPage .contact-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

#contactPage .header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

#contactPage .header-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

#contactPage .header-content h1 {
  color: #ffffff !important;
}

#contactPage .header-content p {
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  color: #e2e8f0;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   MAIN LAYOUT — Two Column
   ---------------------------------------------------------- */
#contactPage .contact-main {
  padding: 60px 24px 100px;
  display: flex;
  justify-content: center;
}

#contactPage .contact-container {
  display: flex;
  max-width: 1100px;
  width: 100%;
  align-items: flex-start;
  gap: 50px;
}

/* ----------------------------------------------------------
   LEFT — Contact Info
   ---------------------------------------------------------- */
#contactPage .contact-info {
  flex: 1;
  padding-top: 10px;
}

#contactPage .contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

#contactPage .contact-info > p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Info Details List */
#contactPage .info-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#contactPage .info-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

#contactPage .info-details li i {
  color: #ea4c89;
  font-size: 1.15rem;
  margin-top: 4px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

#contactPage .info-details li a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

#contactPage .info-details li a:hover {
  color: #ea4c89;
}

#contactPage .reply-note {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Decorative Artwork */
#contactPage .decorative-artwork {
  position: relative;
  margin-top: 50px;
  height: 80px;
  width: 200px;
}

#contactPage .dotted-curve {
  position: absolute;
  width: 100%;
}

#contactPage .paper-plane {
  position: absolute;
  right: 10px;
  bottom: 20px;
  color: #cbd5e0;
  font-size: 1.5rem;
  transform: rotate(20deg);
}

/* ----------------------------------------------------------
   RIGHT — Form Container
   ---------------------------------------------------------- */
#contactPage .contact-form-container {
  flex: 1.1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: visible;
}

/* Form Row — Side by side fields */
#contactPage .form-row {
  display: flex;
  gap: 20px;
}

/* Input Group */
#contactPage .input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

/* Labels — visually hidden but accessible */
#contactPage .input-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inputs & Textarea */
#contactPage .input-group input,
#contactPage .input-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  outline: none;
  background-color: #f8fafc;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

#contactPage .input-group input:focus,
#contactPage .input-group textarea:focus {
  border-color: #ea4c89;
  box-shadow: 0 0 0 3px rgba(234, 76, 137, 0.08);
  background-color: #ffffff;
}

#contactPage .input-group input::placeholder,
#contactPage .input-group textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

#contactPage .input-group textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 180px;
}

/* Field Error */
#contactPage .field-error {
  display: none;
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 4px;
  padding-left: 2px;
  align-items: center;
  gap: 4px;
}

#contactPage .field-error i {
  font-size: 0.7rem;
}

#contactPage .input-group.has-error .field-error {
  display: flex;
}

#contactPage .input-group.has-error input,
#contactPage .input-group.has-error textarea {
  border-color: #dc2626;
  background-color: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}

/* Shake animation for errors */
@keyframes contactFieldShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

#contactPage .input-group.shake-it input,
#contactPage .input-group.shake-it textarea {
  animation: contactFieldShake 0.4s ease;
}

/* ----------------------------------------------------------
   SUBMIT BUTTON
   ---------------------------------------------------------- */
#contactPage .submit-btn {
  width: 100%;
  background: #ea4c89;
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(234, 76, 137, 0.25);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#contactPage .submit-btn:hover {
  background: #f05a96;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 76, 137, 0.35);
}

#contactPage .submit-btn:active {
  transform: scale(0.97);
}

/* Loading State */
#contactPage .submit-btn .btn-loading {
  display: none;
}

#contactPage .submit-btn.loading .btn-text {
  display: none;
}

#contactPage .submit-btn.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#contactPage .submit-btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

/* ----------------------------------------------------------
   SUCCESS MESSAGE
   ---------------------------------------------------------- */
#contactPage .form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: contactFadeIn 0.5s ease forwards;
}

#contactPage .form-success.show {
  display: block;
}

#contactPage .form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 16px;
}

#contactPage .form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

#contactPage .form-success p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

#contactPage .success-close-btn {
  background: #ea4c89;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

#contactPage .success-close-btn:hover {
  background: #f05a96;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   RESPONSIVE — Tablet (max-width: 1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  #contactPage {
    padding-top: 80px;
  }

  #contactPage .contact-container {
    gap: 36px;
  }

  #contactPage .contact-form-container {
    padding: 32px;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — Mobile (max-width: 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  #contactPage {
    padding-top: 72px;
  }

  #contactPage .contact-header {
    min-height: 150px;
    padding: 30px 20px;
  }

  #contactPage .contact-main {
    padding: 24px 16px 100px;
  }

  #contactPage .contact-container {
    flex-direction: column;
    gap: 32px;
  }

  #contactPage .contact-info {
    padding-top: 0;
  }

  #contactPage .contact-info h2 {
    font-size: 1.5rem;
  }

  #contactPage .contact-info > p {
    margin-bottom: 28px;
    font-size: 0.9rem;
  }

  #contactPage .info-details {
    gap: 20px;
  }

  #contactPage .info-details li {
    font-size: 0.9rem;
    gap: 12px;
  }

  #contactPage .decorative-artwork {
    display: none;
  }

  #contactPage .contact-form-container {
    width: 100%;
    padding: 22px 16px;
    border-radius: 16px;
    overflow: visible;
  }

  #contactPage .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — Small Mobile (max-width: 480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  #contactPage {
    padding-top: 64px;
  }

  #contactPage .contact-header {
    min-height: 130px;
    padding: 24px 16px;
  }

  #contactPage .contact-main {
    padding: 16px 12px 120px;
  }

  #contactPage .contact-info h2 {
    font-size: 1.3rem;
  }

  #contactPage .contact-info > p {
    font-size: 0.85rem;
    margin-bottom: 22px;
  }

  #contactPage .info-details {
    gap: 16px;
  }

  #contactPage .info-details li {
    font-size: 0.85rem;
    gap: 10px;
  }

  #contactPage .info-details li i {
    font-size: 1rem;
  }

  #contactPage .contact-form-container {
    padding: 18px 14px;
    border-radius: 14px;
    overflow: visible;
  }

  #contactPage .input-group input,
  #contactPage .input-group textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  #contactPage .submit-btn {
    padding: 14px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — Extra Small (max-width: 360px)
   ---------------------------------------------------------- */
@media (max-width: 360px) {
  #contactPage .contact-header {
    min-height: 140px;
    padding: 24px 14px;
  }

  #contactPage .header-content h1 {
    font-size: 1.25rem;
  }

  #contactPage .header-content p {
    font-size: 0.78rem;
  }

  #contactPage .contact-info h2 {
    font-size: 1.2rem;
  }

  #contactPage .contact-form-container {
    padding: 18px 14px;
  }
}
