/* Contact responsive fix: force stacking of contact info and form on small screens */
/* Loaded last to override theme rules */

/* Contact form base styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select::placeholder {
  color: inherit;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.contact-form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
}

.contact-form-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.contact-form-privacy label {
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.contact-form-submit {
  padding: 14px 30px;
  background: #c41e3a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-form-submit:hover {
  background: #a00f27;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.contact-form-message {
  padding: 12px 16px;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.contact-form-message.show {
  display: block;
}

/* ========================================
   CONTACT SECTION RESPONSIVE 
   ======================================== */

@media (max-width: 900px) {
  /* Stack contact info and form vertically */
  .contact-wrapper {
    display: block !important;
    gap: 0 !important;
  }

  .contact-info,
  .contact-form,
  .contacto-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 32px 0 !important;
    box-sizing: border-box !important;
  }

  /* Stack form row from 2 cols to 1 col */
  .contact-form-row-two {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Ensure inputs are full width */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    width: 100% !important;
  }

  /* Section padding */
  .contact-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Map responsive */
  .contact-section iframe,
  .map-embed iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }
}

@media (max-width: 600px) {
  .contact-info,
  .contact-form {
    margin: 0 0 24px 0 !important;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }

  .contact-form-submit {
    padding: 12px 24px;
    font-size: 14px;
  }
}
