﻿
* {
    box-sizing: border-box;
    text-transform:capitalize;
}

#txtEmailId, #txtGSTNumber, #txtIFCSCode, #txtDOB, #txtNewPassword, #txtCnfPassword,
#txtAccountNo {
    text-transform: none !important;
}

body {
    background: linear-gradient(135deg, #0066CC 10%, #1e90ff 50%, #4169e1 100%);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), radial-gradient(circle at 60% 70%, rgba(240, 147, 251, 0.1) 0%, transparent 50%), radial-gradient(circle at 90% 10%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

/* Add floating particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent), radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent), radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent), radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: sparkle 25s linear infinite;
    z-index: -1;
}

@keyframes sparkle {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-200px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

.header {
    text-align: center;
    padding: 40px 0;
    color: white;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    font-family: poppins;
}

    .header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 100%);
        animation: headerShimmer 8s linear infinite;
        pointer-events: none;
    }

@keyframes headerShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 30px);
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 25%, #e3f2fd 50%, #ffffff 75%, #f0f8ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.3), 0 2px 8px rgba(102, 126, 234, 0.2);
    animation: fadeInDown 0.8s ease-out, titleGlow 4s ease-in-out infinite;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    font-family: 'Segoe UI', 'Arial', sans-serif;
    flex: 1;
    text-align: center;
}

    .header h1::before {
        content: '✦';
        position: absolute;
        left: -35px;
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(14px, 2.5vw, 20px);
        color: rgba(255, 255, 255, 0.8);
        animation: sparkleLeft 3s ease-in-out infinite;
    }

    .header h1::after {
        content: '✦';
        position: absolute;
        right: -35px;
        top: 50%;
        transform: translateY(-50%);
        font-size: clamp(14px, 2.5vw, 20px);
        color: rgba(255, 255, 255, 0.8);
        animation: sparkleRight 3s ease-in-out infinite;
    }

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(102, 126, 234, 0.3));
        transform: scale(1.02);
    }
}

@keyframes sparkleLeft {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) rotate(0deg) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) rotate(180deg) scale(1.2);
    }
}

@keyframes sparkleRight {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) rotate(0deg) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) rotate(-180deg) scale(1.2);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-logo {
    height: clamp(35px, 6vw, 50px);
    width: auto;
    max-width: clamp(100px, 15vw, 150px);
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
    animation: fadeInDown 0.8s ease-out, logoFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .header-logo:hover {
        transform: scale(1.1);
        filter: brightness(1.3) drop-shadow(0 6px 20px rgba(255, 255, 255, 0.5));
    }

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
        filter: brightness(1.1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.3));
    }

    50% {
        transform: translateY(-3px);
        filter: brightness(1.2) drop-shadow(0 6px 20px rgba(255, 255, 255, 0.4));
    }
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(12px, 2.5vw, 14px);
    padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

    .contact-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateY(-2px);
    }

.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 20px 0 20px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step {
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.step-number {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(14px, 3vw, 16px);
    margin-right: 15px;
    z-index: 2;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

    .step-number::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        border-radius: 50%;
        background: linear-gradient(45deg, #667eea, #0d6efd, #4169e1);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

.step.active .step-number {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #667eea 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.5), 0 5px 15px rgba(29, 182, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

    .step.active .step-number::before {
        opacity: 1;
        animation: rotate 3s linear infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1.2);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.step.completed .step-number {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 50%, #2e7d32 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4), 0 4px 12px rgba(46, 125, 50, 0.3);
    transform: scale(1.05);
}

    .step.completed .step-number::after {
        content: '✓';
        font-size: clamp(16px, 3vw, 20px);
        font-weight: 900;
        position: absolute;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.step-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(12px, 2.5vw, 14px);
    white-space: nowrap;
    margin-right: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.step.active .step-label {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(79, 195, 247, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.step.completed .step-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(76, 175, 80, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.step-line {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step.completed .step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4fc3f7, #66bb6a);
    animation: progressFill 0.6s ease-out;
}

@keyframes progressFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: clamp(25px, 4vw, 35px) clamp(20px, 3vw, 30px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out 0.4s both;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

    .form-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25), 0 18px 36px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .form-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #667eea 0%, #1e90ff 50%, #4169e1 100%);
        background-size: 300% 100%;
        animation: gradientSlide 4s ease-in-out infinite;
    }

    .form-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
        animation: cardShimmer 6s infinite;
        pointer-events: none;
    }

@keyframes gradientSlide {
    0% {
        background-position: 0% 0;
    }

    50% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0% 0;
    }
}

@keyframes cardShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    background: linear-gradient(135deg, #999 0%, #667eea 50%, #1e90ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    animation: stepTitleShine 5s ease-in-out infinite;
}

    .step-title::before {
        content: '━━━';
        position: absolute;
        left: 50%;
        top: -8px;
        transform: translateX(-50%);
        font-size: 12px;
        color: #667eea;
        opacity: 0.6;
        animation: decorativePulse 2s ease-in-out infinite alternate;
    }

@keyframes stepTitleShine {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(153, 153, 153, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.4));
    }
}

@keyframes decorativePulse {
    0% {
        opacity: 0.4;
        transform: translateX(-50%) scale(0.9);
    }

    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.step-heading {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #1e90ff 50%, #4169e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #333;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: headingGlow 3s ease-in-out infinite alternate;
}

@keyframes headingGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(118, 75, 162, 0.5));
        transform: scale(1.02);
    }
}

.step-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #1e90ff 50%, #4169e1 100%);
    border-radius: 2px;
    animation: underlineExpand 2s ease-in-out infinite alternate;
}

@keyframes underlineExpand {
    0% {
        width: 60px;
        opacity: 0.7;
    }

    100% {
        width: 100px;
        opacity: 1;
    }
}

.step-description {
    text-align: center;
    color: #666;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: clamp(25px, 4vw, 35px);
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: clamp(12px, 2vw, 18px);
    position: relative;
}

/* Outlined group styles from buyer_regist.html */
.outlined-group {
    position: relative;
    margin-bottom: 1.5rem;
}

    .outlined-group input,
    .outlined-group textarea,
    .outlined-group select {
        width: 100%;
        padding: 1rem 0.75rem 0.5rem 0.75rem;
        border: 2px solid #cfe2ff;
        border-radius: 8px;
        background: transparent;
        outline: none;
        resize: vertical;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .outlined-group label {
        position: absolute;
        top: -0.6rem;
        left: 0.75rem;
        background: #fff;
        padding: 0 0.25rem;
        color: #0d6efd;
        font-size: 0.9rem;
    }

/* Mandatory star styling */
.mandatory::after {
    content: " *";
    color: #ff4757;
    font-weight: bold;
}

.outlined-group input:focus,
.outlined-group textarea:focus,
.outlined-group select:focus {
    border-color: navy;
    box-shadow: 0 0 5px #0d6efd, 0 0 10px #0d6efd;
}

/* Dropdown specific styling */
.outlined-group select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Password field with eye icon */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #0d6efd;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

    .password-toggle:hover {
        background: rgba(13, 110, 253, 0.1);
        color: #0a58ca;
    }

    .password-toggle:focus {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
    }

.outlined-group input[type="password"],
.outlined-group input[type="text"].password-input {
    padding-right: 3rem;
}

/* File input styling */
.outlined-group input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed #cfe2ff;
    border-radius: 8px;
    background: rgba(207, 226, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .outlined-group input[type="file"]:hover {
        border-color: #0d6efd;
        background: rgba(13, 110, 253, 0.05);
    }

    .outlined-group input[type="file"]:focus {
        border-color: navy;
        background: rgba(13, 110, 253, 0.1);
    }

/* Upload field with preview button */
.upload-field {
    position: relative;
}

.preview-btn {
    position: absolute;
    right: 0.75rem;
    top: 30%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

    .preview-btn:hover {
        background: linear-gradient(135deg, #0a58ca 0%, #5a67d8 100%);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }

/* File preview area */
.file-preview {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    display: none;
    text-align: center;
}

    .file-preview.active {
        display: block;
        animation: fadeIn 0.3s ease-out;
    }

    .file-preview img {
        max-width: 100%;
        max-height: 200px;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .file-preview .pdf-icon {
        font-size: 48px;
        color: #dc3545;
        margin-bottom: 10px;
    }

    .file-preview .file-info {
        margin-top: 10px;
        font-size: 14px;
        color: #666;
    }

    .file-preview .close-preview {
        position: absolute;
        top: 5px;
        right: 10px;
        background: #dc3545;
        color: white;
        border: none;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        cursor: pointer;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.file-preview {
    position: relative;
}

/* Upload guidelines styling */
.upload-guidelines {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

    .upload-guidelines h5 {
        color: #0d6efd;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .upload-guidelines ul {
        margin: 0;
        padding-left: 20px;
        color: #333;
    }

    .upload-guidelines li {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.5;
    }

.form-label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

    .form-control:focus {
        outline: none;
        border-color: #4fc3f7;
        background: white;
        box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.1), 0 5px 15px rgba(79, 195, 247, 0.2);
        transform: translateY(-2px);
    }

        .form-control:focus + .form-label {
            color: #4fc3f7;
        }

.form-row {
    display: flex;
    gap: clamp(12px, 2.5vw, 20px);
    /* margin-bottom: 8px; */
}

    .form-row .form-group {
        flex: 1;
        min-width: 0;
    }

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-top: clamp(25px, 4vw, 35px); */
    /* padding-top: clamp(15px, 2.5vw, 25px); */
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: #4fc3f7;
    text-decoration: none;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 20px);
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .back-link:hover {
        background: rgba(79, 195, 247, 0.1);
        border-color: rgba(79, 195, 247, 0.2);
        transform: translateX(-5px);
    }

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #1e90ff 50%, #4169e1 100%);
    color: white;
    border: none;
    padding: clamp(12px, 2.5vw, 15px) clamp(25px, 4vw, 35px);
    border-radius: 30px;
    font-size: clamp(13px, 2.5vw, 15px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4), 0 5px 15px rgba(118, 75, 162, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

    .next-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .next-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5), 0 8px 20px rgba(118, 75, 162, 0.4);
    }

        .next-btn:hover::before {
            left: 100%;
        }

    .next-btn:active {
        transform: translateY(-1px) scale(1.02);
    }

    .next-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .next-btn:active {
        transform: translateY(-1px);
    }

.step-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

    .step-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input animations */
.form-group {
    position: relative;
}

.form-control::placeholder {
    color: #bbb;
    transition: all 0.3s ease;
}

.form-control:focus::placeholder {
    transform: translateY(-20px);
    opacity: 0;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    z-index: 1000;
}

/* Additional styles for seller registration fields */
.gender-options {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 8px 0;
}

.gender-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #0d6efd;
    font-size: clamp(12px, 2.2vw, 14px);
}

.form-check-inline {
    margin-right: clamp(15px, 3vw, 20px);
    margin-bottom: 8px;
}

.form-check-input {
    margin-right: 8px;
    accent-color: #0d6efd;
}

.form-check-label {
    color: #333;
    font-size: clamp(12px, 2.2vw, 14px);
    cursor: pointer;
}

.section-header {
    /* margin: clamp(15px, 3vw, 25px) 0 clamp(12px, 2.5vw, 15px) 0; */
    padding: clamp(8px, 2vw, 12px) 0;
    /* border-bottom: 2px solid rgba(13, 110, 253, 0.3); */
}

    .section-header h4 {
        background: linear-gradient(135deg, #0d6efd 0%, #667eea 50%, #764ba2 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 700;
        margin: 0;
        font-size: clamp(18px, 3.5vw, 22px);
        text-align: center;
        padding-bottom: clamp(0.5rem, 2vw, 1rem);
        font-family: 'Segoe UI', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        position: relative;
        animation: sectionPulse 4s ease-in-out infinite;
    }

        .section-header h4::before {
            content: '✦';
            position: absolute;
            left: 50%;
            top: -10px;
            transform: translateX(-50%);
            font-size: 16px;
            color: #667eea;
            animation: sparkleRotate 3s linear infinite;
        }

        .section-header h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, #0d6efd, #667eea);
            border-radius: 1px;
            animation: sectionUnderline 2s ease-in-out infinite alternate;
        }

@keyframes sectionPulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(13, 110, 253, 0.3));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
        transform: scale(1.01);
    }
}

@keyframes sparkleRotate {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes sectionUnderline {
    0% {
        width: 40px;
        opacity: 0.6;
    }

    100% {
        width: 60px;
        opacity: 1;
    }
}

.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

    .password-requirements h5 {
        color: #4fc3f7;
        margin-bottom: 15px;
        font-size: 16px;
        font-weight: 600;
    }

    .password-requirements ul {
        margin: 0;
        padding-left: 20px;
        color: rgba(255, 255, 255, 0.8);
    }

    .password-requirements li {
        margin-bottom: 8px;
        font-size: 14px;
    }

.form-text {
    color: #666;
    font-size: clamp(10px, 2vw, 12px);
    margin-top: 5px;
}

.factory-address-group {
    position: relative;
    z-index: 10000;
}

.factory-info-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98), rgba(118, 75, 162, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 8px;
    min-width: 320px;
    max-width: 420px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(102, 126, 234, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

    .factory-info-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .factory-info-popup::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid rgba(102, 126, 234, 0.98);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .factory-info-popup::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid rgba(255, 255, 255, 0.1);
    }

.popup-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: clamp(13px, 2.8vw, 15px);
    font-weight: 600;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: auto;
    backdrop-filter: blur(5px);
}

    .popup-close:hover {
        background: rgba(255, 255, 255, 0.3);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

.factory-info-popup .info-icon {
    font-size: clamp(14px, 3vw, 16px);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .form-check .form-check-input {
        margin: 0;
    }

    .form-check .form-check-label {
        margin: 0;
        line-height: 1.5;
        color: #333;
    }

/* Responsive improvements */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 30px;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px 10px 0 10px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
        flex-shrink: 0;
        min-width: max-content;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 5px;
        width: clamp(35px, 7vw, 45px);
        height: clamp(35px, 7vw, 45px);
        font-size: clamp(11px, 2.5vw, 14px);
    }

    .step-label {
        margin-right: 0;
        text-align: center;
        white-space: nowrap;
        font-size: clamp(9px, 2.2vw, 12px);
    }

    .step-line {
        width: clamp(20px, 8vw, 40px);
        height: 3px;
        margin: 0 clamp(5px, 2vw, 10px);
        transform: rotate(0deg);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-card {
        padding: 20px 15px;
        border-radius: 15px;
        margin: 0 10px 20px 10px;
    }

    .step-heading {
        font-size: 24px;
    }

    .header h1 {
        font-size: clamp(18px, 4vw, 24px);
    }

    .header-row {
        padding: 0 clamp(10px, 2.5vw, 20px);
        gap: clamp(8px, 2vw, 15px);
    }

    .header-logo {
        height: clamp(25px, 5vw, 35px);
        max-width: clamp(70px, 12vw, 100px);
    }

    .contact-link {
        font-size: clamp(10px, 2vw, 12px);
        padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 12px);
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .back-link, .next-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }

    .gender-options {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .form-check-inline {
        margin-right: 0;
        margin-bottom: 5px;
        flex-shrink: 0;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }

    .step-indicator {
        gap: 5px;
        padding: 15px 5px 0 5px;
        margin-bottom: 25px;
    }

    .step-number {
        width: clamp(30px, 6vw, 40px);
        height: clamp(30px, 6vw, 40px);
        font-size: clamp(10px, 2.2vw, 12px);
        margin-bottom: 4px;
    }

    .step-label {
        font-size: clamp(8px, 2vw, 10px);
    }

    .step-line {
        width: clamp(15px, 6vw, 30px);
        margin: 0 clamp(3px, 1.5vw, 8px);
    }

    .form-card {
        padding: 20px 15px;
        margin: 0 5px 15px 5px;
    }

    .step-heading {
        font-size: 20px;
    }

    .header h1 {
        font-size: clamp(16px, 3.5vw, 20px);
        padding: 0;
    }

    .header-row {
        padding: 0 clamp(8px, 2vw, 15px);
        gap: clamp(5px, 1.5vw, 10px);
    }

    .header-logo {
        height: clamp(20px, 4vw, 30px);
        max-width: clamp(60px, 10vw, 85px);
    }

    .contact-link {
        font-size: clamp(9px, 1.8vw, 11px);
        padding: clamp(3px, 0.8vw, 5px) clamp(6px, 1.5vw, 10px);
    }

    .step-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .outlined-group input,
    .outlined-group textarea {
        padding: 0.6rem 0.4rem 0.3rem 0.4rem;
        font-size: 13px;
    }

    .outlined-group label {
        left: 0.4rem;
        font-size: 0.75rem;
    }

    .password-requirements {
        padding: 15px;
        margin: 15px 0;
    }

        .password-requirements h5 {
            font-size: 14px;
        }

    .password-requirements li {
        font-size: 12px;
    }

    .preview-btn {
        position: absolute;
        right: 0.75rem;
        top: 55%;
        transform: translateY(-50%);
        background: linear-gradient(135deg, #0d6efd 0%, #667eea 100%);
        color: white;
        border: none;
        padding: 0.2rem 0.3rem;
        border-radius: 6px;
        font-size: 0.65rem;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    }
}

/* Large tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .step-indicator {
        flex-direction: row;
        gap: 15px;
        margin-bottom: 35px;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        padding: 20px 15px 0 15px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
        flex-shrink: 0;
        min-width: max-content;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 8px;
        width: clamp(40px, 6vw, 50px);
        height: clamp(40px, 6vw, 50px);
        font-size: clamp(12px, 2.8vw, 15px);
    }

    .step-label {
        margin-right: 0;
        text-align: center;
        white-space: nowrap;
        font-size: clamp(11px, 2.5vw, 14px);
    }

    .step-line {
        width: clamp(30px, 10vw, 60px);
        height: 3px;
        margin: 0 clamp(8px, 2.5vw, 15px);
        transform: rotate(0deg);
    }

    .form-card {
        padding: 35px 25px;
    }

    .main-container {
        max-width: 800px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .main-container {
        max-width: 1000px;
    }

    .form-card {
        padding: 45px 40px;
    }

    .header-row {
        padding: 0 clamp(25px, 4vw, 40px);
        gap: clamp(20px, 3vw, 30px);
    }

    .header-logo {
        height: clamp(40px, 6vw, 55px);
        max-width: clamp(120px, 16vw, 170px);
    }

    .contact-link {
        font-size: clamp(13px, 2.5vw, 15px);
        padding: clamp(8px, 1.5vw, 10px) clamp(16px, 3vw, 20px);
    }
}

/* Loading animation for form submission */
.loading {
    position: relative;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        margin: auto;
        border: 2px solid transparent;
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
