/* Ezio Solutions Private Limited - Vendor Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #e11d2a;
    --primary-hover: #b91520;
    --primary-light: #fff1f2;
    --primary-dark: #991017;
    --secondary: #475569;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-focus: #f87171;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-primary: 0 4px 14px rgba(225, 29, 42, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.brand-portal-badge {
    padding: 3px 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #e11d2a, #0f172a);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(225, 29, 42, 0.3);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin: 0;
}

.brand-text p {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-header {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-header-admin {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-header-admin:hover {
    background: #e2e8f0;
}

.btn-header-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-header-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(225, 29, 42, 0.25);
}

/* Layout Containers */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Progress Tracker */
.progress-bar-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

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

.progress-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-item.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: #ffffff;
}

.step-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.step-item.active .step-title {
    color: var(--primary);
    font-weight: 700;
}

.step-item.completed .step-title {
    color: var(--text-main);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}

.card-header {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
}

.card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}

.card-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.form-section {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--text-main);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 42, 0.15);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Form Grids */
.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Checkbox & Radio styling */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.custom-checkbox:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.custom-checkbox input[type="checkbox"],
.custom-checkbox input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(225, 29, 42, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Vendor Selection Cards */
.vendor-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.vendor-type-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vendor-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vendor-type-card .card-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 20px;
}

.vendor-type-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.vendor-type-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 20px;
}

.vendor-type-card .code-tag {
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* OTP Boxes */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid #fecdd3;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 13.5px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.data-table tr:hover {
    background: #f8fafc;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background: #f1f5f9;
    color: #475569;
}

.badge-submitted {
    background: #fff1f2;
    color: #b91520;
}

.badge-review {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-correction {
    background: #ffedd5;
    color: #c2410c;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-hold {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Document Upload Items */
.upload-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.2s;
}

.upload-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.upload-doc-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.upload-doc-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    padding: 25px 5%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 860px) {

    .row,
    .row-3,
    .row-4,
    .vendor-cards-grid {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .step-title {
        display: none;
    }

    .step-item.active .step-title {
        display: block;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Contacted Vendor Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-top-bar {
    padding: 24px 28px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f1f5f9;
}

.modal-top-bar h3 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-top-bar p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #0f172a;
}

.modal-content-body {
    padding: 24px 28px 28px;
}

/* ==========================================================================
   Confidential Data Masking & Eye Reveal
   ========================================================================== */
.confidential-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.confidential-input-wrap .form-control {
    padding-right: 44px !important;
}

.confidential-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    color: #475569;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    z-index: 3;
}

.confidential-toggle-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
    border-color: #94a3b8;
}

.confidential-toggle-btn.active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91520;
}

/* Read-Only Confidential Display Badge */
.confidential-display-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    position: relative;
    vertical-align: middle;
    transition: all 0.25s ease;
}

.confidential-display-wrap.revealed {
    background: #fff1f2;
    border-color: #fecdd3;
    box-shadow: 0 0 0 2px rgba(185, 21, 32, 0.15);
    animation: confidentialBlink 0.4s ease 1;
}

.confidential-display-val {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #334155;
    transition: color 0.2s ease;
}

.confidential-display-wrap.revealed .confidential-display-val {
    letter-spacing: 0.5px;
    color: #b91520;
    font-weight: 800;
}

.confidential-display-toggle-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.confidential-display-toggle-btn:hover {
    background: #f1f5f9;
    color: #b91520;
    border-color: #b91520;
}

.confidential-display-toggle-btn.active {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91520;
}

@keyframes confidentialBlink {
    0% { background-color: #fef08a; }
    50% { background-color: #fed7aa; }
    100% { background-color: #fff1f2; }
}

@keyframes inputBlink {
    0% { background-color: #fef9c3; border-color: #facc15; }
    50% { background-color: #fee2e2; border-color: #fca5a5; }
    100% { background-color: #ffffff; }
}

.input-blink-active {
    animation: inputBlink 0.6s ease;
}