/* Main widget container */
#rr-quote-widget {
  max-width: 860px;
  margin: 1.5rem auto;
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 23, 43, 0.88);
  box-shadow: 0 14px 35px rgba(0,0,0,0.35);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: rgba(255,255,255,0.92) !important;
}

#rr-quote-widget h2,
#rr-quote-widget h3,
#rr-quote-widget h4,
#rr-quote-widget p,
#rr-quote-widget label,
#rr-quote-widget small,
#rr-quote-widget strong {
  color: rgba(255,255,255,0.92) !important;
}

#rr-quote-widget p { color: rgba(255,255,255,0.72) !important; }

.rr-step { display: none; }
.rr-step.active { display: block; }

.rr-field { margin-bottom: 1rem; }

#rr-quote-widget .rr-field input[type="text"],
#rr-quote-widget .rr-field input[type="tel"],
#rr-quote-widget .rr-field input[type="email"],
#rr-quote-widget .rr-field textarea,
#rr-quote-widget .rr-field select {
  width: 100% !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.92) !important;
  outline: none !important;
}

#rr-quote-widget .rr-field input::placeholder,
#rr-quote-widget .rr-field textarea::placeholder{
  color: rgba(255,255,255,0.55) !important;
}

.rr-checkbox-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.rr-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rr-btn {
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.rr-btn-primary { background: #cc0000; color: #fff; }
.rr-btn-secondary { background: rgba(255,255,255,0.12); color:#fff; }

.rr-error { color: #ff6b6b; margin-top: 3px; font-size: 0.85rem; }

.rr-quote-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.rr-disclaimer-toggle {
  margin-top: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.rr-disclaimer {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.70);
}
.rr-disclaimer.visible { display: block; }

#rr-policy-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0.75rem 0;
  cursor: pointer;
}
#rr-policy-block input[type="checkbox"] {
  margin-top: 4px;
  pointer-events: none;
}

/* Modal */
.rr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.rr-modal {
  background: #ffffff;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #111 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rr-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}
.rr-modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-size: 0.95rem;
  color: #111 !important;
  background: #fff;
}
.rr-modal-footer {
  padding: 0.75rem 1.5rem 1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background: #fafafa;
}
.rr-btn-small {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}
.rr-btn-primary-small { background: #cc0000; color:#fff; }
.rr-btn-secondary-small { background:#eee; }

/* ==============================
   FIX: Select dropdown white-on-white
   ============================== */

#rr-quote-widget select {
  background-color: #0f1b2d;     /* dark background */
  color: #e6eef7;                /* readable text */
  border: 1px solid #2a3b55;
}

/* Dropdown list itself */
#rr-quote-widget select option {
  background-color: #0f1b2d;
  color: #e6eef7;
}

/* Hover / selected state */
#rr-quote-widget select option:checked,
#rr-quote-widget select option:hover {
  background-color: #1e3352;
  color: #ffffff;
}

/* Windows / Chrome optgroup fix */
#rr-quote-widget select optgroup {
  background-color: #0f1b2d;
  color: #9fb3cc;
}

/* Disabled select */
#rr-quote-widget select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
