/* Variables CSS */
:root {
    color-scheme: light;
    --primary-blue: #0f172a;
    --secondary-blue: #1e40af;
    --accent-blue: #3b82f6;
    --light-blue: #eff6ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --danger: #dc2626;
    --gold: #f59e0b;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --box-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
/*    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--brand-primary) 100%);*/
    background-color: #09155f !important;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--gray-700);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Header */
.header-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin: 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pro-text {
    color: var(--gold);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.course-title {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Progress Container */
.progress-container {
/*
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  */
    position: relative;
}
/*
.progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

 */

.progress-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.progress {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    height: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--success), #10b981, #34d399);
    transition: var(--transition);
    border-radius: 12px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 12px;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 2rem;
}



.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    transition: var(--transition);
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--success), #10b981);
    border-color: var(--white);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, var(--success), #059669);
    border-color: var(--success);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.step-label {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition);
}

.step.active .step-label {
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Container - Clean Reset */
.form-container {
    flex: 1;
}

.form-container .container {
    margin: 0 auto;
}

.form-container .row {
    margin: 0;
}


.form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: 3rem;
    margin: 0;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}


.form-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    position: relative;
}

.step-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--accent-blue));
    border-radius: 2px;
}

.step-header h3 {
    color: var(--gray-900);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.step-header h3 i {
    color: var(--secondary-blue);
    margin-right: 0.75rem;
}

.step-header p {
    font-size: 1.15rem;
    margin: 0;
    color: var(--gray-600);
    font-weight: 500;
}

/* Form Controls */
.form-label {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    display: block;
}

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:hover,
.form-select:hover {
    border-color: var(--gray-400);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08), 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    background-color: var(--white);
}

.form-control:valid,
.form-select:valid {
    border-color: var(--success);
}

.form-control::placeholder {
    color: var(--gray-500);
    font-weight: 400;
}

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

/* Form Check */
.form-check {
    padding-left: 2rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    margin-left: -2rem;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.form-check-label {
    font-size: 0.95rem;
    line-height: 1.5;
    color: black;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    position: relative;
    width: 100%;
}

.form-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn-outline-primary {
    background: var(--white);
    color: var(--secondary-blue);
    border: 1px solid var(--gray-300);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);

}

.btn-success {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
}

/* Links */
a.text-primary {
    color: var(--secondary-blue) !important;
    text-decoration: none;
    font-weight: 600;
}

a.text-primary:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .step-header h3 {
        font-size: 1.5rem;
    }

    .step-header p {
        font-size: 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .course-title {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
    .step-indicators {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .progress-container {
        padding: 1.5rem 0;
    }

    .form-container {
        padding: 2rem 0;
    }

    .step-indicators {
        flex-direction: column;
        gap: 1rem;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .step-circle {
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Doc
/* Document Upload Styles */
.document-upload-section {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 2px dashed var(--gray-300);
    margin-top: 1.5rem;
    position: relative;
}

.document-upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.02));
    border-radius: var(--border-radius);
    pointer-events: none;
}

.document-upload-section h5 {
    color: var(--gray-800);
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--secondary-blue);
    background: var(--light-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.upload-area.dragover {
    border-color: var(--success);
    background: #f0fdf4;
}

.upload-content i {
    font-size: 3.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.upload-content p {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.upload-content small {
    color: var(--gray-500);
    font-weight: 500;
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5px;
}

.upload-preview img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.btn-replace {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.btn-replace:hover {
    background: #1d4ed8;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Phone Input Styles */
.phone-input-container {
    position: relative;
}

.country-selector {
    cursor: pointer;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.country-selector:hover {
    border-color: var(--secondary-blue);
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.country-code {
    font-weight: 600;
    color: var(--gray-700);
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
}

.country-dropdown.show {
    display: block;
}

.country-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.country-list {
    max-height: 250px;
    overflow-y: auto;
}

.country-item {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.country-item:hover {
    background: var(--light-blue);
}

.country-item:last-child {
    border-bottom: none;
}

.country-name {
    flex: 1;
    font-weight: 500;
}

/* Email Verification Styles */
.email-status {
    background: var(--gray-200);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.email-status.valid {
    background: #dcfce7;
    border-color: var(--success);
    color: var(--success);
}

.email-status.verified {
    background: #dbeafe;
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.email-verification {
    animation: slideDown 0.3s ease-out;
}

.verification-code {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Media Styles */
.social-media-section {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    position: relative;
    margin-top: 1.5rem;
}

.social-media-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.02));
    border-radius: var(--border-radius);
    pointer-events: none;
}

.social-media-section h5 {
    color: var(--gray-800);
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.social-media-section p {
    color: var(--gray-600);
    font-weight: 500;
}

.social-media-section .input-group-text {
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-600);
}

.social-media-section .form-control:focus+.input-group-text,
.social-media-section .input-group-text:has(+ .form-control:focus) {
    border-color: var(--secondary-blue);
}

/* Document Type Specific Styles */
.document-type-info {
    background: var(--light-blue);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--secondary-blue);
}

.document-type-info h6 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.document-type-info ul {
    margin: 0;
    padding-left: 1.2rem;
}

.document-type-info li {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Validation States */
.is-valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.06) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='m2.3 6.73.94-.94 2.94 2.94L8.5 6.4l.94.94L6.5 10.27z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.06) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0 0 1 1m-1-1 1-1m-1 1-1 1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .upload-area {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }

    .upload-content i {
        font-size: 2rem;
    }

    .country-selector {
        min-width: 80px;
    }

    .social-media-section .input-group-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .document-upload-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .upload-area {
        padding: 1rem;
        min-height: 120px;
    }

    .upload-content p {
        font-size: 1rem;
    }

    .country-dropdown {
        position: fixed;
        top: 50%;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%);
        max-height: 60vh;
    }
}

/* To
ast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: var(--box-shadow);
    z-index: 9999;
    transform: translateX(100%);
    transition: var(--transition);
    border-left: 4px solid var(--success);
    font-weight: 500;
    color: var(--gray-700);
    min-width: 300px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left-color: var(--success);
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification i {
    color: var(--success);
}

.toast-notification.error i {
    color: #ef4444;
}

/* Additional Form Enhancements */
.form-floating {
    position: relative;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Social Media Icons Colors */
.social-media-section .fab.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-media-section .fab.fa-twitter {
    color: #1da1f2;
}

.social-media-section .fab.fa-facebook {
    color: #1877f2;
}

.social-media-section .fab.fa-linkedin {
    color: #0077b5;
}

/* Enhanced Input Groups */
.input-group-text {
    font-weight: 500;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
}

.input-group .form-control:focus {
    z-index: 3;
}

.input-group .form-control:focus+.input-group-text {
    border-color: var(--secondary-blue);
    background: var(--light-blue);
}

/* File Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    width: 0%;
    transition: width 0.3s ease;
}

/* Enhanced Validation Messages */
.validation-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-message i {
    font-size: 0.75rem;
}

/* Step Animation */
.step-content {
    transition: all 0.4s ease-in-out;
}

.step-content.active {
    animation: fadeInUp 0.4s ease-in-out;
}

@keyframes fadeInUpStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
}

/* Country Dropdown Scrollbar */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.country-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100%);
    }

    .toast-notification.show {
        transform: translateY(0);
    }

    .input-group-text {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .social-media-section .input-group-text {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Additional Professional Enhancements */

/* Floating Labels Effect */
.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating-custom .form-label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 1.25rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Enhanced Card Hover Effects */
.form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Enhanced Focus States */
*:focus {
    outline: none;
}

/* Improved Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-warning {
    background: #fefbf3;
    color: #b45309;
    border-left-color: #f59e0b;
}

.alert-info {
    background: #f0f9ff;
    color: #0369a1;
    border-left-color: var(--secondary-blue);
}

.alert-secondary {
    background: #f8f9fa;
    color: #495057;
    border-left-color: #6c757d;
}

.validation-alert {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Input Group Styles */
.input-group-text {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    font-size: 0.9rem;
}

.input-group:focus-within .input-group-text {
    border-color: var(--secondary-blue);
    background: var(--white);
    color: var(--secondary-blue);
}

/* Professional Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .form-container {
        padding: 2rem 0;
        align-items: flex-start;
    }

    .step-header h3 {
        font-size: 1.6rem;
    }

    .form-navigation {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .form-navigation .btn {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* Document Upload Mobile Fixes */
    .upload-area {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    .upload-preview {
        padding: 0.75rem;
    }

    .upload-preview img {
        max-height: 100px;
        max-width: calc(100% - 1rem);
    }

    .btn-replace {
        bottom: 5px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .document-upload-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }

    .upload-content i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .upload-content p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Dark Mode Support (Optional) */

@media (prefers-color-scheme: dark) {
    :root {
        /* keep light tokens even in dark-preference environments */
        color-scheme: light !important;
        --white: #ffffff;
        --gray-50: #f8fafc;
        --gray-100: #f1f5f9;
        --gray-200: #e2e8f0;
        --gray-300: #cbd5e1;
    }
}

/* Print Styles */
@media print {

    .header-section,
    .progress-container,
    .form-navigation {
        display: none;
    }

    .form-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Required Document Indicators */
.upload-area.required {
    border-color: var(--danger);
    background: #fef2f2;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: var(--white);
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.loading-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Error Alert Styles */
.error-alert {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
    animation: slideInDown 0.3s ease-out;
    margin-bottom: 2rem;
}

.error-alert .error-message {
    font-weight: 500;
}

/* Modal Enhancements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Terms Modal Specific Styles */
#terminosModal .modal-body h6 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

#terminosModal .modal-body p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1rem;
}

#terminosModal .modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#terminosModal .modal-body li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Paso Items in Modal */
.paso-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-blue);
}

.paso-numero {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.paso-contenido {
    flex: 1;
}

.paso-contenido h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.paso-contenido p {
    margin: 0;
    color: var(--gray-600);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: 70vh;
    }

    .loading-content {
        padding: 1.5rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .loading-content h4 {
        font-size: 1.2rem;
    }
}

area.required .upload-content i {
    color: var(--danger);
}

.upload-area.required .upload-content p {
    color: var(--danger);
}

/* Refined Form Labels */
.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-label .text-danger {
    font-weight: 700;
}

/* Subtle Textarea Styles */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Refined Select Styles */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Refined Checkbox Styles */
.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid var(--gray-400);
    border-radius: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

/* Refined Input Group Text */
.social-media-section .input-group-text {
    background: var(--white);
    border: 1px solid var(--gray-300);
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.85rem;
    padding: 0.875rem 0.75rem;
}

/* Phone Input Refinements */
.country-selector {
    cursor: pointer;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
}

.country-selector:hover {
    border-color: var(--gray-400);
}

.country-code {
    font-weight: 500;
    color: var(--gray-700);
}

/* Email Status Refinements */
.email-status {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.email-status.valid {
    background: #f0fdf4;
    border-color: var(--success);
    color: var(--success);
}

.email-status.verified {
    background: #eff6ff;
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

/* Phon
e Verification Styles */
.phone-status {
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
}

.phone-status.valid {
    background: #f0fdf4;
    border-color: var(--success);
    color: var(--success);
}

.phone-status.verified {
    background: #eff6ff;
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.phone-verification {
    animation: slideDown 0.3s ease-out;
}

.sms-verification-code {
    animation: slideDown 0.3s ease-out;
}

/* SMS Button Styles */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary.btn-sm {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--secondary-blue);
}

.btn-outline-primary.btn-sm:hover {
    background: var(--gray-50);
    border-color: var(--secondary-blue);
}

.btn-success.btn-sm {
    background: linear-gradient(135deg, var(--success), #10b981);
    border: none;
    color: var(--white);
}

/* Enhanced Country List Styles */
.country-list {
    max-height: 300px;
    overflow-y: auto;
}

.country-item {
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-100);
}

.country-item:hover {
    background: var(--light-blue);
}

.country-item:last-child {
    border-bottom: none;
}

.country-name {
    flex: 1;
    font-weight: 500;
    color: var(--gray-700);
}

.country-code {
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Improved Country Search */
.country-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.country-search .form-control {
    border: 1px solid var(--gray-300);
    font-size: 0.9rem;
}

/* Enhanced Country Dropdown */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 350px;
    overflow: hidden;
    display: none;
}

.country-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimizations for Country Selector */
@media (max-width: 768px) {
    .country-dropdown {
        position: fixed;
        top: 50%;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%);
        max-height: 60vh;
        border-radius: var(--border-radius);
    }

    .country-search {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .phone-verification,
    .sms-verification-code {
        margin-top: 1rem;
    }

    .phone-verification .btn-sm {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Flag Icons */
.flag-icon {
    width: 24px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Country Selector Improvements */
.country-selector {
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
    min-width: 110px;
}

.country-selector:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.country-selector:focus-within {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

/* Verification Status Indicators */
.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.verification-status.verified {
    color: var(--success);
}

.verification-status.pending {
    color: var(--warning);
}

.verification-status.error {
    color: var(--danger);
}

/* Addi
/* Additional Mobile Improvements */
@media (max-width: 576px) {
    .form-container {
        padding: 1rem 0;
    }

    .form-card {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
        width: calc(100% - 1rem);
    }

    .step-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .step-header h3 {
        font-size: 1.4rem;
    }

    .step-header p {
        font-size: 1rem;
    }

    /* Upload areas for very small screens */
    .upload-area {
        min-height: 140px;
        padding: 1rem 0.75rem;
    }

    .upload-preview img {
        max-height: 80px;
    }

    .btn-replace {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }

    /* Form controls mobile optimization */
    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    /* Alert mobile optimization */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }

    /* Country selector mobile */
    .country-selector {
        min-width: 80px;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .flag-icon {
        width: 20px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .form-container {
        padding: 2rem 0;
    }

    .upload-area {
        min-height: 120px;
    }

    .upload-preview img {
        max-height: 70px;
    }
}

/* Better button spacing on mobile */
@media (max-width: 480px) {
    .form-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-navigation .btn {
        width: 100%;
        order: initial;
    }
}

/* Improved touch targets */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }

    .upload-area {
        min-height: 120px;
    }

    .btn-replace {
        min-height: 32px;
        min-width: 60px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }
}

/* Fix for image overflow */
.upload-preview {
    overflow: hidden;
}

.upload-preview img {
    object-fit: cover;
    object-position: center;
}

/* Better visual hierarchy on mobile */
@media (max-width: 768px) {
    .document-upload-section h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-media-section h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-media-section p {
        font-size: 0.9rem;
    }
}

/* Containe
r Fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.col-lg-8 {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure form stays within bounds */
.form-card * {
    box-sizing: border-box;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row>* {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Fix for mobile overflow */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .row>* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .form-card {
        overflow-x: hidden;
    }
}

/* Navigation button container fix */
.form-navigation {
    box-sizing: border-box;
    max-width: 100%;
}

.form-navigation .btn {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

html,
body {
    color-scheme: light;
}

/* Force
 proper container behavior */
.form-container .container {
    width: 100% !important;
    margin: 0 auto !important;
}

.form-container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}



/* Ensure form card doesn't overflow */
.form-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Fix navigation positioning */
.form-navigation {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    .form-container .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .form-container .col-lg-8 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .form-card {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
    }

    .form-navigation {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .form-card {
        margin: 5px !important;
        width: calc(100% - 10px) !important;
        padding: 1.5rem 1rem !important;
    }
}

/* Ensure no elements escape container */
* {
    max-width: 100%;
}

.form-card * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure both upload areas look identical */
#uploadFront,
#uploadBack {
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

#uploadFront:hover,
#uploadBack:hover {
    border-color: var(--secondary-blue);
    background: var(--light-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#uploadFront.dragover,
#uploadBack.dragover {
    border-color: var(--success);
    background: #f0fdf4;
}

#uploadFront.required,
#uploadBack.required {
/*    border-color: var(--danger);
    background: #fef2f2;

 */
}

#uploadFront .upload-content,
#uploadBack .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#uploadFront .upload-content i,
#uploadBack .upload-content i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

#uploadFront .upload-content p,
#uploadBack .upload-content p {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#uploadFront .upload-content small,
#uploadBack .upload-content small {
    color: var(--gray-500);
    font-weight: 500;
}

#uploadFront .upload-preview,
#uploadBack .upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

#uploadFront .upload-preview img,
#uploadBack .upload-preview img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

#uploadFront .btn-replace,
#uploadBack .btn-replace {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

#uploadFront .btn-replace:hover,
#uploadBack .btn-replace:hover {
    background: #1d4ed8;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* Mobile specific styles for upload areas */
@media (max-width: 768px) {

    #uploadFront,
    #uploadBack {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    #uploadFront .upload-preview,
    #uploadBack .upload-preview {
        padding: 0.75rem;
    }

    #uploadFront .upload-preview img,
    #uploadBack .upload-preview img {
        max-height: 100px;
        max-width: calc(100% - 1rem);
    }

    #uploadFront .btn-replace,
    #uploadBack .btn-replace {
        bottom: 5px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    #uploadFront .upload-content i,
    #uploadBack .upload-content i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    #uploadFront .upload-content p,
    #uploadBack .upload-content p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {

    #uploadFront,
    #uploadBack {
        min-height: 140px;
        padding: 1rem 0.75rem;
    }

    #uploadFront .upload-preview img,
    #uploadBack .upload-preview img {
        max-height: 80px;
    }

    #uploadFront .btn-replace,
    #uploadBack .btn-replace {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }
}

/* C
ritical Container Fix */
.form-card {
    position: relative;
    z-index: 1;
    contain: layout style;
}

.form-card * {
    position: relative;
    z-index: inherit;
}

/* Ensure all form elements stay within bounds */
.step-content {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.step-content .row {
    width: 100%;
    margin: 0;
}

.step-content .col-md-6,
.step-content .col-md-4 {
    width: 100%;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .step-content .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }

    .step-content .col-md-4 {
        width: 33.333333%;
        flex: 0 0 33.333333%;
    }
}

/* Form controls containment */
.form-control,
.form-select,
.input-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Document upload section containment */
.document-upload-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Social media section containment */
.social-media-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Alert containment */
.alert {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Navigation containment */
.form-navigation {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    position: relative;
}

/* Override any Bootstrap margins that might cause overflow */
.form-card .row {
    --bs-gutter-x: 1.5rem;
    margin-left: calc(-0.5 * var(--bs-gutter-x));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
}

.form-card .row>* {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Mobile specific containment */
@media (max-width: 768px) {
    .form-card {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
    }

    .form-card .row {
        --bs-gutter-x: 1rem;
        margin-left: calc(-0.5 * var(--bs-gutter-x));
        margin-right: calc(-0.5 * var(--bs-gutter-x));
    }

    .step-content .col-md-6,
    .step-content .col-md-4 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .form-card {
        margin: 0.25rem;
        width: calc(100% - 0.5rem);
        max-width: calc(100% - 0.5rem);
    }

    .form-card .row {
        --bs-gutter-x: 0.75rem;
    }
}

/* Prevent any element from escaping */

.form-container * {
    max-width: 100%;
    box-sizing: border-box;
}

/* 
Bootstrap Container Override */
.container,
.container-fluid {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

.row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
    max-width: calc(100% + 30px) !important;
}

.col-lg-8 {
    width: 100% !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Form specific overrides */
.form-container .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}


/* Step content specific */
.step-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.step-content .row {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: -0.75rem !important;
    margin-right: -0.75rem !important;
}

.step-content .col-md-6,
.step-content .col-md-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
}

/* Mobile container fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .form-card {
        margin: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        padding: 2rem 1.5rem !important;
    }

    .step-content .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }

    .step-content .col-md-6,
    .step-content .col-md-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .form-card {
        margin: 5px !important;
        width: calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
        padding: 1.5rem 1rem !important;
    }
}

/* Absolute positioning fix */
body {
    overflow-x: hidden !important;
}

html {
    overflow-x: hidden !important;
}

/* Force all elements to respect container */
* {
    box-sizing: border-box !important;
}

.form-card * {
    max-width: 100% !important;
}

/* 
Modal Términos y Condiciones */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
}

.terminos-content h6 {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.terminos-content ul {
    padding-left: 1.5rem;
}

.terminos-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.terminos-content a {
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

.terminos-content a:hover {
    text-decoration: underline;
}

/* Pasos numerados */
.paso-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--secondary-blue);
}

.paso-numero {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

.paso-contenido {
    flex: 1;
}

.paso-contenido h6 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.paso-contenido p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
}

/* Checkbox de términos en el formulario */
.form-check-label a {
    text-decoration: none;
    transition: var(--transition);
}

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

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .paso-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .paso-numero {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: var(--white);
    max-width: 400px;
    padding: 2rem;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.loading-content p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Error Alert */
.error-alert {
    background: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
    animation: slideInDown 0.3s ease-out;
    margin-bottom: 2rem;
}

.error-alert .fas {
    color: #dc2626;
}

.error-message {
    font-weight: 500;
}

@supports (-webkit-touch-callout: none) {

    input,
    select,
    textarea,
    .form-control,
    .form-select,
    .input-group-text {
        font-size: 16px !important;
    }
}

.form-control,
.form-select,
.input-group-text {
    font-size: clamp(16px, 0.95rem, 18px) !important;
}

.input-group-text,
.country-selector,
.email-status,
.phone-status {
    font-size: 16px !important;
}


/* ============================================
   Select2 Custom Styling for Country Selects
   ============================================ */

/* Select2 container styling - Match Bootstrap form-select exactly */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 52px !important;
    height: 52px !important;
    border: 2px solid var(--gray-200);
    border-radius: 12px !important;
    transition: var(--transition-fast);
    font-size: 1rem;
    padding: 0.625rem 1rem !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap-5 .select2-selection:hover {
    border-color: var(--accent-blue);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

/* Select2 dropdown styling - CRITICAL: High z-index and proper positioning */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid var(--accent-blue);
    border-radius: 12px !important;
    box-shadow: var(--box-shadow);
    margin-top: 4px;
    z-index: 9999 !important;
    background-color: var(--white);
}

/* Ensure dropdown is visible */
.select2-container--open .select2-dropdown {
    z-index: 9999 !important;
}

/* Results container */
.select2-container--bootstrap-5 .select2-results {
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--white);
}

/* Search input in dropdown */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

/* Results list */
.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--light-blue);
    color: var(--primary-blue);
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: var(--accent-blue);
    color: var(--white);
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

/* Clear button */
.select2-container--bootstrap-5 .select2-selection__clear {
    color: var(--gray-500);
    font-size: 1.25rem;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: var(--danger);
}

/* Arrow icon */
.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 100%;
    right: 1rem;
}

/* Placeholder text */
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: var(--gray-400);
}

/* Selected item text */
.select2-container--bootstrap-5 .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
}

/* Single select specific styling */
.select2-container--bootstrap-5 .select2-selection--single {
    height: 52px !important;
    border-radius: 12px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 52px !important;
    padding-left: 0 !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    line-height: 52px !important;
}

/* Loading state */
.select2-container--bootstrap-5 .select2-results__option--loading {
    color: var(--gray-500);
}

/* No results message */
.select2-container--bootstrap-5 .select2-results__message {
    color: var(--gray-500);
    padding: 1rem;
    text-align: center;
}

/* Ensure Select2 works well in the form */
.form-select.select2-hidden-accessible+.select2-container {
    width: 100% !important;
}

/* Match form validation states */
.was-validated .select2-container--bootstrap-5 .select2-selection:invalid,
.select2-container--bootstrap-5 .select2-selection.is-invalid {
    border-color: var(--danger);
}

.was-validated .select2-container--bootstrap-5 .select2-selection:valid,
.select2-container--bootstrap-5 .select2-selection.is-valid {
    border-color: var(--success);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .select2-container--bootstrap-5 .select2-selection {
        min-height: 44px;
        font-size: 0.95rem;
    }

    .select2-container--bootstrap-5 .select2-results__option {
        padding: 0.65rem 0.85rem;
        font-size: 0.95rem;
    }
}