/* Contact Section Styling */

.contact-section {
  padding: 5rem 0;
  background-color: var(--color-bg-alt);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Info Side */
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
}

.contact-method .icon-container {
  width: 3rem;
  height: 3rem;
  background-color: rgba(var(--color-primary-rgb, 0, 123, 255), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--color-primary);
  overflow: hidden; /* Ensure content doesn't break out */
  box-sizing: border-box; /* Maintain exact dimensions */
  flex-shrink: 0; /* Prevent shrinking */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.contact-method:hover .icon-container {
  transform: scale(1.05);
  background-color: var(--color-primary);
  color: white;
}

.contact-method .icon {
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method-details {
  flex: 1;
}

.contact-method-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--color-heading);
}

.contact-method-details p {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
}

/* Contact Form Side */
.contact-form-container {
  background-color: var(--color-bg-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.contact-form-container h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-heading);
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-heading);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-input);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-transparent);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.contact-form button .icon {
  margin-right: 0.5rem;
  font-size: 1rem;
  vertical-align: middle;
}

/* Social links */
.contact-social {
  margin-top: 2rem;
}

.contact-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

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

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50% !important; /* Force round shape */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
  overflow: hidden; /* Ensure content stays inside */
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* Google Form Styling */
.google-form-wrapper {
  position: relative;
  width: 100%;
  height: 856px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.google-form-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.google-form-container {
  width: 100%;
  flex: 1;
  min-width: 300px;
  background-color: #ffffff;
  border-radius: var(--border-radius-lg, 20px);
  box-shadow: var(--card-shadow, 0 10px 25px rgba(0, 0, 0, 0.08));
  overflow: hidden; /* Ensures the iframe respects the border radius */
  border: 1px solid var(--color-border, #e9ecef);
  display: flex; /* Make it a flex container */
}

.google-form-container iframe {
  display: block; /* Removes bottom space under iframe */
}

.google-form-iframe {
  height: 800px; /* Default height for larger screens */
  overflow-y: auto; /* Ensure it's scrollable if content overflows */
}

/* Responsive adjustments for Google Form */
@media (max-width: 768px) {
  .google-form-wrapper {
    height: 720px;
  }
  .google-form-iframe {
    height: 100vh; /* Full viewport height on mobile */
  }
}

@media (max-width: 576px) {
  .google-form-wrapper {
    height: 600px;
    margin: 0 -1rem; /* Extend to full width on mobile */
    border-radius: 0;
  }
  
  .contact-form-container {
    padding: 1.5rem 0;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .contact-method {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-section {
    padding: 3rem 0;
  }
  
  .contact-info h2 {
    font-size: 2rem;
  }
  
  .contact-form-container h3 {
    font-size: 1.5rem;
  }
}
