.contact-section {
  padding: 4rem 1rem;
  background-color: var(--primary-lightest);
  /* Add width to ensure centering works */
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  /* Ensure the grid takes full width */
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  /* Add display block to ensure proper centering */
  display: block;
  /* Grid column span for larger screens */
  grid-column: 1 / -1;
}

.section-subtitle {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary); /* Use variable instead of hardcoded color */
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem); /* More responsive sizing */
  line-height: 1.2;
  color: var(--dark); /* Use variable */
  margin-bottom: 1rem;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--dark);
}


.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-light);
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-block p,
.info-block a {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: white;
}


.map-container iframe {
  width: 100%;
  height: 200px;
  border-radius: 0.75rem;
  border: none;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Ensure header spans both columns */
  .section-header {
    grid-column: 1 / -1;
  }
}

/* Message animations */
.alert {
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.close-btn {
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

.fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* success Message box styling */
.message-box {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.message-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Add to your contact.css */
.contact-form {
    position: relative;
    z-index: 10; /* Higher than default but lower than messages */
    overflow: visible;
}

/* Fix for form elements */
.contact-form form {
    position: relative;
    z-index: 1;
}

/* Ensure button visibility */
button[type="submit"] {
    position: relative;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Message container adjustments */
.fixed.z-50 {
    z-index: 1000;
}

/* Add to your contact.css or main CSS file */
.fixed .relative {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fixed .relative button {
    transition: transform 0.2s ease, color 0.2s ease;
}

.fixed .relative button:hover {
    transform: scale(1.1);
    color: #000;
}



