.interface,
.ms-render-options-wrap{
  .ms-form-container {
    h2.ms-step-title{
      border-bottom:0px;M
    }
  }


  .input-wrapper input[type=text],
  .input-wrapper textarea,
  .input-wrapper select
  
  {
    font-size:14px;
  }
  
  .ms-btn-primary{
    background-color:#000;
    color:#fff;
    border:none;
    padding:.75rem 2rem;
    font-size:16px;
    cursor:pointer;
    border-radius:4px;
    display:flex;
    gap:6px;

    span.label{
      overflow:hidden; 
      text-overflow:ellipsis;
      white-space:nowrap;


    }
    &:disabled{
      background-color:#888;
      cursor:not-allowed;
      opacity:.7;
      span.material-icons{
        color:#000;
        font-weight:400;
      }
    }
    &.link{
      &:disabled{
        background:transparent;
        color:#dadada;
      }
      display:flex;
      border:none;
      background:transparent;
      color:#000;
      padding:0;
      margin:0 6px 0 0;

      span.material-icons{
        font-size:24x;
        vertical-align:middle;
        margin:0 4px 0 0;

      }
      span.label{
        text-decoration:underline;
        font-size:16px;
        font-weight:200;
        color:#333;
        overflow:hidden; 
        text-overflow:ellipsis;
        white-space:nowrap;


      }
      &:hover{
        border-color:currentcolor;
        border-style:none;
        border-width:medium;
        background:transparent;
        color:#000;


      }


    }

  }

  .ms-btn-primary:hover{
    background-color:#333;
  }




  /** Multistage form: START **/

  .ms-form-container {
    display: flex;
    max-width: 100%;
    width:100%;
    flex:1;
    margin: 2rem auto;
    gap: 3rem;
  }

  /* Left Panel: Inputs */
  .ms-form-main {
    flex: 2;
  }

  .ms-step-title {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .ms-fields-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .ms-field-wrapper {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
  }

  .ms-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    &[type="color"]  {
      padding:0px;
    }
  }

  .ms-custom-buttons{
    width:100%;
    display:block;
  }


  .ms-input:focus {
    border-color: #666;
  }

  .ms-input.is-invalid {
    border-color: #d93025;
  }

  .ms-error-text {
    color: #d93025;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
  }

  /* Actions */
  .ms-form-actions {
    margin-top: 2rem;
    text-align: right;
  }


  .ms-btn-primary {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size:16px;
    cursor: pointer;
    border-radius: 4px;
    max-width:100%;

    
    span.label{
      width:auto;
      max-width:100%;
      
      overflow: hidden; 
      text-overflow: ellipsis;
      white-space: nowrap;


    }

    span.label{
      overflow: hidden; 
      text-overflow: ellipsis;
      white-space: nowrap;


    }
  }

  .ms-btn-primary:hover {
    background-color: #333;
  }

  .ms-btn-primary.link {
    display:flex;
    border:none;
    background:transparent;
    color:black;
    padding:0;
    margin:0 6px 0 0;

    span.material-icons{
      font-size:24x;
      margin:0 6px 0 0;
      font-size:16px;
      vertical-align:middle;
      margin-right:4px;

    }
    span.label{
      text-decoration:underline;
      font-size:16px;
      font-weight:200;
      color:rgb(51, 51, 51);
      overflow: hidden; 
      text-overflow: ellipsis;
      white-space: nowrap;


    }
    &:hover{
      border:none;
      background:transparent;
      color:black;


    }
  }

  .ms-btn-primary:disabled {
    background-color: #888;
    cursor: not-allowed;
    opacity: 0.7;
    span.material-icons{
      color:black;
      font-weight:400;
    }
  }




  /* Right Panel: Tab Sidebar */
  .ms-form-sidebar {
    flex: 1;

  }

  .ms-form-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .ms-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;

    padding-left:26px;
  }
  .ms-target-tabs-wrapper{
    display:flex;
    flex-direction:column;
    gap:6px;
    border-left:1px solid black;
  }

  .ms-target-tabs{
    display:flex;
    flex-direction:column;

    gap:6px;


  }
  .ms-tabs-header
  {  padding-left:26px;
    margin-bottom:16px
  }
  .ms-tab-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #888;
    transition: color 0.2s;
    @media screen and (max-width:768px){
      margin-right:16px;
    }
  }

  .ms-tab-item.active {
    color: #000;
    font-weight: bold;
  }

  .ms-tab-item.completed {
    color: #333;
  }

  .ms-tab-circle {
   
    
    
    width: 40px;
    height: 40px;
    border: 2px solid #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    background: #fff;
  }

  .ms-tab-item.active .ms-tab-circle {
    border-color: #000;
    border-width: 3px;
  }

  .ms-tab-item.completed .ms-tab-circle {
    border-color: #333;
  }

  /* Summary Container */
  .ms-summary-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none; /* hidden by default on step 1 */
  }

  .ms-summary-content {
    display: flex;
    align-items: center;
  }

  .ms-summary-icon {
    width: 70px;
    height: 70px;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    background-color: #e9e9e9;
  }

  /* Tab List Overrides */
  .ms-tab-circle-container {
    position: relative;
    margin-right: 1rem;
    @media screen and (max-width:768px){
      display:none;
    }
    
  }

  .ms-check-icon {
    display: block;
    position: absolute;
    left: 30px;
    top: 0px;
    font-weight: 800 !important;
    color: #00aa00;
    background: #fff;
    border-radius: 50%;

  }

  /* Actions and Buttons */
  .ms-form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ms-back-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
  }

  .ms-back-link:hover {
    text-decoration: underline;
  }

  /* List Field Type CSS */
  .ms-list-field-wrapper {
    flex: 1 1 100%;
    border: 0x solid #ff4444;

    margin-top: 1rem;
  }

  .ms-list-title {
    margin-bottom: 0.5rem;
  }

  .ms-list-items {
    margin-bottom: 1rem;
  }

  .ms-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .ms-list-delete {
    font-size: 18px !important;
    color: #999;
    margin-left: 0.5rem;
    cursor: pointer;
  }

  .ms-list-delete:hover {
    color: #d93025;
  }

  .ms-list-input-area {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .ms-list-input {
    flex: 1;
    max-width: 300px;
  }

  .ms-list-actions {
    display: flex;
    gap: 1rem;
  }

  .ms-list-action {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
  }

  .ms-list-action .material-icons {
    font-size: 16px !important;
    margin-right: 2px;
  }

  .ms-list-action:hover {
    color: #000;
    text-decoration: underline;
  }

  /** Multistage form: **/



  .ms-form-container {
    display: flex;
    max-width: 100%;
    width:100%;
    flex:1;
    margin: 2rem auto;
    gap: 3rem;
  }

  /* Left Panel: Inputs */
  .ms-form-main {
    flex: 2;
  }

  #ms-custom-buttons {
    display:flex; 
    gap:6px;
  }


  .ms-step-title {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .ms-fields-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .ms-field-wrapper {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
  }

  .ms-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    &[type="color"]  {
      padding:0px;
    }
  }
  .ms-custom-buttons-container{
    width:100%; 
    display:flex;
    gap:6px;
  }


  .ms-input:focus {
    border-color: #666;
  }

  .ms-input.is-invalid {
    border-color: #d93025;
  }

  .ms-error-text {
    color: #d93025;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: none;
  }


  .ms-mandatory-star{
    color: black; 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    pointer-events: none;

  }
  .ms-mandatory-list
  { color: black;
    color: black; 
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    pointer-events: none;
  } 

  /* Actions */
  .ms-form-actions {
    margin-top: 2rem;
    text-align: right;
  }


  /* Right Panel: Tab Sidebar */
  .ms-form-sidebar {
    flex: 1;

  }

  .ms-form-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .ms-tab-list {
    list-style: none;
    padding: 0;
    margin: 0;

    padding-left:26px;
  }
  .ms-target-tabs-wrapper{
    display:flex;
    flex-direction:column;
    gap:6px;
    border-left:1px solid black;
  }

  .ms-target-tabs{
    display:flex;
    flex-direction:column;

    gap:6px;


  }
  .ms-tabs-header
  {  padding-left:26px;
    margin-bottom:16px
  }
  .ms-tab-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #888;
    transition: color 0.2s;
  }

  .ms-tab-item.active {
    color: #000;
    font-weight: bold;
  }

  .ms-tab-item.completed {
    color: #333;
  }

  .ms-tab-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #888;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 1.2rem;
    background: #fff;
  }

  .ms-tab-item.active .ms-tab-circle {
    border-color: #000;
    border-width: 3px;
  }

  .ms-tab-item.completed .ms-tab-circle {
    border-color: #333;
  }

  /* Summary Container */
  .ms-summary-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: none; /* hidden by default on step 1 */
  }

  .ms-summary-content {
    display: flex;
    align-items: center;
  }

  .ms-summary-icon {
    width: 70px;
    height: 70px;
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    background-color: #e9e9e9;
  }

  /* Tab List Overrides */
  .ms-tab-circle-container {
    position: relative;
    margin-right: 1rem;
  }

  .ms-check-icon {
    display: block;
    position: absolute;
    left: 30px;
    top: 0px;
    font-weight: 800 !important;
    color: #00aa00;
    background: #fff;
    border-radius: 50%;

  }

  /* Actions and Buttons */
  .ms-form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .ms-back-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
  }

  .ms-back-link:hover {
    text-decoration: underline;
  }


  /* List Field Type CSS */
  .ms-list-field-wrapper {
    flex: 1 1 100%;
    border: 0x solid #ff4444;

    margin-top: 1rem;
  }

  .ms-list-title {
    margin-bottom: 0.5rem;
  }

  .ms-list-items {
    margin-bottom: 1rem;
  }

  .ms-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }

  .ms-list-delete {
    font-size: 18px !important;
    color: #999;
    margin-left: 0.5rem;
    cursor: pointer;
  }
  .ms-form-container {
    select{
      padding:5px;
      min-height:38px;
      display:inline-block;
      line-height:28px;
      margin:5px 0;

      max-height:auto;
    }
  }
  .ms-list-delete:hover {
    color: #d93025;
  }

  .ms-list-input-area {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .ms-list-input {
    flex: 1;
    max-width: 300px;
  }

  .ms-list-actions {
    display: flex;
    gap: 1rem;
  }

  .ms-list-action {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
  }

  .ms-list-action .material-icons {
    font-size: 16px !important;
    margin-right: 2px;
  }

  .ms-list-action:hover {
    color: #000;
    text-decoration: underline;
  }

}

/** Multistage form: END **/


/* Target the select element (you may want to add a specific class like .custom-select) */
select.ms-input {
  /* 1. Remove all borders first */
  border: none;

  /* 2. Add only the bottom border to match the other inputs */
  /* Note: Adjust the hex color slightly if your exact design system requires a specific green/gray */
  border: 0; 
  border-bottom: 2px solid #b1bcb0; 

  /* 3. Match the background color of the other inputs */
  background-color: #f2f4f2; 

  /* 4. Match the padding and font style */
  padding: 0px 12px; /* Adjust these values to match the exact height of your inputs */
  font-family: inherit;
  font-size: 12px;
  color: #666; /* Lighter gray text to match the placeholders/values */
  font-weight: normal; /* Removes the bold weight currently on "Anrede *" */

  /* 5. Slight rounding on the top corners, flat on the bottom */
  border-radius: 3px 3px 0 0;

  padding-left:6px;

  /* Ensure it sizes correctly within its grid/column */
  width: 100%;
  box-sizing: border-box;

  /* Optional: Reset appearance to ensure cross-browser consistency, 
  then add a custom dropdown arrow if the default one disappears */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height:36px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  margin:0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iIzg4ODg4OCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNNy4yNDcgMTEuMTQgMi40NTEgNS42NThDMS44ODUgNS4wMTMgMi4zNDUgNCAzLjIwNCA0aDkuNTkyYTEgMSAwIDAgMSAuNzUzIDEuNjU5bC00Ljc5NiA1LjQ4YTEgMSAwIDAgMS0xLjUwNiAwWiIvPjwvc3ZnPg==');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  &:hover{
    border-bottom: 2px solid #b1bcb0; 

  }
  &:focus{
    border-bottom: 2px solid #b1bcb0; 

  }
}

/* Remove default focus outline and optionally darken the bottom border on focus */
select:focus {
  outline: none;
  border-bottom-color: #8c9e8e; 
}