/* Veiga Buses Local Clone Enhancements & Offline reCAPTCHA / CF7 Styles */

body.veiga-ready {
  visibility: visible !important;
}

/* Ensure animated modules are visible once ready or if waypoint did not fire */
body.veiga-animations-fallback .et_animated,
body.veiga-animations-fallback .et-waypoint:not(.et_pb_counters) {
  opacity: 1 !important;
}

/* Local reCAPTCHA v2 Widget Replica */
.veiga-recaptcha-box {
  width: 304px;
  height: 78px;
  background: #f9f9f9;
  color: #000;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin: 12px 0 16px 0;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  box-sizing: border-box;
}

.veiga-recaptcha-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.veiga-recaptcha-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.veiga-recaptcha-left:hover .veiga-recaptcha-checkbox:not(.is-checked):not(.is-loading) {
  border-color: #b2b2b2;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.veiga-recaptcha-checkbox.is-loading {
  border-color: transparent;
  background: transparent;
}

.veiga-recaptcha-checkbox.is-loading::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #4285f4;
  border-top-color: transparent;
  border-radius: 50%;
  animation: veiga-spin 0.7s linear infinite;
}

.veiga-recaptcha-checkbox.is-checked {
  border-color: transparent;
  background: transparent;
}

.veiga-recaptcha-checkmark {
  display: none;
  width: 26px;
  height: 26px;
}

.veiga-recaptcha-checkbox.is-checked .veiga-recaptcha-checkmark {
  display: block;
}

.veiga-recaptcha-label {
  font-size: 14px;
  font-weight: 400;
  color: #282828;
  line-height: 17px;
}

.veiga-recaptcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #555;
  font-size: 10px;
  line-height: 1.2;
}

.veiga-recaptcha-logo {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}

.veiga-recaptcha-brand {
  font-size: 10px;
  color: #555;
  font-weight: 500;
}

.veiga-recaptcha-links {
  font-size: 8px;
  color: #555;
  margin-top: 2px;
}

.veiga-recaptcha-links a {
  color: #555 !important;
  text-decoration: none;
}

.veiga-recaptcha-links a:hover {
  text-decoration: underline;
}

@keyframes veiga-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact Form 7 Validation & Feedback Styling */
.dvppl_cf7_styler_0 .wpcf7-not-valid-tip {
  color: #dc3232 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: block;
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

.dvppl_cf7_styler_0 .wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 6px !important;
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.dvppl_cf7_styler_0 .wpcf7-form.invalid .wpcf7-response-output {
  display: block !important;
  border: 2px solid #ffb900 !important;
  background-color: #fff8e5 !important;
  color: #000000 !important;
}

.dvppl_cf7_styler_0 .wpcf7-form.sent .wpcf7-response-output {
  display: block !important;
  border: 2px solid #46b450 !important;
  background-color: #ecf7ed !important;
  color: #000000 !important;
}

.veiga-wa-quote-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 20px;
  font-family: 'Abel', Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 2px 2px 0px #000000;
}

.veiga-wa-quote-btn:hover {
  background-color: #1ebe5d;
}
