/* ==========================================================================
   CONTACT.CSS - Standalone Stylesheet for Contact Page
   ========================================================================== */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
  --bg-base: #faf5ff;
  --bg-surface: #ffffff;
  --bg-elevated: #f4e8fd;
  --text-primary: #0f172a;
  --text-secondary: #6b21a8;
  --text-muted: #475569;
  --border-color: rgba(0, 0, 0, 0.15);
  --accent: #8d18e7;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 40px -10px rgba(141, 24, 231, 0.08);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  font-weight: 300;
  color: var(--text-primary);
}

/* --- 2. THE FROSTED GLASS CONTAINER --- */
.contact-container {
  width: 100%;
  max-width: 1000px;
  /* margin: 40px auto; forces the container to sit exactly in the middle of the screen */
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 1px var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- 3. HERO SECTION --- */
.contact-hero {
  text-align: center;
  padding: 64px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-chat-icon {
  color: var(--accent);
  margin-bottom: 24px;
}

.contact-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.contact-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.contact-illustration {
  margin-top: 40px;
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

/* --- 4. DIVIDER --- */
.contact-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 40px;
}

/* --- 5. GRID & MATERIAL CARDS --- */
.contact-grid {
  display: grid;
  /* Changed from repeat(4, 1fr) to repeat(3, 1fr) so the 3 cards center perfectly */
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 40px;
  width: 100%;
  max-width: 950px;
  margin: 0 auto; /* Centers the grid perfectly inside the frosted glass container */
}

.contact-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Material UI Elevated Circular Icon */
.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(141, 24, 231, 0.08); 
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
  transform: translateY(-4px);
}

.contact-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

a.contact-card-title:hover {
  color: var(--accent);
}

.contact-card-title.no-hover {
  pointer-events: none; 
}

.contact-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-card p a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-card p a:hover {
  text-decoration: underline;
}

.location-wrapper {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: left;
}
.location-wrapper svg {
  margin-top: 4px;
  flex-shrink: 0;
}

/* --- 6. FOOTER NOTE --- */
.community-note {
  text-align: center;
  padding: 24px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
}

.community-note svg {
  color: var(--accent);
}

/* Hides toast elements if they exist globally but aren't needed here */
.toast-wrapper {
  display: none;
}

/* --- 7. DESKTOP ZOOM OPTIMIZATION --- */
@media (min-width: 769px) {
  .app-container {
    zoom: 0.95;
    transition: zoom 0.2s ease;
  }
}

/* --- 8. MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
  }
  
  /* Forces the 3rd card to center below the first two on medium screens */
  .contact-card:nth-child(3) {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .contact-container {
    border-radius: 18px;
    margin-top: 24px;
    width: calc(100% - 32px);
  }
  
  .contact-hero {
    padding: 40px 24px 24px;
  }

  .contact-hero h1 {
    font-size: 2.6rem;
  }

  .contact-grid {
    padding: 40px 24px;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-card:nth-child(3) {
    grid-column: span 1;
  }
  
  .contact-divider {
    margin: 0 24px;
  }
}