
/* Visually hide elements but keep them accessible to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Contact Section */
.contact {
  padding: 3rem 0;
  position: relative;
  overflow: visible;
  background-color: #fff;
  z-index: 9;
  box-shadow: 0 5px 15px rgb(0 0 0 / 3%);
  border-top: 1px solid rgb(0 167 157 / 3%);
  background-image: linear-gradient(to bottom, #fff 0%, #00a79d 50%, #639 100%);
}

.contact-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px groove #cae4ff;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 90%);
  overflow: hidden;
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
}

.contact-info {
  padding: 1.5rem 1rem;
  background-color: #663399;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info h3 {
  margin: 15px 0 45px 0;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  position: relative;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 3px;
  background-color: #639;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
}

.contact-details {
  margin-top: 60px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 1.25rem;
  gap: 0.5rem;
  min-width: 180px;
  justify-content: center;
}

.contact-icon {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #333;
}

/* Inputs and textarea unified styles */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  margin: 5px 0;
  border: 2px solid #639;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 5%);
  min-height: 44px;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary, #00a79d);
  box-shadow: 0 0 0 3px rgba(0, 167, 157, 0.15);
  outline: none;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
  border-color: #ff6b6b;
}

.contact-form .btn-primary {
  color: #639;
  font-weight: bold;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.contact-feedback.success { background: #e6fffa; color: #00664d; border: 1px solid #00a79d; }
.contact-feedback.error   { background: #fff1f0; color: #641212; border: 1px solid #ff6b6b; }

/* Background should never block interaction */
.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.contact-bg.active {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Section */

.contact {
  padding: 3rem 0;
  position: relative;
  overflow: visible;
  background-color: #fff;
  z-index: 9;
  box-shadow: 0 5px 15px rgb(0 0 0 / 3%);
  border-top: 1px solid rgb(0 167 157 / 3%);
  background-image: linear-gradient(to bottom, #fff 0%, #00a79d 50%, #639 100%);
}

.contact-container {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px groove #cae4ff;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 90%);
  overflow: hidden;
}

.contact-info {
  padding: 1rem;
  background-color: #663399;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info h3 {
  margin-top: 15px;
  margin-bottom: 45px;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  position: relative;
}

.contact-info h3::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 3px;
  background-color: #639;
  left: 50%;
  transform: translateX(-50%);
  bottom: -15px;
}

.contact-details {
  margin-top: 60px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 1.25rem;
  gap: 0.5rem;
  min-width: 180px;
  justify-content: center;
}

.contact-icon {
  margin-right: 1rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #333;
}

/* Make inputs/textarea match site style (existing .contact-form inputs can be used) */
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin: 5px;
  border: 2px solid #639;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 5%);
}

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

.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(0 167 157 / 10%);
  outline: none;
}

.contact-form .btn-primary {
  color: #639;
  font-weight: bold;
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.contact-feedback.success { background: #e6fffa; color: #00664d; border: 1px solid #00a79d; }
.contact-feedback.error   { background: #fff1f0; color: #641212; border: 1px solid #ff6b6b; }

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
}

.contact-bg.active {
  opacity: 1;
  transform: translateX(0);
}
.z-container {
  position: relative;
  z-index: 5;
  max-width: 55%;
}
