/* Maps Contact Form 7's generic markup onto this project's real design tokens. */
.lwc-cf7-form {
  font-family: var(--font-sans);
  display: grid;
  /* Real multi-field contact/enquiry forms are virtually always laid out as
     a 2-column grid on desktop in the original design (name/email/phone
     side by side) — CF7's own generated markup carries none of the
     source's grid classes at all (bracket-tag syntax can't hold arbitrary
     Tailwind classes, see this file's own docstring above), so without an
     opinionated default every field fell back to a single stacked column
     regardless of the source layout. auto-fit/minmax collapses to one
     column on narrow forms on its own, so this is safe even for a
     genuinely single-column short form (e.g. just an email signup). */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}

.lwc-cf7-field {
  margin: 0;
}

/* A textarea (message/notes) or the final submit row reads oddly squeezed
   into one grid column next to a short text field — these always span the
   form's full width, matching the near-universal real-world pattern. */
.lwc-cf7-field:has(.lwc-textarea),
.lwc-cf7-form > p:last-child {
  grid-column: 1 / -1;
}

.lwc-cf7-field label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1C1A18;
}

.lwc-input,
.lwc-textarea,
.lwc-select {
  font-family: inherit;
  font-size: 1rem;
  color: #1C1A18;
  background-color: #FEFEFE;
  border: 1.5px solid rgba(237,40,110,.35);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 18px 18px;
  box-sizing: border-box;
}

.lwc-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}

.lwc-textarea {
  min-height: 8rem;
  resize: vertical;
  background-position: 1rem 1rem;
}

/* Per-field left icon — matched by the real CF7 field `name`, since CF7
   renders that attribute straight onto the DOM element. Pink stroke to
   match the reference mockup; selects keep their existing dark chevron
   as a second, independently-positioned background image. */
input[name="name"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

input[name="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E");
}

input[name="phone"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.362 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.338 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

input[name="city"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

input[name="topic"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

textarea[name="message"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
}

select[name="background"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1A18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: 1rem center, right 1rem center;
  background-size: 18px 18px, 16px 16px;
}

select[name="investment"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ED286E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ctext x='12' y='16.5' font-family='Arial,Helvetica,sans-serif' font-size='11' font-weight='700' text-anchor='middle' fill='%23ED286E' stroke='none'%3E%E2%82%B9%3C/text%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1A18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: 1rem center, right 1rem center;
  background-size: 18px 18px, 16px 16px;
}

.lwc-input:focus,
.lwc-textarea:focus,
.lwc-select:focus {
  outline: none;
  border-color: #ED286E;
  box-shadow: 0 0 0 3px rgba(237,40,110,.15);
}

.lwc-checkbox,
.lwc-radio {
  width: auto;
  margin-right: 0.5rem;
}

.wpcf7-form .wpcf7-submit {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary-foreground);
  background-color: var(--color-primary);
  border: none;
  border-radius: 999px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 500ms cubic-bezier(0.65,0,0.35,1), opacity 0.15s ease;
}
.wpcf7-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.wpcf7-form.invalid .wpcf7-response-output {
  border-color: #dc2626;
  color: #dc2626;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: #16a34a;
  color: #16a34a;
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
