* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: var(--e-global-typography-text-font-family, Arial), sans-serif;
  background: url('background.png'),
              linear-gradient(to bottom, var(--e-global-color-7705b72, #f5f5f5), var(--e-global-color-6d09294, #e0e0e0));
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}*/

body {
  font-family: var(--e-global-typography-text-font-family, Arial), sans-serif;
  /* Place a semi-opaque white gradient on top of the image to "lighten" it */
  background: linear-gradient(
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.85)
    ),
    url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Ensure content can sit above the background image */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Content */
/* .main-content {
  flex: 1;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-container { 
  background: var(--ast-global-dark-bg-style, #fff);
  padding: 30px; 
  border-radius: 8px; 
  box-shadow: var(--ast-shadow-style-guide, 0 3px 12px rgba(0,0,0,.08)); 
} */

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  /* Make the main area tall so the form can visually float over the hero/background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
}

.form-container {
  /* Slightly more translucent so the background image is visible through the form */
  background: rgba(255, 255, 255, 0.05); /* Lower opacity for transparency */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.18);
  backdrop-filter: blur(6px); /* Apply blur effect to the background */
  -webkit-backdrop-filter: blur(6px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 920px;
  width: 100%;
  z-index: 20; /* Ensure it sits above the background */
}

/* Stage Indicator */
.stage-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}
.stage {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ast-global-color-6, #ddd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.stage.active {
  background: var(--e-global-color-primary, #2a3b6c);
  color: #fff;
}
.stage.completed {
  background: var(--e-global-color-secondary, #b8272d);
  color: #fff;
}

/* Section Headers */
.form-section {
  margin-bottom: 25px;
}
.form-section h3 {
  color: var(--e-global-color-primary, #2a3b6c);
  border-bottom: 2px solid var(--e-global-color-secondary, #b8272d);
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.form-section h4 {
  color: var(--ast-global-color-3, #444);
  margin-top: 20px;
  margin-bottom: 12px;
  border-left: 4px solid var(--e-global-color-secondary, #b8272d);
  padding-left: 10px;
}

/* Form Elements */
.form-group {
  margin-bottom: 15px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--e-global-color-primary, #2a3b6c);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ast-border-color, #ccc);
  border-radius: 4px;
  font-size: 14px;
}

/* Inline labels and checkbox tweaks */
.inline-label {
  display: inline;
}
input[type="checkbox"].inline-checkbox {
  margin-left: 6px;
  width: auto;
  vertical-align: middle;
  transform: translate(-6px, -2px);
}

/* Same-as checkbox alignment */
#same_as_group {
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="file"] {
  font-size: 14px;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
}
.radio-group input[type="radio"] {
  margin-right: 6px;
  width: auto;
}

/* Conditional fields */
.conditional-field {
  display: none;
  margin-left: 10px;
  padding: 15px;
  border-left: 3px solid rgba(42, 59, 108, 0.12); /* softened to match translucent panel */
  background: rgba(
    255,
    255,
    255,
    0.65
  ); /* semi-transparent so background is slightly visible behind conditional panels */
  border-radius: 4px;
  margin-top: 10px;
}
.conditional-field.show {
  display: block;
}

/* Layout helpers */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Navigation buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  align-items: center;
}
.btn {
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.btn-primary {
  background: var(--e-global-color-secondary, #b8272d);
  color: #fff;
}
.btn-secondary {
  background: var(--e-global-color-primary, #2a3b6c);
  color: #fff;
}
.btn:hover {
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-bar {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .header-title h1 {
    font-size: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Tooltip info icon */
.info-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-left: 0.3em;
  cursor: pointer;
  position: relative;
}
.info-icon svg {
  width: 1em;
  height: 1em;
  fill: var(--e-global-color-secondary, #b8272d);
  display: inline-block;
  vertical-align: middle;
}
.info-icon[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 120%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--e-global-color-primary, #2a3b6c);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: pre-line;
  z-index: 1000;
  font-size: 0.95em;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}
.info-icon[title]:hover::before {
  content: "";
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent var(--e-global-color-primary, #2a3b6c) transparent
    transparent;
  z-index: 1001;
}
