.rq-modern-form .wpforms-field-container {
  max-width: 520px;
}

.rq-modern-form .wpforms-field {
  margin-bottom: 16px !important;
  position: relative;
}

.rq-modern-form input[type="text"],
.rq-modern-form input[type="email"],
.rq-modern-form input[type="tel"],
.rq-modern-form textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 14px 16px 14px 44px !important;
  font-size: 15px !important;
  border: 1.5px solid #e1e4e8 !important;
  border-radius: 10px !important;
  background-color: #fafbfc !important;
  color: #1f2430 !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  outline: none !important;
}

.rq-modern-form input[type="text"]::placeholder,
.rq-modern-form input[type="email"]::placeholder,
.rq-modern-form input[type="tel"]::placeholder,
.rq-modern-form textarea::placeholder {
  color: #9aa0a8 !important;
  opacity: 1 !important;
}

.rq-modern-form input[type="text"]:focus,
.rq-modern-form input[type="email"]:focus,
.rq-modern-form input[type="tel"]:focus,
.rq-modern-form textarea:focus {
  border-color: #1e7a4c !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(30, 122, 76, 0.12) !important;
}

.rq-modern-form input[type="email"]:not(:placeholder-shown):valid {
  border-color: #1e7a4c !important;
}
.rq-modern-form input[type="email"]:not(:placeholder-shown):invalid {
  border-color: #d97706 !important;
}

.rq-modern-form .wpforms-field-name input,
.rq-modern-form .wpforms-field-email input,
.rq-modern-form .wpforms-field-text.inputformcontact input,
.rq-modern-form [data-field-id="6"] input,
.rq-modern-form [data-field-id="13"] input {
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 20px 20px !important;
}

.rq-modern-form .wpforms-field-name input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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") !important;
}

.rq-modern-form .wpforms-field-email input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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") !important;
}

.rq-modern-form [data-field-id="6"] input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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.361 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.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") !important;
}

.rq-modern-form [data-field-id="13"] input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07l-1.5 1.5'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0l-2.83 2.83a5 5 0 0 0 7.07 7.07l1.5-1.5'/%3E%3C/svg%3E") !important;
}

.rq-whatsapp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f9f2;
  border: 1.5px solid #d7ecdd;
  border-radius: 10px;
  margin: -4px 0 16px;
  font-size: 14px;
  color: #1f2937;
}

.rq-whatsapp-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1e7a4c;
  cursor: pointer;
  flex-shrink: 0;
}

.rq-whatsapp-opt label {
  cursor: pointer;
  margin: 0;
}

.rq-modern-form .wpforms-submit {
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: #1e7a4c !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease;
}

.rq-modern-form .wpforms-submit:hover {
  background: #17603b !important;
  transform: translateY(-1px);
}

.rq-modern-form .wpforms-submit:disabled {
  opacity: 0.6;
  transform: none;
}

.rq-modern-form input[type="text"],
.rq-modern-form input[type="email"],
.rq-modern-form input[type="tel"],
.rq-modern-form textarea {
  color-scheme: light;
}
