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

body > * {
    position: relative;
    z-index: 1;
}

body {
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #fff;
    font-family: Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(
        45deg,
        #01437b 0%,
        #23a6d5 38%,
        #00c6db 56%,
        #23d5ab 90%
    );
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
}

body::before {
    content: "";
    position: fixed;
    inset: -50%;
    background-image: url("./fd.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 130% 130%; 
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    animation: swayBg 12s ease-in-out infinite;
}
@keyframes swayBg {
    0% {
        background-position: 50% 50%;
    }
    25% {
        background-position: 52% 50%;
    }
    50% {
        background-position: 55% 50%;
    }
    75% {
        background-position: 52% 50%;
    }
    100% {
        background-position: 50% 50%;
    }
}
@-webkit-keyframes Gradient {
0% {background-position: 0% 50%}
50% {background-position: 100% 50%}
100% {background-position: 0% 50%}
}
@-moz-keyframes Gradient {
0% {background-position: 0% 100%}
50% {background-position: 100% 50%}
100% {background-position: 0% 100%}
}
@keyframes Gradient {
0% {background-position: 0% 100%}
50% {background-position: 100% 50%}
100% {background-position: 0% 100%}
}
h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-top: -30px;
    margin-bottom: 20px;
    background: linear-gradient(
        45deg,
        #01437b 0%,
        #23a6d5 38%,
        #00c6db 56%,
        #23d5ab 90%
    );
    background-size: 400% 400%;
    animation: Gradient 15s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
	text-shadow: none;
}
.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
	    margin-top: 30px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
    max-height: 60px;
    width: auto;
}

.lang-toggle {
    background: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: scale(1.1);
}

#flagIcon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, #01437b 19%,#00c6db 83%,#23d5ab 100%);
	box-shadow: inset 3px 3px 4px 0px #0000007d;
    color: white;
	background-size: 200% 200%;
    animation: Gradient 15s ease infinite;
	    position: relative;
    overflow-x: hidden;
}

.progress-step.completed {
    background: #3fb944;
    color: white;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

h3 {
    color: #667eea;
    margin: 20px 0 15px 0;
    font-size: 18px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="nationnalite"],
input[type="pays"],
input[type="email"],
input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="nationnalite"]:focus,
input[type="pays"]:focus,
input[type="email"]:focus,
input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.category-price {
    color: #0087AC;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-option:hover {
    border-color: #667eea;
}

.category-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: bold;
}

.sub-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.sub-category {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sub-category:hover {
    border-color: #667eea;
}

.sub-category input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: bold;
}

.info-box {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

#signatureCanvas {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: crosshair;
    width: 100%;
    height: 150px;
    touch-action: none;
}

.btn-clear-signature {
    margin-top: 10px;
    padding: 8px 16px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-clear-signature:hover {
    background: #d32f2f;
}

.sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.sponsor-logo {
    max-height: 40px;
    width: auto;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next,
.btn-submit {
    background: linear-gradient(to right, #1e5799 0%,#207cca 44%,#2989d8 62%,#23d5ab 100%);
    color: white;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    background: linear-gradient(to right, #1e5799 30%,#2989d8 97%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-prev {
    background: #e0e0e0;
    color: #555;
}

.btn-prev:hover {
    background: #d0d0d0;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h2 {
    color: #4caf50;
    margin-bottom: 15px;
}

.success-message p {
    color: #555;
    font-size: 16px;
}
svg {
    width: 100%;
    height: auto;
    max-width: 320px;
	will-change: transform;
    transform-origin: center;
}



@media (max-width: 768px) {
    .form-wrapper {
        padding: 30px 20px;
    }

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

    .sub-categories {
        grid-template-columns: 1fr;
    }

    .category-options {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}/* Payment Options Styling */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: #0C6499;
    background: #f8f9fa;
    transform: translateX(5px);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #0C6499;
}

.payment-option input[type="radio"]:checked + .payment-label {
    font-weight: 600;
    color: #0C6499;
}

.payment-option:has(input:checked) {
    border-color: #0C6499;
    background: linear-gradient(135deg, rgba(12, 100, 153, 0.05) 0%, rgba(12, 100, 153, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(12, 100, 153, 0.15);
}

.payment-label {
    flex: 1;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
}
