/*
  Visa Requirement Engine widget styles.

  The widget is embedded into arbitrary themes and page builders, so styles are:
  - Scoped under .vre-widget
  - Conservative (avoid global selectors)
  - Focused on readability and accessibility
*/

.vre-widget {
  max-width: 800px;
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.vre-form {
  display: grid;
  gap: 14px;
}

.vre-row {
  display: grid;
  gap: 6px;
  position: relative;
}

.vre-row label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.vre-row input,
.vre-row select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.vre-form button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, opacity 0.2s;
}

.vre-form button:hover {
  background: #005177;
}

.vre-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.vre-result {
  margin-top: 20px;
}

.vre-card {
  padding: 16px;
  border-radius: 6px;
  border-left: 5px solid #ccc;
  background: #f9f9f9;
}

.vre-card.required {
  border-left-color: #d63638;
  background: #fff8f8;
}

.vre-card.not-required {
  border-left-color: #46b450;
  background: #f8fff8;
}

.vre-card.unknown {
  border-left-color: #f0ad4e;
  background: #fffaf0;
}

.vre-meta {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.vre-card ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.vre-ac-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 4px;
}

.vre-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.vre-ac-item:hover {
  background: #f1f1f1;
}
