/* Shared Contact Form 7 / Apply Now form styles for loan + contact pages */

.wpcf7-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.wpcf7-form *,
.wpcf7-form *::before,
.wpcf7-form *::after {
  box-sizing: border-box;
}

.wpcf7-form .form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}

.wpcf7-form .form-field {
  width: calc(50% - 7.5px);
  flex: 1 1 calc(50% - 7.5px);
}

.wpcf7-form .form-field-full {
  width: 100%;
}

.wpcf7-form .form-field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form .form-field input[type="text"],
.wpcf7-form .form-field input[type="email"],
.wpcf7-form .form-field input[type="tel"],
.wpcf7-form .form-field input[type="number"],
.wpcf7-form .form-field select,
.wpcf7-form .wpcf7-form-control.wpcf7-text,
.wpcf7-form .wpcf7-form-control.wpcf7-email,
.wpcf7-form .wpcf7-form-control.wpcf7-tel,
.wpcf7-form .wpcf7-form-control.wpcf7-number,
.wpcf7-form .wpcf7-form-control.wpcf7-select {
  font-size: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  color: #333 !important;
  background-color: #fff !important;
  line-height: 1.5 !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
}

.wpcf7-form .form-field input::placeholder {
  font-size: 16px;
  color: #999;
}

.wpcf7-form .form-field select,
.wpcf7-form .wpcf7-form-control.wpcf7-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px !important;
}

.wpcf7-form .form-checkbox {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #555;
  gap: 8px;
}

.wpcf7-form .form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.wpcf7-form .form-submit {
  margin-top: 12px;
}

.wpcf7-form .form-submit input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100% !important;
  padding: 12px 16px !important;
  background-color: #007bff !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-align: center;
  height: auto !important;
  min-height: 44px;
  transition: background-color 0.3s ease;
}

.wpcf7-form .form-submit input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background-color: #0056b3 !important;
}

.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 12px;
  color: red;
  margin-top: 5px;
  display: block;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .wpcf7-form .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .wpcf7-form .form-field {
    width: 100%;
    flex: 1 1 100%;
  }
}
