/* ========================================
   FORMALYON - Modern Form Styles
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-1);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(30px, 10px) rotate(3deg); }
}

/* Top Banner (bandeau blanc avec logo) */
.top-banner {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

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

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Alert Container */
.alert-container {
    margin-bottom: 1.5rem;
}

.alert-container.hidden {
    display: none;
}

.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.alert svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

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

/* Progress Container */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 20%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: var(--transition);
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

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

.step span:last-child {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Form Card */
.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

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

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.section-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

/* Labels */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

label.required::after {
    content: ' *';
    color: var(--danger);
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-left: 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    appearance: none;
}

select {
    padding-left: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    cursor: pointer;
}

textarea {
    padding-left: 1rem;
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input.error,
select.error,
textarea.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 2.5rem;
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition);
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.form-group:focus-within .input-icon {
    color: var(--primary);
}

/* Input with Prefix */
.input-with-prefix {
    position: relative;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-500);
}

.input-with-prefix input {
    padding-left: 2.5rem;
}

/* Helper Text */
.helper-text {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-card {
    flex: 1;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    position: relative;
    transition: var(--transition);
}

.radio-card input:checked + .radio-content {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.radio-card input:checked + .radio-content .radio-circle {
    border-color: var(--primary);
}

.radio-card input:checked + .radio-content .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: var(--gray-50);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-upload.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.file-upload.has-file {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.file-upload-content svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    transition: var(--transition);
}

.file-upload:hover .file-upload-content svg,
.file-upload.has-file .file-upload-content svg {
    color: var(--primary);
}

.file-upload.has-file .file-upload-content svg {
    color: var(--success);
}

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

.file-info {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.info-content ul {
    list-style: none;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.info-content li {
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.info-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.info-content li strong {
    display: inline;
    color: var(--gray-700);
}

/* Instruction List (liste ordonnée dans info-box) */
.instruction-list {
    margin: 0.75rem 0 0 0;
    padding: 0;
    list-style: none;
    counter-reset: instruction-counter;
}

.instruction-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    counter-increment: instruction-counter;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.instruction-list li::before {
    content: counter(instruction-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary);
    width: 1.5rem;
}

.instruction-list li strong {
    color: var(--gray-700);
    display: inline;
}

/* Formation Groups */
.formation-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.formation-group {
    position: relative;
    padding: 0.75rem 1.25rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.formation-group:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.formation-group.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.formation-group.selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.formation-group.partial {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
    border-color: var(--primary);
}

.formation-group-name {
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formation-group-count {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.formation-group-check {
    display: none;
    width: 18px;
    height: 18px;
}

.formation-group.selected .formation-group-check,
.formation-group.partial .formation-group-check {
    display: block;
}

.formation-group.partial .formation-group-check {
    opacity: 0.6;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    padding: 1rem;
}

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

/* Formations List */
.formations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.formations-header label {
    margin-bottom: 0;
}

.formations-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-select-all {
    background: var(--primary);
    color: #fff;
}

.btn-select-all:hover {
    background: var(--primary-dark);
}

.btn-deselect-all {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-deselect-all:hover {
    background: var(--gray-300);
}

.formations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.formations-list-multi {
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
}

.category-section {
    border-bottom: 1px solid var(--gray-200);
}

.category-section:last-child {
    border-bottom: none;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1;
}

.category-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.category-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.category-badge.empty {
    background: var(--gray-300);
}

.category-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.category-section.open .category-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.category-content {
    display: none;
    padding: 0.75rem 1rem 1rem;
    background: var(--gray-50);
}

.category-section.open .category-content {
    display: block;
}

.category-formations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--gray-300);
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-200);
    color: var(--gray-600);
}

.btn-xs:hover {
    background: var(--gray-300);
}

.formation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.formation-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.formation-item.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.formation-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.formation-item.selected .formation-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.formation-checkbox svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    opacity: 0;
    transition: var(--transition);
}

.formation-item.selected .formation-checkbox svg {
    opacity: 1;
}

.formation-name {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.3;
}

/* Selected Formations Summary */
.selected-formations {
    min-height: 100px;
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-content: flex-start;
}

.selected-formations.has-items {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.empty-selection {
    color: var(--gray-400);
    font-style: italic;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
    margin: 0;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gradient-1);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    animation: tagIn 0.2s ease;
}

@keyframes tagIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selected-tag-category {
    opacity: 0.7;
    font-weight: 400;
    font-size: 0.7rem;
}

.selected-tag-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.selected-tag-remove:hover {
    color: #fff;
}

.selected-tag-remove svg {
    width: 14px;
    height: 14px;
}

/* Select2 Custom Styles */
.select2-container--default .select2-selection--multiple {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    min-height: 48px;
    padding: 0.25rem 0.5rem;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.875rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.5rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff;
}

.select2-dropdown {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary);
}

.select2-container--default .select2-results__group {
    font-weight: 600;
    color: var(--gray-600);
    padding: 0.75rem 1rem 0.5rem;
}

.select2-search--dropdown .select2-search__field {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: var(--primary);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        padding: 0.75rem 0;
    }

    .banner-logo {
        height: 50px;
    }

    .container {
        padding: 1rem;
    }

    .header-text h1 {
        font-size: 1.75rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .steps {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .step {
        flex: 0 0 auto;
    }

    .step span:last-child {
        display: none;
    }

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

    .btn {
        flex: 1;
        justify-content: center;
    }

    .radio-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .file-upload {
        padding: 1.5rem 1rem;
    }

    .file-upload-content svg {
        width: 36px;
        height: 36px;
    }
}

/* ========================================
   SUCCESS SCREEN
   ======================================== */
.success-screen {
    animation: fadeIn 0.5s ease;
}

.success-screen.hidden {
    display: none;
}

.success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(16, 185, 129, 0.5);
    }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.success-submessage {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.success-info {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-size: 0.95rem;
}

.success-info svg {
    flex-shrink: 0;
    fill: var(--primary);
}

@media (max-width: 768px) {
    .success-card {
        padding: 2rem 1.5rem;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon svg {
        width: 40px;
        height: 40px;
    }

    .success-title {
        font-size: 1.5rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-info {
        flex-direction: column;
        text-align: center;
    }
}
