.brio-documents,
.brio-documents * {
  box-sizing: border-box;
}

.brio-documents {
  width: 100%;
  padding: 48px 20px;
  background: #ffffff;
  font-family: Arial, sans-serif;
}

.brio-documents-wrapper {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.brio-documents-title {
  text-align: center;
  color: #121135;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 40px;
}

.brio-documents-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.brio-documents-grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.brio-file-field {
  width: 100%;
  border: 1px solid #d1d5db !important;
  border-radius: 16px !important;
  background: #f9fafb !important;
  overflow: hidden;
}

.brio-file-box {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  height: 48px;
  border-radius: 16px !important;
  overflow: hidden;
}

.brio-documents input.brio-file-placeholder[type="text"] {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 18px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-size: 14px;
  color: #6b7280 !important;
  font-weight: 400;
}

.brio-documents input.brio-file-placeholder[type="text"]::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}

.brio-documents button.brio-file-button,
.brio-documents button.brio-submit-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.brio-documents button.brio-file-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 140px;
  width: 140px;
  height: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: none !important;
  border-left: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  background: #f3f4f6 !important;
  color: #3d359e !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.brio-documents button.brio-file-button:hover,
.brio-documents button.brio-file-button:focus,
.brio-documents button.brio-file-button:active {
  background: #f3f4f6 !important;
  color: #3d359e !important;
  border: none !important;
  border-left: 1px solid #d1d5db !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.brio-file-field.completed {
  border-color: #84d309 !important;
}

.brio-file-field.completed .brio-file-placeholder {
  color: #1d2331 !important;
  font-weight: 600 !important;
}

.brio-file-field.completed .brio-file-button {
  border-left-color: #84d309 !important;
}

.brio-feedback {
  display: none;
  width: 100%;
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.brio-feedback.is-visible {
  display: block;
}

.brio-feedback-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  text-align: center;
}

.brio-feedback-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  display: flex;
  justify-content: center;
  text-align: center;
}

.brio-feedback.info {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #312e81;
}

.brio-feedback.success {
  background: #ecfdf3;
  border-color: #a7f3d0;
  color: #065f46;
}

.brio-feedback.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.brio-feedback.warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.brio-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.brio-documents button.brio-submit-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 185px;
  min-height: 52px;
  margin: 0 !important;
  padding: 16px 30px !important;
  border: none !important;
  border-radius: 999px !important;
  background-color: #dce9b0 !important;
  color: #bac6da !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  cursor: not-allowed !important;
}

.brio-documents button.brio-submit-button.enabled {
  background: #84d309 !important;
  color: #1d2331 !important;
  cursor: pointer !important;
}

.brio-documents button.brio-submit-button:hover,
.brio-documents button.brio-submit-button:focus,
.brio-documents button.brio-submit-button:active {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.brio-documents button.brio-submit-button:disabled {
  opacity: 1 !important;
}

.brio-documents a.brio-whatsapp-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 14px 24px !important;
  border: 1.5px solid #96d141 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #96d141 !important;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 150% !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.brio-documents a.brio-whatsapp-button:hover,
.brio-documents a.brio-whatsapp-button:focus,
.brio-documents a.brio-whatsapp-button:active {
  color: #96d141 !important;
  background: #ffffff !important;
  border: 1.5px solid #96d141 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}

.brio-documents .brio-whatsapp-icon {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  color: #96d141 !important;
  fill: currentColor !important;
}

.brio-hidden-file-input {
  display: none !important;
}

@media (min-width: 769px) {
  .brio-documents button.brio-submit-button,
  .brio-documents a.brio-whatsapp-button {
    width: 30% !important;
  }
}

.toastify {
  z-index: 999999 !important;
  font-family: Arial, sans-serif;
  max-width: 400px;
}

@media (max-width: 768px) {
  .brio-documents {
    padding: 32px 16px;
  }

  .brio-documents-title {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .brio-documents-grid-top {
    grid-template-columns: 1fr;
  }

  .brio-file-box {
    min-height: 64px;
    height: 64px;
  }

  .brio-documents button.brio-file-button {
    min-width: 144px;
    width: 120px;
    font-size: 15px !important;
  }

  .brio-documents input.brio-file-placeholder[type="text"] {
    font-size: 15px;
  }

  .brio-documents-grid-bottom {
    margin-bottom: 24px;
  }

  .brio-feedback {
    padding: 14px 16px;
  }

  .brio-feedback-title {
    font-size: 15px;
  }

  .brio-feedback-message {
    font-size: 14px;
  }

  .toastify {
    max-width: 250px !important;
    width: auto !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .toastify .toast-close {
    font-size: 16px !important;
    padding-left: 10px !important;
  }
}
