/*
 * Vendor Intake Portal - "Way Better" Glassmorphism Theme
 * First Heartland Capital TPRM System
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    --primary-color: #4e54c8;
    --primary-light: #8f94fb;
    --accent-color: #00d2ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 20px 40px rgba(78, 84, 200, 0.15);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(-45deg, #1e1b4b, #2e1065, #1e3a8a, #0f172a);
    background-size: 400% 400%;
    animation: gradientShift 18s ease infinite;
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Glass Container & Card */
.glass-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 15px;
    width: 100%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

/* Header */
.portal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portal-logo {
    max-height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.portal-title {
    color: #1e1b4b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.portal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Step Wizard Navigation Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 10px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(78, 84, 200, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 50%;
    left: 20px;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

.step-indicator {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #64748b;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.step-indicator.active {
    border-color: #4e54c8;
    background: #4e54c8;
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(78, 84, 200, 0.2);
    transform: scale(1.1);
}

.step-indicator.completed {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
}

.step-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: #64748b;
    font-weight: 600;
}

.step-indicator.active .step-label {
    color: #1e1b4b;
}

/* Step Content Panes */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

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

.step-header {
    border-bottom: 2px solid rgba(78, 84, 200, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.step-header h3 {
    color: #1e1b4b;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* Modern Form Controls */
.form-floating > label {
    font-size: 0.88rem;
    color: #64748b;
}

.form-control, .form-select {
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4e54c8;
    box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.15);
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Notice & Callout Cards */
.portal-callout {
    background: rgba(78, 84, 200, 0.05);
    border-left: 4px solid #4e54c8;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 1.5rem;
}

.portal-callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
}

/* Pill Gradient Buttons with Lift Effect */
.btn-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(78, 84, 200, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(78, 84, 200, 0.4);
    color: #ffffff;
}

.btn-outline-pill {
    background: transparent;
    border: 2px solid #cbd5e1;
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s ease;
}

.btn-outline-pill:hover {
    border-color: #4e54c8;
    color: #4e54c8;
    background: rgba(78, 84, 200, 0.05);
    transform: translateY(-2px);
}

/* Sub-processors Repeater Table */
.repeater-table {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.repeater-table thead {
    background: #f8fafc;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.repeater-table th, .repeater-table td {
    padding: 0.75rem 0.85rem;
    vertical-align: middle;
}

.repeater-table .form-control, .repeater-table .form-select {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
}

/* File Upload Drop Zone */
.upload-dropzone {
    border: 2px dashed #8f94fb;
    border-radius: var(--radius-md);
    background: rgba(143, 148, 251, 0.04);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-dropzone:hover {
    background: rgba(143, 148, 251, 0.1);
    border-color: #4e54c8;
}

.upload-dropzone i {
    font-size: 2.5rem;
    color: #4e54c8;
    margin-bottom: 0.5rem;
}

/* Success Confirmation Screen */
.success-screen {
    text-align: center;
    padding: 3rem 1.5rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.token-pill {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b4b;
    display: inline-block;
    margin: 1rem 0;
}

/* Footer */
.portal-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    padding: 20px 0;
    margin-top: auto;
}
