/* =============================================
   ECHOMEMO — contact.css
   ============================================= */

/* ---------- Page layout ---------- */
.contact-bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(rgba(62, 207, 178, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(62, 207, 178, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
  }
  
  .contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  /* ---------- Header ---------- */
  .contact-header {
    margin-bottom: 48px;
    animation: fadeUp 0.6s ease both;
  }
  
  .contact-title {
    /* Inherits .section-title — just a small tweak for spacing */
    margin-bottom: 16px;
  }
  
  .contact-sub {
    /* Inherits .section-sub but tighter bottom margin here */
    margin-bottom: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* ---------- Card ---------- */
  .contact-card {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 44px;
    animation: fadeUp 0.7s ease 0.1s both;
    text-align: left;
  }
  
  /* ---------- Form ---------- */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  
  .form-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .form-required {
    color: var(--teal-dark);
    font-size: 1rem;
    line-height: 1;
  }
  
  .form-input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--grey-100);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    padding: 13px 16px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
    -webkit-appearance: none;
  }
  
  .form-input::placeholder {
    color: var(--grey-400);
  }
  
  .form-input:focus {
    background: var(--white);
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(62, 207, 178, 0.15);
  }
  
  /* Invalid state — applied via JS */
  .form-group.is-invalid .form-input {
    border-color: #e05252;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
  }
  
  /* ---------- Inline errors ---------- */
  .form-error {
    font-size: 0.82rem;
    color: #e05252;
    font-weight: 500;
    min-height: 1em; /* Prevents layout shift when error appears */
  }
  
  /* ---------- Submit button ---------- */
  .contact-submit {
    align-self: flex-start;
    margin-top: 4px;
  }
  
  .contact-submit .btn-icon {
    width: 18px;
    height: 18px;
  }
  
  /* Loading state */
  .contact-submit.loading {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
  }
  
  /* ---------- Success state ---------- */
  .contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
    gap: 12px;
    animation: fadeUp 0.5s ease both;
  }
  
  .contact-success__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(62, 207, 178, 0.15);
    color: var(--teal-dark);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 4px;
  }
  
  .contact-success__heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--navy);
  }
  
  .contact-success__body {
    color: var(--grey-400);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 340px;
  }
  
  /* ---------- Trust strip ---------- */
  .contact-trust {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 32px;
    animation: fadeUp 0.7s ease 0.2s both;
  }
  
  .contact-trust li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--grey-400);
    font-weight: 500;
  }
  
  .contact-trust li svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--teal-dark);
  }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 600px) {
    .contact-page {
      padding: 110px 20px 60px;
    }
  
    .contact-card {
      padding: 36px 24px;
    }
  
    .contact-trust {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
      padding-left: 8px;
    }
  
    .contact-submit {
      align-self: stretch;
      justify-content: center;
    }
  }