.progress-form-main {
    max-width: 1128px;
    width: 96%;
    margin: 10px auto;
    /* padding: 30px; */
    /* border: 1px solid lightgrey; */
}

.progress-form-main .container {
    max-width: 1128px;
    margin: 30px auto;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px 40px;
}

.progress-form-main .form-row .form-group:first-child {
    /* border-right: 1px solid lightgrey; */
    padding-right: 16px;
}

.progress-form-main .form-row .form-group:last-child {
    /* border-right: 1px solid lightgrey; */
    padding-left: 16px;
}

.progress-form-main .form-single {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 5px;
}

.progress-form-main .note-editor {
    width: 100%;
}

.progress-form-main .form-single label {
    width: 100%;
}

.progress-form-main .form-single input {
    width: 100%;
}

.progress-form-main .form-select {
    padding: 6px;
}

.progress-form-main #add-title-group,
.progress-form-main #add-title-group-technical {
    padding: 13px;
    height: fit-content;
    width: max-content;
}

.progress-form-main .input-error {
    border-color: red;
}

.progress-form-main #dynamic-data-box,
.progress-form-main #dynamic-data-box-technical {
    width: 100%;
}

.progress-form-main .product-image-wrapper {
    width: 100%;
}

.progress-form-main .product-image-wrapper label {
    width: 100%;
}

.progress-form-main .js-example-basic-multiple {
    /* height: 3rem; */
}

.progress-form-main .custom_upload_input {
    height: 100%;
}

.progress-form-main .product-image-wrapper .item-1 {
    width: 100%;
    max-width: 50%;
    padding: 0;
}

/* Progress Steps */
.progress-form-main .progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 20px;
    background: #f8fafc;
}

.progress-form-main .step {
    display: flex;
    align-items: center;
}

.progress-form-main .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.3s ease;
}

.progress-form-main .step.active .step-circle {
    background: #ef4444;
    color: white;
}

.progress-form-main .step-line {
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
}

/* Form Header */
.progress-form-main .form-header {
    text-align: center;
    padding: 20px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.progress-form-main .form-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 8px;
}

.progress-form-main .form-header p {
    color: #64748b;
    font-size: 16px;
}

/* Form Styles */
.progress-form-main .quotation-form {
    padding: 20px;
}

.progress-form-main .form-row {
    display: flex;
    justify-content: space-between;
    /* gap: 20px; */
    /* margin-bottom: 20px; */
}

.progress-form-main .form-group {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 20px;
}

.progress-form-main input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
    width: 15px !important;
}

.progress-form-main .checkbox-group {
    flex-direction: row;
    align-self: auto;
    gap: 10px;
    padding-bottom: 20px;
    display: flex;
    flex: 1;
}

.progress-form-main .checkbox-group label {
    margin-bottom: 2px;
}

.progress-form-main .form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}

.progress-form-main label {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 550;
    margin-bottom: 6px;
    color: rgba(67, 81, 95, 1) !important;
    font-size: 16px;
    width: 100%;
}

.select2 {
    padding: 0px !important;
    border: unset !important;
    border-radius: 7px !important;
}

.select2-container .select2-selection--single {
    height: 44px;
    border: 1px solid lightgray;
    border-radius: 6px
}

.custom-select {
    border: unset;
}

.progress-form-main .select2 {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    padding-inline: 0px;
    padding-block: 0px;
    padding: 8px 8px 8px 15px;
    transition: all 0.2s ease;
    background: white;
    width: 100%;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.progress-form-main input,
.progress-form-main select,
.progress-form-main textarea{
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    height: 42px;
    padding-inline: 0px;
    padding-block: 0px;
    padding: 8px 8px 8px 15px;
    transition: all 0.2s ease;
    background: white;
    width: 100%;
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

.progress-form-main input:focus,
.progress-form-main select:focus,
.progress-form-main textarea:focus {
    outline: none;
    border-color: #3f72f7;
    box-shadow: 0 0 0 3px rgb(68 115 239 / 10%)
}

.progress-form-main input::placeholder,
.progress-form-main textarea::placeholder {
    color: #9ca3af;
}

.progress-form-main select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.progress-form-main textarea {
    resize: vertical;
    /* min-height: 100px; */
}

/* Form Actions */
.progress-form-main .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.progress-form-main .next-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.progress-form-main .next-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.progress-form-main .next-btn:active {
    transform: translateY(0);
}

.progress-form-main .prev-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.progress-form-main .prev-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.progress-form-main .prev-btn:active {
    transform: translateY(0);
}

.progress-form-main .submit-btn {
    background: #30b221;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.progress-form-main .submit-btn:hover {
    background: #30b221;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.progress-form-main .submit-btn:active {
    transform: translateY(0);
}

.progress-form-main .step-section {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Form Validation Styles */
.progress-form-main .form-group.error input,
.progress-form-main .form-group.error select,
.progress-form-main .form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.progress-form-main .error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.progress-form-main .form-group.error .error-message {
    display: block;
}

/* Loading State */
.progress-form-main .next-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.progress-form-main .next-btn:disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.progress-form-main .select2-container--default .select2-selection--single .select2-selection__placeholder
{
    font-size: 14px;
    font-family: inherit;
}

.progress-form-main .select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 0px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-form-main .custom-select{
    height: 40px !important;
    padding: 10px !important;
}

/* Additional styling for vacancy forms */
.progress-form-main .title-color {
    color: #374151 !important;
    font-weight: 600;
}

.progress-form-main .input-required-icon {
    color: #ef4444;
    font-weight: bold;
}

.progress-form-main .step-section:first-of-type {
    display: block;
}

.progress-form-main .d-none {
    display: none !important;
}

.progress-form-main .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.progress-form-main .form-actions .prev-btn {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .progress-form-main .container {
        margin: 10px;
        border-radius: 8px;
    }

    .progress-form-main .form-row {
        /* gap: 15px; */
        flex-direction: column;
    }

    .progress-form-main .form-row .form-group:last-child {
        padding-left: 0;
    }

    .progress-form-main .quotation-form {
        padding: 20px;
    }

    .progress-form-main .form-header {
        padding: 20px;
    }

    .progress-form-main .form-header h1 {
        font-size: 24px;
    }

    .progress-form-main .progress-container {
        padding: 20px 10px 15px;
    }

    .progress-form-main .step-line {
        width: 60px;
        margin: 0 5px;
    }

    .progress-form-main .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .progress-form-main .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .progress-form-main .form-actions .prev-btn {
        margin-right: 0;
        width: 100%;
    }

    .progress-form-main .next-btn,
    .progress-form-main .submit-btn {
        width: 100%;
    }
}

/* Upload UI (shared for product, leads, stock-sell) */
.progress-form-main .upload-box {
    border: 1px dashed #e5e7eb; /* light gray */
    background: #fafafa;
    border-radius: 10px;
    padding: 14px;
}
.progress-form-main .upload-instructions {
    color: #6b7280; /* slate-500 */
    font-size: 13px;
    margin-top: 6px;
}
.progress-form-main .upload-error { color: #dc2626; }
.progress-form-main .upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.progress-form-main .upload-preview-box {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}
.progress-form-main .upload-preview-box img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.progress-form-main .upload-preview-box .delete-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444; /* primary red to match product theme */
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}
.progress-form-main .upload-preview-box .delete-image-btn:hover { background: #dc2626; }
.progress-form-main .hover-delete:hover .delete-image-btn { opacity: 1; }