/* ============================================
   Vendor Registration — Premium Design
   ============================================ */

/* ===== Wrapper ===== */
.vr-wrapper {
    max-width: 780px;
    margin: 130px auto 60px;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Hero / Page Header ===== */
.vr-hero {
    text-align: center;
    margin-bottom: 32px;
}
.vr-hero-badge {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.vr-hero h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}
.vr-hero p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

/* ===== Step Indicators ===== */
.vr-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 10px;
}
.vr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
}
.vr-step-num {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    color: #9ca3af;
    transition: all 0.3s;
}
.vr-step span {
    font-size: 12px; font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s;
    text-align: center;
}
.vr-step.active .vr-step-num {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}
.vr-step.active span { color: #6366f1; }
.vr-step.completed .vr-step-num {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.vr-step.completed span { color: #10b981; }
.vr-step-connector {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 4px;
    margin-bottom: 22px;
    border-radius: 1px;
    transition: background 0.3s;
}
.vr-step-connector.completed {
    background: #10b981;
}

/* ===== Alerts ===== */
.vr-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}
.vr-alert i { margin-top: 2px; font-size: 18px; flex-shrink: 0; }
.vr-alert ul { margin: 6px 0 0; padding-left: 18px; }
.vr-alert ul li { margin-bottom: 3px; }
.vr-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.vr-alert-danger i { color: #ef4444; }
.vr-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.vr-alert-info i { color: #3b82f6; }
.vr-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.vr-alert-success i { color: #10b981; }

/* ===== Form Sections ===== */
.vr-section {
    display: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
    margin-bottom: 20px;
    overflow: hidden;
    animation: vrSlideIn 0.35s ease;
}
.vr-section.active { display: block; }

@keyframes vrSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.vr-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 0;
}
.vr-section-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    color: #6366f1; font-size: 18px;
    flex-shrink: 0;
}
.vr-section-header h2 {
    margin: 0; font-size: 18px; font-weight: 700;
    color: #111827;
}
.vr-section-header p {
    margin: 2px 0 0; font-size: 13px; color: #9ca3af;
}
.vr-section-body {
    padding: 24px 28px;
}
.vr-section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
}

/* ===== Form Fields ===== */
.vr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.vr-row:last-child { margin-bottom: 0; }

.vr-field {
    margin-bottom: 0;
}
.vr-field:not(.vr-row .vr-field) {
    margin-bottom: 18px;
}
.vr-field:last-child:not(.vr-row .vr-field) {
    margin-bottom: 0;
}

.vr-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.vr-field label i {
    color: #9ca3af;
    margin-right: 5px;
    font-size: 12px;
}
.vr-req { color: #ef4444; }

.vr-field input[type="text"],
.vr-field input[type="email"],
.vr-field input[type="tel"],
.vr-field input[type="password"],
.vr-field select,
.vr-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}
.vr-field input:focus,
.vr-field select:focus,
.vr-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.vr-field input::placeholder,
.vr-field textarea::placeholder {
    color: #d1d5db;
}
.vr-field textarea {
    resize: vertical;
    min-height: 90px;
}
.vr-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.vr-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #9ca3af;
}

/* ===== Password Wrapper ===== */
.vr-password-wrap {
    position: relative;
}
.vr-password-wrap input {
    padding-right: 44px;
}
.vr-pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #9ca3af; cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s;
}
.vr-pw-toggle:hover { color: #6366f1; }

/* ===== Password Strength ===== */
.vr-pw-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.vr-pw-bar {
    flex: 1;
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
}
.vr-pw-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s;
}
.vr-pw-label {
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
}

/* ===== Divider ===== */
.vr-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
}
.vr-divider::before,
.vr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}
.vr-divider span {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Info Box ===== */
.vr-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #0c4a6e;
    line-height: 1.5;
}
.vr-info-box i {
    color: #0ea5e9;
    margin-top: 2px;
    flex-shrink: 0;
}
.vr-info-box p { margin: 0; }

/* ===== Upload Zone ===== */
.vr-upload-zone {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafbfc;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vr-upload-zone:hover,
.vr-upload-zone.dragover {
    border-color: #6366f1;
    background: #eef2ff;
}
.vr-upload-zone.has-file {
    border-color: #10b981;
    background: #ecfdf5;
    border-style: solid;
}
.vr-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: -1;
}
.vr-upload-icon {
    font-size: 32px;
    color: #d1d5db;
    margin-bottom: 10px;
}
.vr-upload-zone:hover .vr-upload-icon,
.vr-upload-zone.dragover .vr-upload-icon {
    color: #6366f1;
}
.vr-upload-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px;
}
.vr-upload-text span {
    color: #6366f1;
    font-weight: 600;
    text-decoration: underline;
}
.vr-upload-hint {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}
.vr-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
}
.vr-upload-preview img {
    max-width: 120px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #d1fae5;
}
.vr-upload-preview-name {
    font-size: 12px;
    color: #065f46;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vr-upload-remove {
    position: absolute;
    top: -4px; right: -4px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 11px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}
.vr-upload-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ===== Terms Checkbox ===== */
.vr-terms {
    margin-top: 20px;
}
.vr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}
.vr-checkbox input[type="checkbox"] {
    display: none;
}
.vr-checkmark {
    width: 20px; height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 1px;
}
.vr-checkbox input:checked + .vr-checkmark {
    background: #6366f1;
    border-color: #6366f1;
}
.vr-checkbox input:checked + .vr-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #fff;
}
.vr-checkbox a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}
.vr-checkbox a:hover { text-decoration: underline; }

/* ===== Buttons ===== */
.vr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}
.vr-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.vr-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}
.vr-btn-outline {
    background: #fff;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
}
.vr-btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}
.vr-btn-submit {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    padding: 13px 28px;
    font-size: 15px;
}
.vr-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.4);
}

/* ===== Login Link ===== */
.vr-login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}
.vr-login-link a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}
.vr-login-link a:hover { text-decoration: underline; }

/* ===== Success Card ===== */
.vr-success-card {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f3f4f6;
}
.vr-success-icon { margin-bottom: 20px; }
.vr-success-circle {
    width: 80px; height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 34px;
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
    animation: vrSuccessPulse 2s ease infinite;
}
@keyframes vrSuccessPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(16,185,129,0.3); }
    50% { box-shadow: 0 8px 32px rgba(16,185,129,0.5); }
}
.vr-success-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
}
.vr-success-card > p {
    margin: 0 0 28px;
    font-size: 15px;
    color: #6b7280;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.vr-success-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
}
.vr-success-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.vr-success-step-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.vr-success-step-icon.done {
    background: #10b981;
    color: #fff;
}
.vr-success-step-icon.pending {
    background: #f3f4f6;
    color: #9ca3af;
}
.vr-success-step span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.vr-success-step-line {
    width: 48px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .vr-wrapper {
        margin-top: 90px;
        margin-bottom: 40px;
        padding: 0 16px;
    }
    .vr-hero h1 { font-size: 24px; }
    .vr-hero-badge { width: 52px; height: 52px; font-size: 22px; }
    .vr-row { grid-template-columns: 1fr; gap: 14px; }
    .vr-section-header { padding: 20px 20px 0; }
    .vr-section-body { padding: 20px; }
    .vr-section-footer { padding: 14px 20px; }
    .vr-steps { gap: 0; }
    .vr-step { min-width: 60px; }
    .vr-step span { font-size: 10px; }
    .vr-step-num { width: 32px; height: 32px; font-size: 12px; }
    .vr-step-connector { max-width: 40px; }
    .vr-upload-zone { padding: 20px 12px; min-height: 120px; }
    .vr-btn { padding: 10px 18px; font-size: 13px; }
    .vr-btn-submit { padding: 12px 22px; font-size: 14px; }
    .vr-success-card { padding: 32px 20px; }
    .vr-success-card h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .vr-wrapper { margin-top: 75px; }
    .vr-hero h1 { font-size: 22px; }
    .vr-hero p { font-size: 13px; }
    .vr-hero-badge { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
    .vr-step span { display: none; }
    .vr-step-num { width: 30px; height: 30px; font-size: 11px; }
    .vr-step-connector { max-width: 30px; margin-bottom: 4px; }
    .vr-section-header h2 { font-size: 16px; }
    .vr-section-icon { width: 38px; height: 38px; font-size: 16px; }
    .vr-field label { font-size: 12px; }
    .vr-field input,
    .vr-field select,
    .vr-field textarea { font-size: 14px; padding: 10px 12px; }
    .vr-section-footer {
        flex-direction: column;
        gap: 10px;
    }
    .vr-section-footer .vr-btn { width: 100%; justify-content: center; }
    .vr-success-steps { flex-wrap: wrap; gap: 6px; }
    .vr-success-step-line { width: 24px; }
}

/* ===== Hide old classes (if any leak from header/footer) ===== */
.vendor-registration-container { display: none !important; }
.vendor-registration-form { display: block !important; }
