/* ============================================
   Space-Optimized Contact Page Design
   ============================================ */

/* Base Variables - Compact Design System */
:root {
  --primary: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --text-dark: #1a2332;
  --text-light: #f8f9fa;
  --surface: #ffffff;
  --surface-light: #f8f9fa;
  --border: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
}

/* Compact Hero Section */
.contact-hero {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.304) 0%, rgba(76, 175, 79, 0.315) 100%), url('../images/background/zebra.jpg') no-repeat center/cover;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  padding: 2rem 0;
}

.contact-hero .container {
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.contact-hero .hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contact-hero .hero-text {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

/* Space-Optimized Contact Section */
.contact-section {
  padding: 60px 0;
  background: var(--surface-light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  /* margin: 0; */
  line-height: 1.1;
}

/* Compact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Contact grid: form + info side by side → stacks on tablet */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* Keep info cards 2-col on tablet, collapse on mobile */
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .contact-info {
    grid-template-columns: 1fr;
  }
}

/* Compact Contact Form */
.contact-form-container {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: #ff4757;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

/* Contact Info — 2×2 grid */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-content: start;
}

.contact-info-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.location-card {
  justify-content: space-between;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #b8860b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.contact-info-card:hover::before { transform: scaleX(1); }

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(46,125,50,0.15);
  transform: translateY(-3px);
}

.card-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.contact-details {
  flex: 1;
}

.contact-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

/* Location address block */
.contact-details address {
  font-style: normal;
  margin: 0;
}

.contact-details address p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: #5a6472;
  line-height: 1.4;
}

.contact-details address p:last-child {
  margin-bottom: 0;
}

.contact-details address p i {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.view-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  width: 100%;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}

.view-map-btn:hover {
  color: var(--primary-dark);
  gap: 0.75rem;
}

.contact-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  word-break: break-word;
}

.contact-links a i {
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}

.contact-links a:hover {
  background: rgba(76, 175, 80, 0.05);
  color: var(--primary);
}

.whatsapp-link {
  background: #25d366;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.whatsapp-link:hover {
  background: #1ebe5b;
  color: white;
}

.email-card .contact-links a {
  font-size: 0.75rem;
}

.working-hours p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.working-hours p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.working-hours p span:first-child {
  color: #6b7280;
  font-weight: 600;
}

.working-hours p span:last-child {
  color: var(--text-dark);
  font-weight: 700;
}

.closed span:first-child,
.closed span:last-child {
  color: #ff4757;
}

/* Compact Map Section */
.map-section {
  padding: 50px 0;
  background: var(--surface);
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

.map-info-box {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-width: 300px;
}

.map-info-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.map-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.map-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--surface);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
}

/* Responsive Optimizations */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 40vh;
    padding: 1.5rem 0;
  }

  .contact-section,
  .map-section {
    padding: 40px 0;
  }

  .contact-form-container,
  .contact-info-card {
    padding: 1.5rem;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .contact-hero .hero-title {
    font-size: 2rem;
  }

  .contact-section,
  .map-section {
    padding: 30px 0;
  }

  .contact-form-container,
  .contact-info-card {
    padding: 1rem;
  }

  .form-control {
    padding: 0.75rem 0.875rem;
  }

  .map-container {
    height: 250px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  animation: fadeInUp 0.5s ease forwards;
}

/* Focus States */
.contact-links a:focus,
.map-action-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
