/*
========================================
--- CONTACT FORM & INFO STYLES ---
========================================
*/

/* --- Main Layout: Container (uses existing .container) --- */
/*
========================================
--- MODAL POPUP STYLES ---
========================================
*/

/* --- The Full-Screen Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* --- Modal Visible State --- */
.modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

/* --- The Modal Window (Form Content) --- */
.contact-modal-window {
  position: relative;
  max-width: 1300px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--card-bg);
  border-radius: var(--card-border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .contact-modal-window {
  transform: scale(1);
}

/* --- Close Button --- */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2010;
  color: var(--text-gray);
  padding: 5px;
}

.modal-close-btn i {
  width: 24px;
  height: 24px;
}

/* --- Adjustments for Form within Modal on Mobile (Applies to both static and modal) --- */
@media (max-width: 1024px) {
  /* Reduce internal padding on modal/static content */
  .contact-modal-window {
    padding: 0;
  }
  .contact-info-card {
    padding: 20px;
  }
  .contact-form-wrapper {
    padding: 20px;
  }
}

.contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  background-color: var(--card-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 0;
  min-height: 500px;
  overflow: hidden;
}

/* --- Left Side: Form Wrapper --- */
.contact-form-wrapper {
  background-color: var(--card-bg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--light-blue);
  outline: none;
}

/* --- Gradient Submit Button --- */
.contact-submit-btn {
  /* Mimics the visual from the image */
  background: linear-gradient(
    90deg,
    var(--light-blue) 0%,
    var(--brand-green) 100%
  );
  color: var(--text-light);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.contact-submit-btn:hover {
  opacity: 0.9;
}

/* --- Right Side: Contact Info --- */
.contact-info-card {
  background-color: #f9f9f9;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-info-content > p {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 25px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.method-icon {
  width: 36px;
  height: 36px;
  background-color: #e6f3ff; /* Very light blue background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon i {
  width: 18px;
  height: 18px;
  color: var(--light-blue);
}

.method-details {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.method-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.method-details a,
.method-data,
.method-note,
.method-details address {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-decoration: none;
  font-style: normal;
}

/* --- Business Hours --- */
.business-hours-box {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-light);
  margin-top: 30px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--text-dark);
}

.hours-row span:last-child {
  font-weight: 500;
}

.hours-row.closed span:last-child {
  color: #e74c3c; /* Red color for closed */
  font-weight: 600;
}

/*
========================================
--- MEDIA QUERIES (Mobile & Tablet) ---
========================================
*/
@media (max-width: 1024px) {
  .contact-container {
    /* Stack columns vertically on smaller screens */
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-wrapper {
    order: 2; /* Form moves below contact info */
  }
  .contact-info-card {
    order: 1; /* Contact info moves above form */
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .form-row {
    /* Stack name and email inputs vertically on mobile */
    flex-direction: column;
    gap: 15px;
  }
}

/*
========================================
--- STATIC CONTACT FORM OVERRIDES ---
========================================
*/

/* Use the static-contact-container wrapper to apply a clean background 
and shadow without the constraints of the old modal positioning.
*/
/* The static-contact-container uses the same grid layout as contact-container */
.static-contact-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  background-color: var(--card-bg);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-shadow);
  padding: 0; /* Let the content wrappers handle the padding */
  min-height: 500px;
  overflow: hidden;
}

.static-contact-container {
    padding: 0 !important;
}

/* Ensure the wrapper around the content maintains its padding */
.contact-form-wrapper,
.contact-info-card {
  /* Retain existing padding */
  padding: 40px;
}

/* Ensure the contact-info-card background color matches the image */
.static-info-card {
  background-color: #f9f9f9;
}

/* --- Responsive Mobile & Tablet Adjustments (Applies to both static and modal) --- */
@media (max-width: 1024px) {
  .contact-container,
  .static-contact-container {
    /* Target both container types */
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Order change only needed for the static section if placed in HTML flow */
  .contact-container .contact-form-wrapper,
  .static-contact-container .contact-form-wrapper {
    order: 2;
  }
  .contact-container .contact-info-card,
  .static-contact-container .contact-info-card {
    order: 1;
  }
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
}
