/* ============================================
   consult-form.css — CONSULT REQUEST FORM
   Used on the home page (index.html).
   Pairs with consult-form.js. Load after style.css
============================================ */
.consult-form-section {
  max-width: 600px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
}

.consult-form-section h2 {
  font-size: 1.4rem;
  color: #4b3f5c;
  margin-bottom: 1.2rem;
}

.consult-form-section h3 {
  font-size: 0.8rem;
  color: #8a8073;
  margin-bottom: 1.3rem;
}

.consult-form {
  position: relative;
  isolation: isolate;      /* keeps the logo below behind the fields */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  background: #f2ede4;
  padding: 1.5rem;
  border-radius: 14px;
}

/* faint logo peeking in from the bottom-right corner */
.consult-form::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -90px;
  background: url('../images/logo-deep-purple-mark-nob.png') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.consult-form label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8a8073;
  text-transform: uppercase;
  margin-bottom: -0.4rem;
}

.consult-form input[type="text"],
.consult-form input[type="tel"],
.consult-form input[type="email"],
.consult-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd2eb;
  border-radius: 8px;
  background: #faf7f2;
  color: #222;
}

.consult-form textarea {
  min-height: 84px;
  max-height: 320px;
  resize: none;            /* phones and tablets: auto-grow instead */
}

@media (hover: hover) and (pointer: fine) {
  .consult-form textarea {
    resize: vertical;      /* desktop: native corner grip */
  }
}

.cf-service-type {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cf-service-type legend {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8a8073;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 0.3rem;
}

.cf-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #3f3550;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.consult-form button {
  align-self: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5rem;
}

.cf-error {
  color: #a33b3b;
  font-size: 0.9rem;
  text-align: center;
}

.cf-thankyou {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: #ddd2eb;
  border-radius: 14px;
  color: #4b3f5c;
  font-size: 1.1rem;
}

/* mobile */
@media (max-width: 600px) {
  .consult-form-section h2 {
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .consult-form-section h3 {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}