#brighter-agreement-form-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#brighter-agreement-form {
  background: #ffffff;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#brighter-agreement-form h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.5rem;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 0.5rem;
}

#brighter-agreement-form h2:first-child {
  margin-top: 0;
}

.brighter-form-section {
  margin-bottom: 2rem;
}
.brighter-field {
    display: flex;
    flex-direction: column;
}
.brighter-field,
.brighter-readonly-field {
  margin-bottom: 1.5rem;
}

.brighter-field label,
.brighter-readonly-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.bw-provider {
    padding: 25px 5px;
    gap: 10px;
    display: flex;
    /* font-weight: 600; */
    color: #374151;
    font-size: 1.2rem;
    flex-direction: column;
}

p, li {
    color: #374151;
    font-size: 1.2rem;
    flex-direction: column;
line-height: 1.8;	
}



.brighter-field .required,
.brighter-readonly-field .required {
  color: #dc2626;
}

.brighter-field input[type="text"],
.brighter-field input[type="email"],
.brighter-field input[type="tel"],
.brighter-field input[type="date"],
.brighter-field textarea,
.brighter-readonly-field input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.brighter-field input:focus,
.brighter-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.brighter-readonly-field input[type="text"] {
border: none;
background: none;
  color: #6b7280;
  cursor: not-allowed;
}

.brighter-field textarea {
  resize: vertical;
  min-height: 80px;
}

.brighter-field input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(2.5);   /* Increase size */
  -webkit-transform: scale(2.5);
  margin-left:15px;       /* Add some spacing */
  cursor: pointer;

}

.brighter-field label:has(input[type="checkbox"]) {
  font-weight: normal;
  display: flex;
  align-items: center;
 padding: 0 5px;
    gap: 10px;
}

.brighter-field label:has(input[type="checkbox"]) a {
  color: #2563eb;
  text-decoration: underline;

}


.brighter-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  margin-top: 2rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.brighter-submit-btn:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.brighter-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.brighter-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

#signature-pad-container {
  margin-bottom: 0.5rem;
}

#signature-pad {
  touch-action: none;
}

button#clear-signature {
    margin-left: auto;
}

/* Success Modal Styles */
.brighter-success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.brighter-success-modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.brighter-success-modal h2 {
  margin-top: 0;
  color: #2563eb;
  border: none;
  padding: 0;
}

.brighter-success-modal p {
  line-height: 1.6;
  color: #374151;
}

.brighter-btn-primary,
.brighter-btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.brighter-btn-primary {
  background: #2563eb;
  color: white;
  border: none;
}

.brighter-btn-primary:hover {
  background: #1d4ed8;
}

.brighter-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.brighter-btn-secondary:hover {
  background: #f9fafb;
}


.brighter-form-section.bw-proposal-readonly {
display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}
.brighter-form-section.bw-proposal-readonly > .brighter-readonly-field {
    width: 50%;
    padding: 0px;
    margin: 0px;
}
.brighter-readonly-field input[type="text"] {
    border: none;
    background: none;
    padding: 0px;
    margin: 0;
}
.brighter-readonly-field label {
    padding: 5px 0px 0 0;
    margin: 0;
}


.brighter-readonly-field.bw-proposal-id {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
}
.brighter-readonly-field.bw-proposal-id > label {
    width: 150px;
}


/* Responsive */
@media (max-width: 768px) {
  #brighter-agreement-form {
    padding: 1.5rem;
  }

  #brighter-agreement-form h2 {
    font-size: 1.25rem;
  }
}
