/* Vendor Registration */

.vendor-register__wrapper {
    width: calc(100% - 10rem);
    margin: 0 auto;
    border-radius: 3rem;
    background-color: #f0f7fc;
    padding: 6.4rem 0 9.9rem 0
}


.vendor-register {
    padding: 4rem 0 0rem 0;
    position: relative;
}

.vendor-form__wrapper {
    background: #fff;
    border-radius: 3rem;
    padding: 3rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.05);
}

.vendor-form__box {
    margin-bottom: 3rem;
}

.vendor-form__box h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #000;
}

/* Form Elements */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: #666b6d;
}

/* Update select dropdown styles */
.form-control,
select.form-control {
    width: 100%;
    height: 5rem !important; /* Force height with !important to override Bootstrap */
    border: 3px solid #f0f7fc;
    border-radius: 1.5rem;
    padding: 0 1.5rem;
    font-size: 1.4rem;
    color: #000;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666b6d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 2rem;
    cursor: pointer;
}

select.form-control::-ms-expand {
    display: none;
}

select.form-control:focus {
    border-color: #c7dffa;
    box-shadow: none;
    outline: none;
}

/* Style the select on hover */
select.form-control:hover {
    border-color: #c7dffa;
}

/* Ensure consistent height in all browsers */
@-moz-document url-prefix() {
    select.form-control {
        padding-top: 0;
        padding-bottom: 0;
    }
}

textarea.form-control {
    height: 10rem;
    padding: 1.5rem;
    resize: none;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
    padding: 0 2rem;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: #f0f7fc;
    z-index: 1;
}

.step-indicator {
    position: relative;
    z-index: 2;
    text-align: center;
    background: #fff;
    border: 3px solid #f0f7fc;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.step-indicator span {
    font-size: 1.6rem;
    font-weight: 600;
    color: #666b6d;
}

.step-indicator small {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.8rem;
    font-size: 1.1rem;
    color: #666b6d;
    white-space: nowrap;
}

.step-indicator.active {
    border-color: #c7dffa;
    background: #c7dffa;
}

.step-indicator.active span {
    color: #fff;
}

/* Update Image Upload Styles */
.image-upload {
    text-align: center;
    border: 3px dashed #f0f7fc;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.image-upload .upload-content {
    position: relative;
    z-index: 2;
}

/* Image preview container */
.image-upload .preview-container {
    width: 20rem;
    height: 20rem;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload .preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.image-upload .file-info {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #666b6d;
}

.image-upload .file-name {
    color: #0d6efd;
    font-weight: 500;
    word-break: break-all;
    display: none;
}

.image-upload.has-image .file-name {
    display: block;
}

.image-upload .upload-prompt {
    font-size: 1.4rem;
    color: #666b6d;
    margin-top: 1rem;
}

.image-upload.has-image .upload-prompt {
    display: none;
}

/* Upload button style */
.image-upload .upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f7fc;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    color: #666b6d;
    font-size: 1.4rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.image-upload .upload-btn i {
    margin-right: 0.8rem;
    font-size: 1.6rem;
}

.image-upload:hover .upload-btn {
    background: #c7dffa;
    color: #000;
}

/* File upload validation message */
.image-upload .file-validation {
    display: none;
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.image-upload.invalid {
    border-color: #dc3545;
}

.image-upload.invalid .file-validation {
    display: block;
}

/* Button Wrapper */
.button__wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Button Styles */
.button {
    height: 5rem;
    font-size: 1.4rem;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .vendor-register {
        padding: 6rem 0;
    }

    .vendor-form__wrapper {
        padding: 2rem;
    }

    .button__wrapper {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .vendor-register {
        padding: 4rem 0;
    }

    .vendor-form__wrapper {
        padding: 1.5rem;
    }

    .step-indicators {
        padding: 0;
    }

    .step-indicator small {
        display: none;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1.6rem 2.5rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    min-width: 300px;
    max-width: 80%;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification i {
    font-size: 2.4rem;
}

.toast-notification.success {
    border-left: 6px solid #9341d4;
    background: linear-gradient(45deg, rgba(147, 65, 212, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.toast-notification.success i {
    color: #9341d4;
    filter: drop-shadow(0 2px 4px rgba(147, 65, 212, 0.2));
}

.toast-notification.error {
    border-left: 6px solid #dc3545;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.toast-notification.error i {
    color: #dc3545;
    filter: drop-shadow(0 2px 4px rgba(220, 53, 69, 0.2));
}

/* Animation for toast */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.show {
    animation: toastSlideIn 0.3s ease forwards;
}

/* Upload Progress */
.upload-progress {
    text-align: center;
    padding: 1.2rem;
    margin-top: 1.5rem;
    font-size: 1.4rem;
    color: #666b6d;
    background: #f0f7fc;
    border-radius: 1.5rem;
}

/* Drag and drop styles */
.image-upload.dragover {
    background-color: #f8fbff;
    border-color: #c7dffa;
    border-style: solid;
}

/* Upload placeholder image styles */
.image-upload img[src*="upload-placeholder"] {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.image-upload:hover img[src*="upload-placeholder"] {
    opacity: 0.7;
}

/* Update color scheme and styling */
.hero-2 .main-heading span.text-info {
    background: linear-gradient(45deg, #9341d4 0%, #d98efb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-indicators::before {
    background: linear-gradient(45deg, #9341d4 0%, #d98efb 100%);
    opacity: 0.3;
}

.step-indicator.active {
    border-color: #9341d4;
    background: linear-gradient(45deg, #9341d4 0%, #d98efb 100%);
}

/* Form styling updates */
.form-control:focus {
    border-color: #9341d4;
}

.button {
    background: linear-gradient(45deg, #9341d4 0%, #d98efb 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 65, 212, 0.3);
}

/* Image upload styling */
.image-upload {
    border: 3px dashed rgba(147, 65, 212, 0.2);
}

.image-upload:hover {
    border-color: #9341d4;
    background-color: rgba(147, 65, 212, 0.05);
}

.image-upload .upload-btn {
    background: linear-gradient(45deg, #9341d4 0%, #d98efb 100%);
    color: white;
}

.image-upload .upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(147, 65, 212, 0.3);
}

.image-upload .file-name {
    color: #9341d4;
}

/* Toast notifications */
.toast-notification.success {
    border-left: 4px solid #9341d4;
}

.toast-notification.success i {
    color: #9341d4;
}

/* Verified input state */
.form-control.verified {
    background-color: rgba(147, 65, 212, 0.05);
    border-color: #9341d4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239341d4'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

/* Upload progress */
.upload-progress {
    background: rgba(147, 65, 212, 0.1);
    color: #9341d4;
}

/* Hover effects */
select.form-control:hover,
.form-control:hover {
    border-color: rgba(147, 65, 212, 0.5);
}

/* Dragover state */
.image-upload.dragover {
    background-color: rgba(147, 65, 212, 0.05);
    border-color: #9341d4;
}

/* Preview container */
.image-upload .preview-container {
    background-color: rgba(147, 65, 212, 0.05);
}
