/* ============================================
   Contact Page
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0 var(--space-lg);

  @media (min-width: 768px) {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-text {
  & .title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-red);
  }

  & .body {
    line-height: 1.7;
    opacity: 0.85;
  }
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;

  & .field {
    display: flex;
    flex-direction: column;

    &.full {
      grid-column: 1 / -1;
    }
  }

  & label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;

    & .required {
      color: var(--color-accent);
    }
  }

  & input,
  & textarea {
    padding: 0.75rem;
    border: 2px solid var(--color-red);
    border-radius: var(--border-radius);
    box-shadow: 3px 3px 0px var(--color-red);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;

    &:focus {
      outline: none;
      transform: translateX(2px) translateY(2px);
      box-shadow: 1px 1px 0px var(--color-red);
    }
  }

  & textarea {
    resize: vertical;
  }

  & .honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
  }
}

.form-alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;

  &.success {
    background: rgba(0, 180, 80, 0.12);
    color: #0a7a3e;
    border: 1px solid rgba(0, 180, 80, 0.25);
  }

  &.error {
    background: rgba(220, 40, 40, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(220, 40, 40, 0.25);
  }
}
