.rbb-form-wrapper {
  --rbb-primary-color: #15418c;
  --rbb-text-color: #2b2b2b;
  --rbb-light-bg: #f8fafc;
  --rbb-border-color: #e2e8f0;
  
  font-family: 'Outfit', sans-serif;
  color: var(--rbb-text-color);
  max-width: 650px;
  margin: 20px auto;
}

.rbb-card {
  background: #ffffff;
  border: 1px solid var(--rbb-border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 35px;
  position: relative;
}

/* Typography styles */
.rbb-heading {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rbb-primary-color);
  margin-top: 25px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rbb-border-color);
  padding-bottom: 8px;
}

.rbb-desc {
  font-size: 15px;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.5;
}

.rbb-required {
  color: #ef4444;
}

/* Input styles */
.rbb-field-group {
  margin-bottom: 22px;
}

.rbb-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--rbb-primary-color);
}

.rbb-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rbb-border-color);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.rbb-input:focus {
  outline: none;
  border-color: var(--rbb-primary-color);
  box-shadow: 0 0 0 3px rgba(21, 65, 140, 0.15);
}

.rbb-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

.rbb-textarea {
  resize: vertical;
}

/* Checkbox and Radio grouping - Force block block layout to prevent merging */
.rbb-field-group-checkboxes,
.rbb-field-group-radios {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}

.rbb-checkbox-container,
.rbb-radio-container {
  display: flex !important;
  align-items: flex-start !important;
  position: relative !important;
  cursor: pointer;
  padding-left: 32px !important;
  user-select: none;
  font-size: 14px;
  line-height: 1.5;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0 !important;
}

.rbb-checkbox-container input,
.rbb-radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0;
}

/* Custom Checkbox elements */
.rbb-checkbox-custom {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1.5px solid var(--rbb-border-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.rbb-checkbox-container:hover input ~ .rbb-checkbox-custom {
  border-color: var(--rbb-primary-color);
}

.rbb-checkbox-container input:checked ~ .rbb-checkbox-custom {
  background-color: var(--rbb-primary-color);
  border-color: var(--rbb-primary-color);
}

.rbb-checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
}

.rbb-checkbox-container input:checked ~ .rbb-checkbox-custom:after {
  display: block;
}

.rbb-checkbox-container .rbb-checkbox-custom:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Custom Radio elements */
.rbb-radio-custom {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1.5px solid var(--rbb-border-color);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.rbb-radio-container:hover input ~ .rbb-radio-custom {
  border-color: var(--rbb-primary-color);
}

.rbb-radio-container input:checked ~ .rbb-radio-custom {
  border-color: var(--rbb-primary-color);
}

.rbb-radio-custom:after {
  content: "";
  position: absolute;
  display: none;
}

.rbb-radio-container input:checked ~ .rbb-radio-custom:after {
  display: block;
}

.rbb-radio-container .rbb-radio-custom:after {
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rbb-primary-color);
}

/* File upload styling */
.rbb-file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px dashed var(--rbb-border-color);
  padding: 12px;
  border-radius: 8px;
}

.rbb-file-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.rbb-file-btn {
  background: var(--rbb-primary-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 12px;
  pointer-events: none;
}

.rbb-file-name {
  font-size: 13px;
  color: #64748b;
}

/* Info Box */
.rbb-info-box {
  background-color: var(--rbb-light-bg);
  border-left: 4px solid var(--rbb-primary-color);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 15px 0 25px;
}

.rbb-info-title {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 12px;
}

.rbb-info-item {
  font-size: 14px;
  margin: 4px 0;
}

.rbb-info-desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.5;
}

/* Disclaimer Box */
.rbb-disclaimer-box {
  background-color: var(--rbb-light-bg);
  border: 1px solid var(--rbb-border-color);
  padding: 24px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin: 25px 0;
}

.rbb-disclaimer-box p {
  margin-top: 0;
  margin-bottom: 12px;
}

.rbb-disclaimer-box p:last-of-type {
  margin-bottom: 0;
}

/* Navigation buttons styling */
.rbb-navigation {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--rbb-border-color);
}

.rbb-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rbb-btn-submit {
  background-color: var(--rbb-primary-color);
  border: 1px solid var(--rbb-primary-color);
  color: #fff;
  width: 100%;
  font-size: 16px;
}

.rbb-btn-submit:hover {
  filter: brightness(1.1);
}
