/* ---------------------------------------------------------
   HONEYPOTS (anti-bot)
--------------------------------------------------------- */
.honeypots {
  position: absolute;
  left: -9999px;
  top: -9999px;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------
   THANK-YOU MESSAGE
--------------------------------------------------------- */
.thankyou-message {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  text-align: center;
  margin-top: 20px;
  display: none; /* hidden by default to prevent extra space */
}

.thankyou-message.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   CONTACT SECTION
--------------------------------------------------------- */
.contact-section {
  background: #ffffff;
  padding: 100px 40px;
  transition: background-color 1.5s ease;
  font-family: Arial, sans-serif;
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-subtitle,
.intro-line {
  font-size: 1.2rem;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------
   CONTACT FORM WRAPPER
--------------------------------------------------------- */
.contact-canvas {
  margin: 20px auto 0 auto;
  max-width: 500px;
  padding-bottom: 0; /* remove any extra padding */
  display: block;
  overflow: hidden; /* prevent hidden elements from adding space */
}

/* ---------------------------------------------------------
   FORM FIELDS
--------------------------------------------------------- */
.contact-canvas .field {
  position: relative;
  margin-bottom: 20px;
}

/* Inputs and textarea */
.contact-canvas .field input,
.contact-canvas .field textarea {
  width: 100%;
  padding: 14px 12px 14px 45px; /* space for icon */
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Textarea specific */
.contact-canvas .message-field textarea {
  min-height: 140px;
  resize: vertical;
  padding-left: 45px; /* keep space for icon */
}

/* ---------------------------------------------------------
   ICONS
--------------------------------------------------------- */
.contact-canvas .field .icon-container {
  position: absolute;
  left: 12px;
  font-size: 18px;
  color: #555;
  pointer-events: none;
  transition: color 0.3s;
  top: 35%; /* vertical center for inputs */
  transform: translateY(-50%);
}

/* Message field icon aligned with top padding */
.contact-canvas .field.message-field .icon-container {
  top: 14px;  /* align with textarea top padding */
  transform: none;
}

/* Focus state */
.contact-canvas .field input:focus,
.contact-canvas .field textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

.contact-canvas .field input:focus ~ .icon-container,
.contact-canvas .field textarea:focus ~ .icon-container {
  color: #007bff;
}

/* Hover effect on icon */
.contact-canvas .field:hover .icon-container {
  color: #555;
}

/* Remove bottom margin on last field/button to prevent extra space */
.contact-canvas .field:last-child,
.contact-canvas .send-btn:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   SEND BUTTON
--------------------------------------------------------- */
.send-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.send-btn:hover {
  background-color: #0056b3;
}