/* ================================
   GLOBAL STYLES & RESET
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    
    /* Accent Colors */
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%),
                url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80') center/cover no-repeat fixed;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* ================================
   SPLASH SCREEN
================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.splash-screen.hidden {
    display: none;
}

.splash-content {
    text-align: center;
    color: white;
    animation: zoomIn 0.8s ease-out;
}

.splash-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease-out;
}

.splash-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.splash-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.splash-animation {
    margin: 2rem 0;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.loader-dots span {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.splash-message {
    font-size: 1rem;
    opacity: 0.8;
    animation: slideInUp 0.8s ease-out 0.8s both;
}

.splash-continue-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: white;
    color: #1e40af;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out 1s both;
}

.splash-continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: #f0f9ff;
}

.splash-continue-btn:active {
    transform: translateY(-1px);
}

.splash-continue-btn i {
    transition: transform 0.3s ease;
}

.splash-continue-btn:hover i {
    transform: translateX(5px);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* ================================
   BACKGROUND ANIMATION
================================ */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 80px) scale(0.9);
    }
    75% {
        transform: translate(-80px, -50px) scale(1.05);
    }
}

/* ================================
   MAIN CONTAINER
================================ */

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ================================
   HEADER
================================ */

.header {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.6s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   PROGRESS BAR
================================ */

.progress-container {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.6s ease-out 0.1s both;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    cursor: pointer;
    transition: var(--transition-normal);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition-normal);
}

.step.active .step-icon {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
    animation: pulse 2s infinite;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed .step-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step.completed .step-label {
    color: var(--secondary-color);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(30, 64, 175, 0.8);
    }
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border-radius: 999px;
    transition: width var(--transition-slow);
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

/* ================================
   FORM CONTAINER
================================ */

.form-container {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease-out 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   FORM STEPS
================================ */

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1e40af, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ================================
   FORM GRID & GROUPS
================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition-normal);
    outline: none;
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Phone Input with Prefix */
.phone-input-wrapper {
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 3rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.phone-input-wrapper input {
    padding-left: 5.5rem !important;
}

/* ================================
   DOCUMENT UPLOAD
================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.document-upload-box {
    position: relative;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    border: 3px dashed var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition-normal);
    min-height: 200px;
    text-align: center;
}

.upload-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.upload-label i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.upload-label:hover i {
    transform: scale(1.1);
}

.upload-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.upload-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upload-label input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-name {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-progress {
    display: none;
    width: 100%;
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.upload-progress.active {
    display: block;
}

.progress-bar-upload {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill-upload {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border-radius: 999px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.5);
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.upload-complete {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.upload-complete i {
    font-size: 1rem;
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    border-left: 4px solid #3b82f6;
}

.upload-info i {
    color: #3b82f6;
    font-size: 1.25rem;
}

.upload-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* ================================
   OTP VERIFICATION
================================ */

.otp-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.otp-info {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
}

.otp-info i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.otp-info p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.phone-display {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.25rem !important;
}

#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.otp-section,
.otp-verify-section {
    margin: 2rem 0;
}

.otp-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    outline: none;
    transition: var(--transition-normal);
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.resend-section {
    margin-top: 1.5rem;
}

.resend-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-dark);
}

.verification-success {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: var(--radius-xl);
    border: 2px solid var(--secondary-color);
}

.verification-success i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out;
}

.verification-success h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.verification-success p {
    color: var(--text-secondary);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ================================
   TERMS & CONDITIONS
================================ */

.terms-container {
    max-width: 800px;
    margin: 0 auto;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 999px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 999px;
}

.terms-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.terms-section {
    margin-bottom: 1.5rem;
}

.terms-section h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.terms-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

.acceptance-box {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    position: relative;
    padding-left: 2.5rem;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 24px;
    width: 24px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.checkbox-container:hover .checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.signature-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* ================================
   NAVIGATION BUTTONS
================================ */

.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ================================
   MODAL
================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.modal-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.modal-footer strong {
    color: var(--primary-color);
}

/* ================================
   LOADING OVERLAY
================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: white;
    font-size: 1.125rem;
    font-weight: 500;
}

/* ================================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .splash-logo {
        width: 120px;
        height: 120px;
    }
    
    .splash-logo img {
        width: 80px;
        height: 80px;
    }
    
    .splash-title {
        font-size: 2rem;
    }
    
    .splash-subtitle {
        font-size: 1.125rem;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .company-name {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.875rem;
    }
    
    .progress-container {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .signature-section {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .otp-inputs {
        gap: 0.5rem;
    }
    
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 1rem;
    }
    
    .step-label {
        display: none;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ================================
   UTILITY CLASSES
================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ================================
   ANIMATIONS
================================ */

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.slide-down {
    animation: slideDown 0.5s ease-out;
}

.scale-in {
    animation: scaleIn 0.5s ease-out;
}
