/* ============================================
   Sound Technologies - Contact: Form
   Mobile-first
   ============================================ */

.st-contact-form-section {
  padding: 48px 20px;
  background: var(--st-white);
}

.st-contact-form-inner {
  max-width: var(--st-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* --- Form --- */
.st-contact-form h2 {
  font-family: var(--st-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--st-navy);
  margin-bottom: 24px;
}

.st-form-group {
  margin-bottom: 20px;
}

.st-form-label {
  display: block;
  font-family: var(--st-font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--st-dark);
  margin-bottom: 6px;
}

.st-form-input,
.st-form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--st-font);
  font-size: 0.95rem;
  color: var(--st-dark);
  background: var(--st-light-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.st-form-input:focus,
.st-form-textarea:focus {
  border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(33, 95, 154, 0.1);
}

.st-form-textarea {
  height: 160px;
  resize: none;
  line-height: 1.6;
}

.st-form-submit {
  margin-top: 8px;
}

/* --- Contact Details sidebar --- */
.st-contact-details h2 {
  font-family: var(--st-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--st-navy);
  margin-bottom: 24px;
}

.st-contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.st-contact-detail-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--st-light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--st-navy);
}

.st-contact-detail-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--st-dark);
  margin-bottom: 2px;
}

.st-contact-detail-value {
  font-size: 1rem;
  color: var(--st-mid);
  line-height: 1.5;
}

.st-contact-detail-value a {
  color: var(--st-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.st-contact-detail-value a:hover {
  color: var(--st-navy);
}

.st-contact-hint {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--st-light-bg);
  border-left: 3px solid var(--st-green);
  border-radius: 0 6px 6px 0;
}

.st-contact-hint p {
  font-size: 0.9rem;
  color: var(--st-mid);
  line-height: 1.6;
  margin: 0;
}

/* --- Error banner (shown above form on validation failure) --- */
.st-form-error {
  background: rgba(232, 84, 84, 0.08);
  border: 1px solid rgba(232, 84, 84, 0.3);
  border-left: 4px solid #e85454;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.st-form-error p {
  color: #a33838;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* --- Honeypot (hidden anti-spam decoy) --- */
/* Kept in the DOM for bots to auto-fill, moved off-screen for humans.
   If this field has any value on POST, the handler treats it as a bot. */
.st-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* --- Disabled submit state (while reCAPTCHA token is being fetched) --- */
.st-form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
}

/* Tablet */
@media (min-width: 600px) {
  .st-contact-form-section {
    padding: 60px 30px;
  }
}

/* Desktop */
@media (min-width: 960px) {
  .st-contact-form-section {
    padding: 80px 30px;
  }

  .st-contact-form-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
  }

  .st-contact-form h2,
  .st-contact-details h2 {
    font-size: 1.75rem;
  }
}
