/* FormFlow Document Upload Widget Styles */

.formflow-document-upload-widget {
  margin: 0 auto;
}

.elementor-widget-formflow_document_upload {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0;
}

.formflow-widget-title {
  color: #121212 !important;
  text-align: center !important;
  font-family: "Museo Sans Webfont", sans-serif !important;
  font-size: 40px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 120% !important;
  letter-spacing: -0.8px !important;
  margin-bottom: 10px !important;
}

.formflow-widget-description {
  color: #717171 !important;
  text-align: center !important;
  font-family: "Inter", Sans-serif !important;
  font-size: 28px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: 34px !important;
  letter-spacing: -0.56px !important;
  margin: 0 auto;
  max-width: 600px;
  padding-bottom: 60px;
}

.formflow-widget-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Upload Area Styles */
.formflow-upload-container {
  flex: 1;
  min-width: 300px;
  background:#F1F1F1;
  padding: 32px;
  border-radius: 24px;
}

.formflow-upload-area {
  border: 1px dashed #A0A0A0;
  border-radius: 8px;
  background-color: #F1F1F1 !important;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.formflow-upload-area:hover {
  border-color: #999;
  background-color: #f0f0f0;
}

.formflow-upload-area.drag-over {
  border-color: #666;
  background-color: #eaeaea;
}

.formflow-upload-area-heading {
  display: flex;
  flex-direction: column; /* <-- changed from row to column */
  align-items: center; 
  gap: 10px;
}

.formflow-upload-icon {

}

.formflow-upload-icon svg {
  width: 48px;
  height: 48px;
  /* color: #333; */
}

.formflow-upload-text {
  margin-bottom: 8px;
  font-family: "Inter", Sans-serif !important;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 125%; /* 30px */
  letter-spacing: -0.48px;
  text-align: center;
}

.formflow-upload-subtext {
  max-width: 350px;
  margin: 0 auto;
  color:#717171;
  text-align: center;
  font-family: "Inter", Sans-serif !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 27.9px */
  letter-spacing: -0.36px;
}

.formflow-file-input {
  display: none;
}

/* Preview Container */
.formflow-preview-container {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  min-height: 250px;
}

.formflow-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.formflow-preview-filename {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.formflow-remove-file {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 0 5px;
}

.formflow-preview-content {
  padding: 15px;
  height: calc(100% - 45px);
  overflow: auto;
}

.formflow-preview-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.formflow-preview-content .pdf-preview {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

/* Form Styles */
.formflow-form-container {
  flex: 1;
  min-width: 300px;
}

.formflow-form-group {
  margin-bottom: 20px;
}

.formflow-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.formflow-form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

.formflow-form-input:focus {
  outline: none;
  border-color: #999;
}

/* Processing Overlay */
.formflow-processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formflow-processing-content {
  text-align: center;
  padding: 30px;
  max-width: 400px;
}

.formflow-processing-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.icon-loading {
  height: 24px;
  width: 24px;
  animation: spin 1s linear infinite;
}

.icon-done {
  height: 24px;
  width: 24px;
}

.formflow-processing-title {
  font-size: 20px;
  margin-bottom: 15px;
}

.formflow-processing-messages p {
  margin: 10px 0;
  font-size: 16px;
  color: #666;
}

/* Error Message */
.formflow-error-message {
  background-color: #fff3f3;
  border: 1px solid #ffcaca;
  color: #d32f2f;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .formflow-widget-container {
    flex-direction: column;
  }

  .formflow-upload-container,
  .formflow-form-container {
    width: 100%;
  }
}

/* New styles based on Figma design */
.formflow-layout {
  display: flex;
  gap: 20px;
  background-color: #F1F1F1;
  border-radius: 24px;
  padding: 32px;
}

/*
.formflow-left-column {
  flex: 2;
  max-width: 400px;
}

.formflow-right-column {
  flex: 1;
}
*/
.formflow-left-column,
.formflow-right-column {
  flex: 0 0 50%; /* <-- 50% width, no growing or shrinking */
  max-width: 50%; /* <-- ensures they don't overflow */
}

#formflow-success-state .formflow-right-column {
  flex: 4;
}
.formflow-processing-steps {
  text-align: left;
  position: relative;
  margin: 0 auto;
  max-width: 351px;
}

.formflow-step {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  opacity: 0.5;
}

.formflow-step.active, .formflow-step.current {
  opacity: 1;
}

.formflow-step .icon-loading, .formflow-step.current .icon-done {
  display: none;
}

.formflow-step.current .icon-loading {
  display: block;
}

.formflow-step-icon {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
}

.formflow-step.active .formflow-step-icon,
.formflow-step.current .formflow-step-icon{
  opacity: 1;
}

.formflow-step-text {
  font-family: "Inter", Sans-serif !important;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 155%; /* 27.9px */
  letter-spacing: -0.36px;
}

.formflow-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  position: absolute;
}

.formflow-avatar-left {
  top: -20px;
  left: -20px;
}

.formflow-avatar-right {
  bottom: -20px;
  right: -20px;
}

.formflow-example-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}


.formflow-example-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.formflow-example-button {
  all: unset !important; /* removes default button styles */
  display: block !important;
  color: #717171 !important;
  text-align: center !important;
  font-family: "Inter", sans-serif !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 155% !important; /* 27.9px */
  letter-spacing: -0.36px !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  margin-top: 10px;
}

.formflow-extraction-complete {
  display: flex;
  gap: 0px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.formflow-document-preview {
  flex: 0 0 220px;
  border-right: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.formflow-document-thumbnail {
  width: 110%;
  height: 300px;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  margin-left: -10px;
}

.formflow-document-info {
  padding: 10px;
  font-size: 14px;
}

.formflow-extracted-data {
  flex: 1;
}

.formflow-data-table {
  width: 100%;
  border-collapse: collapse;
}

.formflow-data-table th,
.formflow-data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.formflow-data-table th {
  font-weight: 600;
  color: #666;
}

.formflow-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
}

.formflow-data-row:last-child {
  border: none;
}

.formflow-data-label {
  font-size: 14px;
  color: #666;
  flex: 1;
}

.formflow-data-value {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.formflow-confidence {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

.formflow-demo-button {
  background-color: #ff6b00;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.formflow-demo-button:hover {
  background-color: #e05f00 !important;
  color: #fff !important;
}

.formflow-try-again-button {
  background-color: transparent;
  border: none;
  background: #D0D0D0;
  color: #000;
  border-radius: 4px;
  padding: 10px 20px;
  cursor: pointer;
  margin-left: 8px;
}

.formflow-try-again-button:hover {
  background-color: #f5f5f5 !important;
  color: #000 !important;
}

.formflow-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formflow-secondary-widget-title {
  color: #FF7D00;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 155% !important;
  letter-spacing: -0.28px;
  text-transform: uppercase;
}

.formflow-secondary-widget-description {
  color: #717171;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 300 !important;
  line-height: 155% !important;
  letter-spacing: -0.28px;
  font-style: italic !important;
}

.formflow-right-border {
  border-left: 1px solid #B8B8B8;
  padding-left: 32px;
  padding-top: 4%;
}

.formflow-left-column.center-container {
  padding-top: 4%;
}