* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    background: #171515;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(#333333 1px, transparent 1px),
        linear-gradient(90deg, #333333 1px, transparent 1px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: glow 15s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.container {
    width: 90%;
    max-width: 750px;
    background: #d9d6d6;
    border: 4px solid #000000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-radius:10px;
    z-index: 1;
    scrollbar-width: none;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #e0e0e0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: #0cee10;
    width: 33.33%;
    transition: width 0.5s ease;
}

/* Form Steps */
.form-step {
    width: 100%;
    padding: 2.5rem 2.5rem;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    border-radius:10px;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-content: start;
    overflow-y: auto;
    padding-top: 2.5rem;
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.form-step:not(.active) {
    pointer-events: none;
    z-index: 0;
}

.form-step h2 {
    text-align: center;
    color: #000000;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    grid-row: 1;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.form-step h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000000;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #000000;
    background: #ffffff;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #f5f5f5;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #999999;
}

/* Checkbox Styling */
.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #000000;
    appearance: none;
    background: #ffffff;
    position: relative;
    margin-right: 0.5rem;
}

.form-group input[type="checkbox"]:checked {
    background: #000000;
}

.form-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
}

/* Error Messages */
.error-message {
    color: #000000;
    background: #ffffff;
    border: 2px solid #000000;
    padding: 0.5rem;
    font-size: 0.85rem;
    display: none;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-strength {
    font-size: 0.8rem;
    font-weight: 700;
    color: #374151;
    margin-top: -0.1rem;
}

.password-strength.ok {
    color: #065f46;
}

.password-strength.warn {
    color: #92400e;
}

.password-strength.bad {
    color: #991b1b;
}

/* Buttons */
button {
    padding: 1.25rem 3rem;
    background: #000000;
    border: 3px solid #000000;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: auto;
    position: relative;
    bottom: 0;
}

button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(-1px);
}

button:disabled {
    background: #666666;
    border-color: #666666;
    cursor: not-allowed;
    transform: none;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.step-actions button {
    margin-left: 0;
}

.step-actions .back-btn {
    margin-right: auto;
    background: #ffffff;
    color: #000000;
}

.step-actions .back-btn:hover {
    background: #000000;
    color: #ffffff;
}

.step-actions-end {
    justify-content: flex-end;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 3px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Agreements Section */
.agreements {
    font-size: 0.85rem;
    color: #333333;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #e0e0e0;
}

.agreements a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.agreements a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.agreements a:hover::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    border: 4px solid #000000;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalSlideUp 0.5s ease-out;
}

@keyframes modalSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-animation {
    margin-bottom: 2rem;
}

.modal-animation video {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 3px solid #000000;
}

.modal-text h3 {
    color: #000000;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-text p {
    color: #333333;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.close-btn {
    width: 100%;
    padding: 1.25rem;
    background: #000000;
    color: #ffffff;
    border: 3px solid #000000;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Back to Home Link */
.back-to-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.back-to-home a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.back-to-home a:hover {
    background: #ffffff;
    color: #000000;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #f5f5f5;
    border-bottom: 2px solid #000000;
}

.step-indicator span {
    width: 40px;
    height: 40px;
    border: 3px solid #cccccc;
    background: #ffffff;
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step-indicator span.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.step-indicator span.completed {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.step-indicator span.completed::after {
    content: '✓';
}

/* Responsive adjustments */
@media (min-width: 600px) {
    .form-step {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 3rem 3rem;
    }

    .form-step h2 {
        grid-column: 1 / -1;
    }

    button {
        grid-column: 1 / -1;
        width: 40%;
    }

    .agreements {
        grid-column: 1 / -1;
    }
}

/* Mobile Responsive */
@media (max-width: 599px) {
    body {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .container {
        max-width: 100%;
        height: auto;
        min-height: auto;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        border-width: 3px;
    }
    
    .container {
        min-height: min(620px, 88vh);
    }

    .form-step {
        padding: 2rem 1.5rem;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        min-height: 100%;
        height: auto;
        gap: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .form-step h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .form-step h2::after {
        width: 60px;
        height: 3px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.9rem;
        font-size: 16px;
    }
    
    button {
        width: 100%;
        padding: 1.1rem;
        margin-top: 1rem;
        position: relative;
        bottom: 0;
        font-size: 1rem;
    }
    
    .agreements {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .error-message {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .back-to-home {
        top: 1rem;
        left: 1rem;
    }

    .back-to-home a {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .step-indicator {
        padding: 1rem;
        gap: 0.5rem;
    }

    .step-indicator span {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Tablet Responsive */
@media (min-width: 600px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
        height: auto;
        min-height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .form-step {
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }
    
    .form-step h2 {
        font-size: 2rem;
    }
    
    button {
        width: 50%;
        position: relative;
        bottom: 0;
        margin-top: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem;
        font-size: 14px;
    }
    
    button {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-text h3 {
        font-size: 1.5rem;
    }

    .modal-text p {
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        max-height: 100vh;
        height: 100vh;
    }
    
    .form-step {
        padding: 1.5rem;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        min-height: 100%;
        gap: 0.75rem;
        overflow-y: auto;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.7rem;
        font-size: 14px;
    }

    button {
        padding: 0.9rem;
    }
}