/* ===== Vendor Registration Page Styles ===== */
:root {
    --primary: #e17055;
    --primary-dark: #d35400;
    --primary-light: rgba(225, 112, 85, 0.12);
    --accent: #00cec9;
    --accent-light: rgba(0, 206, 201, 0.1);
    --success: #00b894;
    --success-light: rgba(0, 184, 148, 0.12);
    --danger: #d63031;
    --danger-light: rgba(214, 48, 49, 0.1);
    --warning: #fdcb6e;
    --info: #6c5ce7;
    --bg-body: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-solid: #1a1a2e;
    --bg-input: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(225, 112, 85, 0.5);
    --text: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.35);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(225, 112, 85, 0.15);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Animated Background Orbs ===== */
.bg-orbs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(225, 112, 85, 0.3), transparent 70%);
    top: -10%; right: -5%;
    animation-duration: 18s;
}

.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.25), transparent 70%);
    bottom: 10%; left: -5%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2), transparent 70%);
    top: 40%; left: 50%;
    animation-duration: 25s;
    animation-delay: -10s;
}

.orb-4 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(253, 203, 110, 0.15), transparent 70%);
    bottom: 30%; right: 10%;
    animation-duration: 28s;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.05); }
}

/* ===== Layout ===== */
.register-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    position: relative;
    z-index: 1;
}

/* ===== Brand Header ===== */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.brand-logo i { color: var(--success); font-size: 1.5rem; }
.brand-logo:hover { opacity: 0.85; transform: scale(1.02); }

.brand-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== Registration Card ===== */
.register-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.card-header {
    padding: 32px 36px 20px;
    text-align: center;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.card-header h1 i { color: var(--primary); font-size: 1.3rem; }

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== Progress Steps ===== */
.progress-container {
    padding: 0 36px 24px;
    position: relative;
}

.progress-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    position: absolute;
    top: 22px;
    left: 60px;
    right: 60px;
    z-index: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(225, 112, 85, 0.4);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, var(--success), #009a7d);
    border-color: var(--success);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.3);
}

.step-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-align: center;
}

.step.active .step-label { color: var(--primary); }
.step.completed .step-label { color: var(--success); }

/* ===== Form Steps ===== */
.form-step {
    display: none;
    padding: 0 36px 32px;
    animation: stepFadeIn 0.4s ease;
}

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

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

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 8px 24px rgba(225, 112, 85, 0.3);
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.step-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

/* ===== Form Grid ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group textarea { resize: vertical; min-height: 60px; }

.form-group select {
    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='rgba(255,255,255,0.4)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a2e;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    background: rgba(225, 112, 85, 0.04);
    box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.field-error {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 500;
    min-height: 0;
    display: none;
}

.field-error.visible { display: block; }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-light);
}

@keyframes headShake {
    0% { transform: translateX(0); }
    12.5% { transform: translateX(-6px); }
    37.5% { transform: translateX(5px); }
    62.5% { transform: translateX(-3px); }
    87.5% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.form-group.has-error { animation: headShake 0.5s ease-in-out; }

/* ===== Upload Grid ===== */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 4px;
}

.upload-card {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.02);
}

.upload-card:hover {
    border-color: var(--primary);
    background: rgba(225, 112, 85, 0.05);
    transform: translateY(-2px);
}

.upload-card.uploaded {
    border-color: var(--success);
    border-style: solid;
}

.file-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 6px;
    padding: 16px;
    text-align: center;
}

.upload-placeholder i {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.upload-card:hover .upload-placeholder i { color: var(--primary); }

.upload-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.upload-placeholder small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.upload-preview {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.upload-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.upload-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 184, 148, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
}

.upload-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

.upload-progress.active { display: block; }

.upload-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ===== Form Actions ===== */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-xs);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 18px rgba(225, 112, 85, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(225, 112, 85, 0.4);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success), #009a7d);
    color: white;
    box-shadow: 0 4px 18px rgba(0, 184, 148, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 184, 148, 0.4);
}

.btn-submit:disabled, .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Terms Checkbox ===== */
.terms-check {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--bg-input);
}

.checkbox-label input:checked + .checkmark {
    background: linear-gradient(135deg, var(--success), #009a7d);
    border-color: var(--success);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover { text-decoration: underline; }

/* ===== Success Screen ===== */
.success-screen { animation: stepFadeIn 0.5s ease; }

.success-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.success-icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--success-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 1.5s ease-in-out infinite;
}

.success-icon-wrap i { font-size: 2.8rem; color: var(--success); }

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 184, 148, 0); }
}

.success-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.success-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 28px;
}

.registration-id {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 36px;
    background: rgba(225, 112, 85, 0.08);
    border: 1px solid rgba(225, 112, 85, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
}

.registration-id span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.registration-id strong {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline, .btn-filled {
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-filled {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: 0 4px 18px rgba(225, 112, 85, 0.3);
}

.btn-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(225, 112, 85, 0.4);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--bg-card-solid);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid var(--border);
    max-width: 90vw;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast i { color: var(--primary); font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

/* ===== Info Tip ===== */
.info-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-xs);
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-tip i { color: var(--info); flex-shrink: 0; margin-top: 2px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .register-wrapper { padding: 20px 14px 40px; }
    .card-header { padding: 24px 20px 16px; }
    .card-header h1 { font-size: 1.25rem; }
    .progress-container { padding: 0 16px 20px; }
    .progress-track { left: 40px; right: 40px; }
    .form-step { padding: 0 20px 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr 1fr; }
    .step-header { flex-direction: column; text-align: center; padding: 16px; }
    .step-label { font-size: 0.6rem; }
    .step-circle { width: 36px; height: 36px; font-size: 0.85rem; }
    .form-actions { flex-direction: column-reverse; }
    .btn-next, .btn-prev, .btn-submit { width: 100%; justify-content: center; }
    .success-card { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .upload-grid { grid-template-columns: 1fr; }
    .brand-logo { font-size: 1.5rem; }
    .brand-tagline { font-size: 0.78rem; }
    .progress-track { display: none; }
    .step-label { display: none; }
    .progress-steps { justify-content: center; gap: 24px; }
}
