.kwo-form-container {
    max-width: 1000px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    color: #2c3e50;
}

.kwo-form-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 5px;
    color: #1d2d50;
}

.kwo-form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.kwo-steps-wrapper {
    margin-bottom: 30px;
}

.kwo-steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.kwo-step {
    text-align: center;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: bold;
    color: rgb(28,36,75);
    align-items: center;
}

.kwo-step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    border: 2px solid rgb(28,36,75);
    color: rgb(28,36,75);
    background: none;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.kwo-step-label {
    color: rgb(28,36,75);
    font-weight: normal;
}

.kwo-step.active .kwo-step-number {
    border-color: rgb(133,183,37);
    color: rgb(133,183,37);
}

.kwo-step.active .kwo-step-label {
    color: rgb(133,183,37);
}

.kwo-step.completed .kwo-step-number {
    background: rgb(133,183,37);
    color: #fff;
    border-color: rgb(133,183,37);
}

.kwo-step.completed .kwo-step-label {
    color: rgb(133,183,37);
}

/* Form Steps */
.kwo-form-step {
    display: none;
}
.kwo-form-step[data-step="1"] {
    display: block;
}

/* Form Layout */
.kwo-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.kwo-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kwo-form-group label {
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
    font-size: 16px;
}

.kwo-form-group input[type="text"],
.kwo-form-group input[type="email"],
.kwo-form-group input[type="url"],
.kwo-form-group input[type="date"],
.kwo-form-group input[type="number"],
.kwo-form-group input[type="tel"],
.kwo-form-group select,
.kwo-form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

.kwo-password-wrapper {
    position: relative;
    width: 100%; /* Ensure the container width is consistent */
    max-width: 300px; /* Optional max-width for better control */
}

.kwo-password-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 15px; /* Space for the icon on the right */
    font-size: 1rem;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.kwo-password-wrapper input:focus {
    border-color: rgba(132, 183, 37, 0.452); /* Match primary color */
    outline: none;
    box-shadow: 0 0 5px rgba(133, 183, 37, 0.5); /* Focus effect */
}

.kwo-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.kwo-toggle-password:hover {
    color: rgba(132, 183, 37, 0.466); /* Match primary color */
}

.kwo-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
}

/* Buttons */
.kwo-btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border 0.3s;
    margin-top: 20px;
    text-align: center;
}

.kwo-next-step, .kwo-submit {
    background: rgb(28,36,75);
    color: #fff;
}

.kwo-next-step:hover, .kwo-submit:hover {
    background: rgb(133,183,37);
    color: #fff;
}

.kwo-back-step {
    background: #fff;
    border: 2px solid rgb(28,36,75);
    color: rgb(28,36,75);
}
.kwo-back-step:hover {
    border-color: rgb(133,183,37);
    color: rgb(133,183,37);
}

/* Gallery Section */
.kwo-gallery-section {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.kwo-gallery-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.kwo-gallery-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
}

.kwo-gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kwo-gallery-upload-button {
    display: inline-block;
    cursor: pointer;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: #555;
    position: relative;
}

.kwo-gallery-upload-button input[type="file"] {
    display: none;
}

#kwo-selected-file-count {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

input.is-invalid
 {
    border-color: red !important;
    box-shadow: 0 0 5px rgba(183, 37, 37, 0.5); /* Focus effect */
}


.kwo-form-group select:focus,
.kwo-form-group input:focus {
    border-color: rgba(132, 183, 37, 0.452); /* Match primary color */
    outline: none;
    box-shadow: 0 0 5px rgba(133, 183, 37, 0.5); /* Focus effect */
}

.kwo-disable-button {
    background-color: gray !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.kwo-gallery-remove-btn {
    position: absolute;
    top: 10px;
    right: 8px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1px;
    height: 20px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kwo-gallery-remove-btn:hover {
    opacity: 1;
}



/* Absolute Center Spinner */
.loading {
    position: fixed;
    z-index: 999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }
  
  /* Transparent Overlay */
  .loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
      background: radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0, .8));
  
    background: -webkit-radial-gradient(rgba(20, 20, 20,.8), rgba(0, 0, 0,.8));
  }
  
  /* :not(:required) hides these rules from IE9 and below */
  .loading:not(:required) {
    /* hide "loading..." text */
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
  }
  
  .loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 150ms infinite linear;
    -moz-animation: spinner 150ms infinite linear;
    -ms-animation: spinner 150ms infinite linear;
    -o-animation: spinner 150ms infinite linear;
    animation: spinner 150ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(255,255,255, 0.75) 1.5em 0 0 0, rgba(255,255,255, 0.75) 1.1em 1.1em 0 0, rgba(255,255,255, 0.75) 0 1.5em 0 0, rgba(255,255,255, 0.75) -1.1em 1.1em 0 0, rgba(255,255,255, 0.75) -1.5em 0 0 0, rgba(255,255,255, 0.75) -1.1em -1.1em 0 0, rgba(255,255,255, 0.75) 0 -1.5em 0 0, rgba(255,255,255, 0.75) 1.1em -1.1em 0 0;
  }
  
  /* Animation */
  
  @-webkit-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-moz-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-o-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }