*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
}

.container {
  text-align: center;
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  max-width: 1200px;
  width: 90%;
  margin: 2rem auto 0;
  animation: fadeIn 0.6s ease-in;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.15rem;  /* Further reduced from 0.25rem */
  color: #2d2d2d;
}

.tagline {
  font-size: 1.3rem;  /* Reduced from 1.4rem */
  font-style: italic;
  margin: 0 0 1rem;
  color: #555;
  line-height: 1.3;
}

p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4a4a4a;
}

.warning-message {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-left: 4px solid #ffeeba;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 4px;
  font-size: 1rem;
  max-width: 600px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.contact-section {
  display: flex;
  gap: 2rem;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  max-width: 800px;
  align-items: flex-start; /* Changed from stretch to prevent mutual height influence */
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  color: #2d2d2d;
}

.contact-grid {
  display: grid;
  gap: 0.75rem; /* Reduced from 1rem */
}

.contact-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.contact-item > *:not(.contact-label) {
  text-align: left;
  justify-self: start;
}

.contact-label {
  font-weight: bold;
  color: #666;
  text-align: left;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #0056b3;
}

/* Map */
.map-container {
  flex: 1;
  position: relative;
  min-width: 300px;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
  }
  .contact-info {
    order: 1;
    margin-bottom: 2rem;
  }
  .map-container {
    order: 2;
    width: 100%;
    max-width: none;
  }
  .contact-item {
    grid-template-columns: 80px 1fr;
  }
  .address-info a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .street-address,
  .city-state {
    display: block;
  }
  
  .forms-list {
    width: 100%;  /* Full width on mobile */
  }
  
  .forms-section {
    align-items: center;  /* Center on mobile */
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .forms-list {
    width: 100%;
  }
  
  .forms-list li {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .contact-section {
    align-items: flex-start;
  }
  .map-container {
    align-self: stretch; /* Makes map container stretch to match contact info height */
  }
  .forms-list {
    width: 50%;  /* Half width only on desktop */
  }
}

.address-info {
  display: flex;
  flex-direction: column;
}

.entrance-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin-top: 0.25rem;
}

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

@media (max-width: 900px) {
  .container {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
}

.logo {
  max-width: 300px;
  max-height: 500px;  /* Increased from 450px */
  width: auto;
  height: auto;
  margin-bottom: 0.25rem;  /* Further reduced from 0.5rem */
  object-fit: contain;
}

/* Forms Section */
.forms-section {
  display: flex;
  gap: 2rem;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  max-width: 800px;
  align-items: flex-start;
}

.forms-list,
.socials-list {
  flex: 1;
  min-width: 0;
}

.forms-list h3,
.socials-list h3 {
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  color: #2d2d2d;
  text-align: left;
}

.forms-items,
.social-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forms-items li,
.social-items li {
  margin-bottom: 1rem;
  text-align: left;
}

@media (max-width: 768px) {
  .forms-section {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .forms-list,
  .socials-list {
    width: 100%;
  }
}

.pdf-link {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background-color: #f8f9fa;  /* Much softer background */
  color: #495057;  /* Darker text for better contrast */
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;  /* Subtle border */
  font-size: 1rem;
}

.pdf-link:hover {
  background-color: #e9ecef;  /* Subtle hover state */
  border-color: #ced4da;
  color: #212529;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #333;
  font-size: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

/* Privacy Policy Styles */
.policy-container {
  text-align: left;
  max-width: 800px;
}

.policy-container h1 {
  text-align: left;
}

.policy-content {
  margin: 2rem 0;
}

.policy-content section {
  margin-bottom: 2rem;
}

.policy-content h2 {
  color: #2d2d2d;
  margin: 1.5rem 0 1rem;
  font-size: 1.4rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.policy-content li {
  margin: 0.5rem 0;
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

.back-link {
  margin-top: 3rem;
}

.back-link a {
  color: #007bff;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

.footer {
  background-color: #ffffff;
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin: 0 auto 2rem;
  max-width: 1200px;
  width: 90%;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-content a {
  color: #666;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content .copyright {
  color: #666;
}
