body {
  overflow-x: hidden;
}

.inputField,
.textareaField {
  transition: border-color 0.3s ease;
}

.selectDataList {
  z-index: 10;
}

/* === (MODALS & FORMS) === */

.modalWindow {
  overflow: visible;
  min-height: fit-content;
}

.stepsWrapper {
  min-height: auto;
  transition: min-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.step {
  visibility: hidden;
  pointer-events: none;
}

.step.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
  visibility: visible;
  pointer-events: auto;
  height: 100%;
}

.stepsFormWrap {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  height: 100%;
}

.loginForm,
.onboardingForm {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
}

.buttonGroup {
  margin-top: auto;
  padding-top: 24px;
}

.forgotLink {
  margin-bottom: 24px;
}

.agreementBox {
  max-height: 40vh;
  overflow-y: auto;
}

.platformCard {
  cursor: pointer;
  transition: transform 0.2s, border 0.3s ease;
  border: 2px solid transparent;
}

.platformCard:hover {
  transform: scale(1.02);
}

.platformCard.error {
  border-color: #ff4d4f !important;
  background-color: #fff1f0;
}

/* ==================================================
 VALIDATION STYLES 
================================================== */

.inputWrapper,
.selectComponent,
.passwordWrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

.togglePassword,
.inputBtnIcon {
  top: 29px !important;
  transform: translateY(-50%);
}

.inputWrapper.full-width {
  width: 100%;
}

.error-text {
  position: static;
  font-size: 12px;
  line-height: 1.3;
  color: #ff4d4f;
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: all 0.3s ease-in-out;
  padding-left: 4px;
}

.selectComponent .error-text,
.passwordWrapper .error-text {
  max-height: 60px;
  opacity: 1;
  margin-top: 4px;
}

.inputField.error,
.textareaField.error {
  border-color: #ff4d4f !important;
  background-color: #fff1f0;
}

.formGrid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.formGrid.twoCol {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .formGrid.twoCol {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.terms-wrapper {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
}

/* === RADIO BUTTON STYLES (Step 5) === */

.radioGroup {
  display: flex;
  border: none !important;
  background: transparent !important;
  width: fit-content;
}

.radioGroup label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #64748B;
  position: relative;
}

.radioGroup input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radioGroup label:has(input:checked) {
  border-color: var(--primaryBlue, #3646F5);
  background-color: var(--primaryBlue, #3646F5);
  color: #ffffff;
}

.radioGroup.error {
  padding: 1px;
  border: 1px solid #ff4d4f !important;
  border-radius: 14px;
  color: #ff4d4f;
  background-color: #fff; 
}

.radioGroup.error label:has(input:checked) {
  border-color: var(--primaryBlue, #3646F5) !important;
  background-color: var(--primaryBlue, #3646F5) !important;
  color: #ffffff !important;
}

/* === STEP 7 / BASIC CHECKBOX STYLES === */
.basic-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 8px 12px;
  height: auto;
  border-radius: 8px;
  border: 1px solid transparent; 
  transition: all 0.3s ease;
}

.basic-checkbox.error {
  border-color: #ff4d4f !important;
  background-color: #fff1f0;
}

.basic-checkbox .error-text {
  width: 100%;
  flex-basis: 100%;
  margin-top: 8px;
  order: 99;
  max-height: 60px;
  opacity: 1;
  color: #ff4d4f !important;
  font-weight: 500;
  text-align: right;
}

.basic-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin-top: 0;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.basic-checkbox:hover input[type="checkbox"] {
  border-color: var(--primaryBlue);
}

.basic-checkbox input[type="checkbox"]:checked {
  background-color: var(--primaryBlue);
  border-color: var(--primaryBlue);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.basic-checkbox.error input[type="checkbox"] {
  border-color: #d1d5db; 
  box-shadow: none;
}

.checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
  flex: 1;
}

.checkbox-text a {
  color: var(--primaryBlue);
  text-decoration: underline;
  font-weight: 500;
}

.checkbox-text a:hover {
  text-decoration: none;
}

/* === STEP 6 CUSTOM CHECKBOX ERROR (Shipper) === */
.checkbox.error {
  border: 1px solid #ff4d4f !important;
  border-radius: 16px; 
  box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.1);
}

.hidden-validation {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: -1;
}

.insideFormRow {
  display: flex;
  gap: 16px;
  align-items: flex-start; 
}

.insideFormRow .selectComponent,
.insideFormRow .inputWrapper {
  flex: 1;
  width: 100%;
  position: relative; 
  margin-bottom: 24px; 
}

.insideFormRow .error-text {
  position: absolute;
  bottom: -20px; 
  left: 0;
  width: 100%;
  font-size: 11px; 
  line-height: 1.2;
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.channelCard {
  justify-content: flex-start;
  height: 100%; 
}

.channelCard span {
  min-height: 36px;
  display: flex;
  align-items: flex-start; 
  justify-content: center; 
  line-height: 1.3;
  width: 100%;
}

.channelCard img,
.channelCard svg {
  margin: 10px auto 12px; 
  display: block;
}