:root {
    --line-border-color: #21c063;
    --disabled-line-border: #d1d2d4;
    --button-active-color: #21c063;
    --text-color: #868991;
  }
  
  .progress-container {
      display: flex;
      justify-content: space-between;
      max-width: 100vw;
      position: relative;
      width: 26rem;
      margin: 0 auto;
  }
  .progress-container::before {
    background-color: var(--disabled-line-border);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    width: 100%;
    z-index: -1;
  }
  .progress {
    background-color: var(--line-border-color);
    height: 0.4rem;
    left: 0;
    position: absolute;
    top: 58%;
    transform: translateY(-50%);
    transition: 0.4s ease;
    width: 0%;
    z-index: -1;
  }
  .circle {
    align-items: center;
    background-color: #fff;
    border: 3px solid var(--disabled-line-border);
    border-radius: 50%;
    color: var(--text-color);
    display: flex;
    height: 2rem;
    justify-content: center;
    transition: 0.4s ease;
    width: 2rem;
  }
  .circle.active {
    border-color: var(--line-border-color);
  }

  #popup .form-container {
    width: 100%;
    max-width: 720px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

#popup .popup-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.36);
    z-index: 5;
}
#popup .popup-show-close {
    position: absolute;
    right: -10px;
    top: -10px;
    background: #fff;
    padding: 12px;
    border-radius: 50%;
    box-shadow: #8a8a8a 0px 1px 1px 0px;
    width: 25px;
    height: 25px;
    text-align: center;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
}


#generate_wit_ai {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    height: 35px;
}
.multiStepForm {
    margin-top: 20px;
}

#popup button.btn-primary {
    height: 35px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

#popup {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#popup h2 {
    text-align: center;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-step {
    display: none;
    transition: opacity 0.3s ease-in-out;
}

.form-step.active {
    display: block;
}

#popup label {
    font-weight: 500;
    display: block;
    margin-top: 15px;
    color: #555;
}

#popup input, #popup select, #popup textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
}

div#step2::-webkit-scrollbar {
    width: 8px;
    background: #0000004d;
}

#popup textarea {
    resize: vertical;
    min-height: 100px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}


.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.custom-checkbox:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    position: absolute;
    background: #21c06324;
    width: 100%;
    height: 100%;
    inset: 0;
    border-radius: 7px;
}
/* 
.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 13px;
    top: 31%;
}
.checkmark::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    background: #000000;
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 50px;
} */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::before {
    display: block;
}

.right-button {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1001;
    display: none;
}


.trigger-checkbox:checked ~ .overlay,
.trigger-checkbox:checked ~ .right-button {
    display: block;
}
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #999;
    position: relative;
    z-index: 1;
}

.progress-step.active {
    color: #007bff;
    font-weight: 500;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: -1;
    transform: translateY(-50%);
}

.progress-step:first-child::before {
    width: 50%;
    left: 50%;
}

.progress-step:last-child::before {
    width: 50%;
    right: 50%;
}

.progress-step.active::before {
    background: #007bff;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: background-color 0.3s ease;
}

.progress-step.active::after {
    background: #007bff;
}


.btn-ring {
    display: none;
}

.btn-ring:after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: ring 1.2s linear infinite;
}

.btn-process {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}


input:invalid + .error-message, textarea:invalid + .error-message {
    display: block;
}

.popup-main{
    display: block !important;
}


#step2 .form-container {
    display: flex;
    flex-direction: column;
}

#step2 .input-container {
    position: relative;
    margin-bottom: 20px;
}

#step2 input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    height: 48px;
}

#step2 input:focus {
    border-color: #00000005;
    box-shadow: 0 0 5px rgb(0 0 0 / 50%);
    border: 1px solid;
}

#step2 label {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #333;
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.2s ease-in-out;
    margin-top: 8px;
}

#step2 input:focus+label, #step2 input:not(:placeholder-shown)+label {
    top: 6px;
    left: 10px;
    font-size: 15px;
    color: #000000;
}

#step2 input[type="file"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
}

#step2 .button-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

#step2 .btn {
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#step2 .btn-secondary {
    background-color: #6c757d;
    color: white;
}

#step2 .btn-secondary:hover {
    background-color: #5a6268;
}
#step2, #step3, #step4 {
    height: 500px;
    overflow-y: scroll;
    padding-right: 10px;
}

#step3 select {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    height: 48px;
}

    #step3 select:focus {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

    #step3 label {
        font-weight: 500;
        display: block;
        margin-top: 8px;
        color: #555;
        padding: 0;
    }

    #step3 input[type="number"] {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    #step3 input[type="number"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }

 
    #step3 .button-container {
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }

    #step3 .btn {
        font-size: 16px;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    #step3 .btn-secondary {
        background-color: #6c757d;
        color: white;
    }

    #step3 .btn-secondary:hover {
        background-color: #5a6268;
    }
    .use-sample {
        font-size: 12px !important;
        height: 35px;
        padding: 10px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    #popup button.btn-primary:hover {
        background: #115114;
        border-color: #115114;
    }
    .ypi_loading {
        display: none;
    }
    .popup-show-close {
        cursor: pointer;
    }

    .ypi-submit-button {
        display: flex !important;
        gap: 15px;
        align-items: center;
    }

    .modern-button {
        padding: 15px 30px;
        font-size: 16px;
        font-weight: bold;
        color: #fff !important;
        background: linear-gradient(167deg, #8ac08c, #2ec96e);
        border: none;
        border-radius: 5px;
        cursor: pointer;
        outline: none;
        position: relative;
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .modern-button:hover {
        background: linear-gradient(167deg, #8ac08c, #2ec96e);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    }

    .modern-button:active {
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    }

    .modern-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
        transition: all 0.5s ease;
    }

    .modern-button:hover::before {
        left: 100%;
    }

@media (max-width: 767px){
    #popup .form-container {
        max-width: 370px;
    }
    .progress-container {
        width: 18rem;
    }
    .dashboard-header-wrap .dashboard-header-button {
        flex-direction: unset !important;
        align-items: center !important;
    }
    .dashboard-header-right .btn {
        margin-top: 0 !important;
    }
}