@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Force the parent body/html to allow centering */
html, body {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Then apply it to your form */
#drupal-form-embed,
#drupal-form-embed * {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Specific elements */
#drupal-form-embed label,
#drupal-form-embed .field-label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

#drupal-form-embed input,
#drupal-form-embed textarea,
#drupal-form-embed select,
#drupal-form-embed .form-control {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

#drupal-form-embed button,
#drupal-form-embed input[type="button"],
#drupal-form-embed .submit-btn {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* Make the outer container full width but center its content */
#drupal-form-embed.main-content-section {
  width: 100% !important;
  display: block !important;
  padding: 0 0 !important;
  box-sizing: border-box !important;
}

/* Center the actual form content */
#drupal-form-embed .page-copy {
  width: 800px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

#drupal-form-embed .xrm-editable-html {
  width: 800px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

#drupal-form-embed .xrm-attribute-value {
  width: 800px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Force the table to full width with more specificity */
#drupal-form-embed table[role="presentation"].section {
  width: 100% !important;
  min-width: 100% !important;
  table-layout: fixed !important;
}

/* Hide or collapse the zero-cell columns */
#drupal-form-embed td.zero-cell {
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: none !important; /* Just hide them completely */
}

/* Make the actual form cells take full width */
#drupal-form-embed td.form-control-cell {
  width: 100% !important;
}

/* Ensure all table cells expand */
#drupal-form-embed table.section td.cell {
  width: 100% !important;
}

/* Make sure colgroup isn't constraining width */
#drupal-form-embed table.section colgroup,
#drupal-form-embed table.section colgroup col {
  width: 100% !important;
}

/* Fieldset and its container */
#drupal-form-embed fieldset {
  width: 100% !important;
  min-width: 100% !important;
}

/* The div and control containers inside cells */
#drupal-form-embed .info,
#drupal-form-embed .control {
  width: 100% !important;
}

/* Hide the validators div completely */
#drupal-form-embed .validators {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Also hide the validator spans just in case */
#drupal-form-embed .validators span {
  display: none !important;
}

/* Adjust the label container to remove any extra spacing */
#drupal-form-embed .info {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

/* Make sure labels have proper spacing */
#drupal-form-embed .field-label {
  margin-bottom: 8px !important;
  display: block !important;
}

/* Override the inline flex styles on the rows */
#drupal-form-embed .row.sectionBlockLayout {
  display: block !important;
  width: 800px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 8px !important;
}

/* Style the form container */
#drupal-form-embed .entity-form {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

#drupal-form-embed table {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    unicode-bidi: isolate;
    line-height: normal;
    font-weight: normal;
    font-size: medium;
    font-style: normal;
    color: -internal-quirk-inherit;
    text-align: start;
    border-spacing: 2px;
    border-color: gray;
    white-space: normal;
    font-variant: normal;
}

#drupal-form-embed fieldset {
    display: block;
    min-inline-size: min-content;
    margin-inline: 0;
    border-width: 0;
    border-style: none;
    border-color: transparent;
    border-image: none;
    padding-block: 0 0;
    padding-inline: 0;
}

/* Container styling */
#drupal-form-embed .section {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Form heading */
#drupal-form-embed h1, 
#drupal-form-embed h2, 
#drupal-form-embed .form-heading {
  color: orange;
  margin-bottom: 24px;
  font-weight: 600;
}

/* Form groups spacing */
#drupal-form-embed .form-group {
  margin-bottom: 24px;
}

/* Labels */
#drupal-form-embed .form-group label,
#drupal-form-embed .control-label {
  display: block;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Input fields */
#drupal-form-embed .form-control,
#drupal-form-embed input[type="text"],
#drupal-form-embed input[type="email"],
#drupal-form-embed input[type="tel"],
#drupal-form-embed textarea,
#drupal-form-embed select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #adb5bd;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #ffffff;
  margin-bottom: 1rem;
}

#drupal-form-embed .form-control:focus,
#drupal-form-embed input:focus,
#drupal-form-embed textarea:focus,
#drupal-form-embed select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: none;
}

/* Textarea specific */
#drupal-form-embed textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Required field indicator */
#drupal-form-embed .required,
#drupal-form-embed .required-field-indicator {
  color: #e74c3c;
  margin-left: 2px;
}

/* Submit button */
#drupal-form-embed .btn-primary,
#drupal-form-embed button[type="submit"],
#drupal-form-embed input[type="submit"] {
  background-color: #3498db;
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

#drupal-form-embed .btn-primary:hover,
#drupal-form-embed button[type="submit"]:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
  box-shadow: none;
}

/* Validation messages */
#drupal-form-embed .field-validation-error {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

#drupal-form-embed .field-validation-valid {
  /* display: none; */
}

/* Success/Error alerts */
#drupal-form-embed .alert {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

#drupal-form-embed .alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#drupal-form-embed .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Checkbox and radio buttons */
#drupal-form-embed input[type="checkbox"],
#drupal-form-embed input[type="radio"] {
  margin-right: 8px;
  width: auto;
}

/* Style the submit button with brand orange */
#drupal-form-embed input#InsertButton,
#drupal-form-embed .submit-btn,
#drupal-form-embed input[type="button"].btn-primary {
  background-color: rgb(252, 92, 31) !important;
  border-color: rgb(252, 92, 31) !important;
  color: #ffffff !important;
  padding: 12px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

/* Hover state */
#drupal-form-embed input#InsertButton:hover,
#drupal-form-embed .submit-btn:hover,
#drupal-form-embed input[type="button"].btn-primary:hover {
  background-color: #101920 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(16, 25, 32, 0.3) !important;
}

/* Active/pressed state */
#drupal-form-embed input#InsertButton:active,
#drupal-form-embed .submit-btn:active {
  background-color: #101920 !important;
  transform: translateY(0) !important;
}

/* Disabled state (when it says "Processing...") */
#drupal-form-embed input#InsertButton:disabled,
#drupal-form-embed .submit-btn:disabled {
  background-color: rgb(252, 92, 31) !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}



/* Mobile responsive */
@media (max-width: 768px) {
  #drupal-form-embed .section {
    margin: 20px;
    padding: 24px;
  }
  
  #drupal-form-embed .btn-primary {
    width: 100%;
  }
}