/* ============================================
   CONTACT PAGE — HappenGrid
   Matches global design system
   ============================================ */

/* Text gradient (local alias) */
.text-gradient {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Page wrapper */
.main-content {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  padding: 2.5rem 0 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(270, 80%, 65%, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header p {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   CONTENT GRID
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .content-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

/* ============================================
   FORM CARD
   ============================================ */
.form-card {
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.9) 0%, hsla(240, 15%, 8%, 0.9) 100%);
  border: 1px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(12px);
  animation: fadeInLeft 0.6s ease-out;
  transition: border-color 0.3s ease;
}

.form-card:hover {
  border-color: hsla(270, 60%, 50%, 0.3);
}

.form-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(270, 80%, 65%, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.error-message {
  display: block;
  font-size: 0.8125rem;
  color: var(--destructive);
  margin-top: 0.25rem;
}

.char-count {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-violet);
  border: none;
  border-radius: 0.75rem;
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px hsla(270, 80%, 65%, 0.4);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(270, 80%, 65%, 0.5);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading span {
  display: none;
}

.submit-btn.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeInRight 0.6s ease-out;
}

.info-card {
  background: linear-gradient(135deg, hsla(240, 15%, 12%, 0.9) 0%, hsla(240, 15%, 8%, 0.9) 100%);
  border: 1px solid hsla(270, 30%, 35%, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: hsla(270, 60%, 50%, 0.35);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.3), 0 0 20px hsla(270, 80%, 65%, 0.07);
  transform: translateY(-2px);
}

.info-card .icon-box {
  width: 3rem;
  height: 3rem;
  background: hsla(270, 80%, 65%, 0.1);
  border: 1px solid hsla(270, 80%, 65%, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.info-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.info-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.info-card a:hover {
  color: var(--violet-soft);
}

/* Card with icon layout */
.info-card:has(.icon-box) {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-card:has(.icon-box) .icon-box {
  margin-bottom: 0;
}

.info-content {
  flex: 1;
}

/* Social Links in Contact Page */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-btn {
  width: 2.75rem;
  height: 2.75rem;
  background: hsla(240, 15%, 18%, 0.8);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: hsla(270, 80%, 65%, 0.15);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-card);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: hsl(145, 63%, 45%);
}

.toast.error {
  border-color: var(--destructive);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

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