<style>
h3.panel {
	padding-bottom: 2rem;
}
textarea {
	min-height: 3rem;
}
input[type="radio"] {
	width: auto;
	margin: -1px 3px 0px 5px;
    vertical-align: middle;
}
.validateSelect, .validateDate {
	width: auto;
}

.validation {
	display: none;
	padding-left: 2rem;
}
.validateCheckSeries {
	width: 1rem;
}
.validateCheckSeries:not(:first-child){
	margin-left: 1.5rem;
}
.loadingIcon {
	display: none;
	position: absolute;
	transform: translate(0,-.5rem);
}
.checkMarkIcon {
	display: none;
	transform: scale(1.25);
}
.invalidIcon {
	display: none;
	transform: translate(0,-.3rem);
}
.panel.validationIcons {
	border: none;
	display: inline-block;
}
.validationIcons img {
	padding-bottom: 1rem;
}
.validation-warning, .required-warning, .date-formatting-warning, .VIN-pattern-warning, .characters-warning, .radio-warning, .checkSeriesRequired {
	color: red;
	display: none;
}
#submitFormButton{
	float: left;
}
#certifyCheckbox {
	width: auto;
}
#repoLink {
	display: inline;
}
/* AI assisted style to move from ncbytrain to connect */
/* Container & Base Styles */
#formContainer {
  /* display: block; */
  width: 100%;
  box-sizing: border-box;
  color: rgb(11, 12, 12);
  font-size: 16px;
  line-height: 24px;
}

#formContainer *, #formContainer *::before, #formContainer *::after {
  box-sizing: border-box;
}

/* Key Box Section */
.key-box {
  display: block;
  margin-bottom: 32px;
  padding: 16px;
  background-color: rgb(236, 240, 243);
}

.key-box__heading {
  display: block;
  margin-bottom: 16px;
  color: rgb(57, 122, 172);
  font-size: 16px;
  line-height: 1.4;
}

.key-box__grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 12.8px;
}

.key-box__item {
  flex: 0 0 25%; /* 4 columns on large screens */
  margin-bottom: 8px;
}

.key-box__label--abbr {
  display: inline-block;
  width: 36px;
  font-weight: 700;
}

/* Form Steps */
.form-step {
  display: block;
  margin-bottom: 40px;
  padding-bottom: 32px;
}

.form-step__heading {
  display: block;
  position: relative;
  margin: 24px 0;
  color: rgb(9, 41, 64);
  font-size: 24px;
  line-height: 1.4;
}

.form-step__number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  margin-right: 12px;
  background-color: rgb(9, 41, 64);
  color: rgb(255, 255, 255);
  text-align: center;
  border-radius: 50%;
  font-size: 24px;
}

/* Layout Grid System */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -24px 0 48px -24px; /* Gutter compensation */
}

.form-grid__cell {
  flex: 1 1 auto;
  padding: 24px 0 0 24px;
}

.grid__cell--full { flex: 0 0 100%; }
.med-grid__cell--1of2 { flex: 0 0 50%; }
.med-grid__cell--1of3 { flex: 0 0 33.333%; }

/* Form Controls */
.input-text, 
.textarea {
  display: block;
  width: 100%;
  padding: 13.5px 15px;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(149, 160, 173);
  border-radius: 4px;
  color: rgb(11, 12, 12);
  font-size: 14px;
  line-height: 1.5;
}

.textarea {
  min-height: 100px;
}

.fieldset__label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

/* Custom Checkbox Layout */
.custom-input-label {
  display: inline-block;
  position: relative;
  padding: 0 0 3px 34px;
  cursor: pointer;
}

.checkbox-input {
  top: 4px;
  left: 0;
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Layered Textarea Count */
.input-layered {
  position: relative;
}

.input-layered__count {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 12.8px;
  color: rgb(95, 108, 123);
  background: white; /* To cover the textarea border if needed */
  padding: 2px;
}

/* Validation Messages */
.validation-warning {
  display: none; /* Controlled by JS */
  color: rgb(139, 0, 0);
  font-weight: 700;
  margin-top: 8px;
}

/* SelectBoxIt Placeholder Styling */
/* This mimics the look of the jQuery-enhanced select buttons */
.selectboxit-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 49px;
  padding: 0 15px;
  background-color: #fff;
  border: 1.6px solid rgb(9, 41, 64);
  border-radius: 4px;
  cursor: pointer;
}

.selectboxit-text {
  font-size: 14px;
  color: rgb(11, 12, 12);
}

.selectboxit-arrow-container {
  width: 24px;
  height: 24px;
}
</style>

/*AI assistance part 2*/

/*AI assistance part 2*/

/* 1. Reset and Container Styling */
#formContainer {
    max-width: 800px; /* Optional: adds a readable max-width */
    margin: 0 auto;
    padding: 16px; /* Padding for mobile */
    background: transparent !important; /* Remove core background */
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #333;
}

/* 2. Remove core backgrounds and images from specific sections */
#formContainer,
#formContainer .form-step,
#formContainer .grid.form-grid {
    background: none !important;
    background-image: none !important;
    padding: 0;
    margin-bottom: 24px;
}

/* 3. Minimalistic Input Styling */
#formContainer .input-text,
#formContainer .custom-select,
#formContainer .input-layered__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 0; /* Minimalistic feel: padding only on top/bottom */
    border: none;
    border-bottom: 2px solid #ccc; /* Bottom border only */
    border-radius: 0;
    background-color: transparent !important;
    font-size: 16px;
    transition: border-color 0.3s ease;
    margin-bottom: 8px;
}

#formContainer .input-text:focus,
#formContainer .custom-select:focus,
#formContainer .input-layered__textarea:focus {
    outline: none;
    border-bottom-color: #000; /* Darker border on focus */
}

/* 4. Functional Label Styling */
#formContainer .fieldset__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. Responsive Grid Adjustments */
/* Assuming the grid uses flexbox based on inspected styles */
#formContainer .grid.form-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: 0 !important; /* Resetting negative margins if any */
    margin-right: 0 !important;
}

#formContainer .trainHostTripReport .grid__cell {
    padding: 8px 0; /* Spacing between rows */
    flex: 1 1 100%; /* Default to full width on mobile */
}

/* Media Query for larger screens (Tablet and Desktop) */
@media screen and (min-width: 768px) {
    #formContainer {
        padding: 32px;
    }

    #formContainer .grid__cell.med-grid__cell--1of2 {
        flex: 1 1 calc(50% - 16px);
        margin-right: 16px;
    }

    #formContainer .grid__cell.med-grid__cell--1of3 {
        flex: 1 1 calc(33.333% - 16px);
        margin-right: 16px;
    }

    /* Remove right margin on the last item in a row if needed */
    #formContainer .grid__cell:last-child {
        margin-right: 0;
    }
}

/* 6. Clean Checkbox and Labels */
#formContainer .checkbox-input {
    margin-right: 10px;
    cursor: pointer;
}

#formContainer .custom-input-label {
    font-size: 16px;
    cursor: pointer;
}

fieldset.fieldset.form-grid__fieldset {
    background-color: #7777770a;
    background-image: none;
}
span.key-box__label.key-box__label--abbr {
    font-family: "Calibri","Helvetica",Arial,sans-serif;
}

/* Container adjustments */
.key-box {
  width: 100%;
  max-width: 1200px; /* Optional: prevents it from getting too wide on ultra-wide screens */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Grid setup */
.key-box__grid {
  display: flex;
  flex-wrap: wrap;
  margin: -8px; /* Offset for item padding */
}

/* Base style for grid items (Mobile First: 1 column) */
.key-box__item {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

/* Small screens (e.g., Tablets): 2 columns */
@media (min-width: 480px) {
  .small-grid--1of2 .key-box__item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Medium screens (e.g., Laptops): 3 columns */
@media (min-width: 768px) {
  .med-grid--1of3 .key-box__item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Large screens (e.g., Desktops): 4 columns */
@media (min-width: 1024px) {
  .large-grid--1of4 .key-box__item {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.priorityHandlingLabel {
	padding-left: 1rem;
}

#validationLoading {

/* Container Layout */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 32px;
  gap: 8px; /* Provides spacing between buttons */
}

/* Button Base Styles */
.btn {
  /* Layout & Box Model */
  display: inline-block;
  padding: 11px 15px;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  line-height: 1.5;
  
  /* Border & Shape */
  border: 2px solid rgb(9, 41, 64);
  border-radius: 4px;
  
  /* Colors & Typography */
  background-color: rgb(9, 41, 64);
  color: #ffffff;
  font-family: Helvetica, Arial, sans-serif; /* Fallback fonts */
  font-size: 16px;
  font-weight: 400;
  
  /* Transitions */
  transition: all 0.15s ease-in-out;
}

/* Interactive States */
.btn:hover {
  text-decoration: underline;
  /* Adjust background if a lighter/darker shade is desired on hover */
  filter: brightness(1.1); 
}

.btn:focus {
  outline: none;
  /* Recreating the glow effect found in the site's CSS */
  box-shadow: rgba(9, 41, 64, 0.2) 0px 0px 0px 5px;
}

.btn:active {
  background-color: rgb(9, 41, 64);
  filter: brightness(0.9);
}

}


</style>