@font-face {
    font-family: 'Hack';
    src: url('https://cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/fonts/hack-regular.woff2?sha=3114f1256') format('woff2'), url('https://cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/fonts/hack-regular.woff?sha=3114f1256') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hack';
    src: url('https://cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/fonts/hack-bold.woff2?sha=3114f1256') format('woff2'), url('https://cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/fonts/hack-bold.woff?sha=3114f1256') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url("https://fonts.cdnfonts.com/s/19227/Fontfabric - Nexa-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nexa';
    src: url("https://fonts.cdnfonts.com/s/19227/Fontfabric - Nexa-Bold.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --primary-colour: #fff;
    --secondary-colour: #2c4c9c;
    --secondary-accents: #436acc;
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

body {
    font-family: 'Nexa', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    margin: 0;
    min-height: 100vh;
    padding: 20px;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, .7), rgba(0, 0, 0, .5), transparent), url('https://upload.wikimedia.org/wikipedia/commons/d/d7/Expedition_42_Soyuz_TMA-14M_Landing_%28201503120102HQ%29.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
    opacity: 0.4;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    border: 1px solid var(--secondary-colour);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-in;
}



.container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-colour), var(--secondary-accents), transparent);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, transparent, var(--secondary-colour), var(--secondary-accents), transparent) 1;
    position: relative;
}

.header h1 {
    font-size: clamp(24px, 6vw, 48px);
    color: white;
    margin-bottom: 10px;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: clamp(14px, 3vw, 20px);
    color: var(--secondary-accents);
    font-weight: 300;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

h2 {
    color: white;
    margin-bottom: 30px;
    font-size: clamp(20px, 4vw, 28px);
    border-left: 4px solid var(--secondary-colour);
    padding-left: 15px;
    font-weight: 500;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 400;
    font-size: 14px;
}

.required {
    color: #ff4d4d;
}

.error-message {
    display: none;
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #797979;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Hack', 'Courier New', Courier, monospace;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
textarea:hover {
    border-color: #313131;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-colour);
    background: rgba(44, 76, 156, 0.05);
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232c4c9c" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select option {
    background: black;
    color: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(44, 76, 156, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(44, 76, 156, 0.15);
    border-color: var(--secondary-accents);
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary-colour);
}

.checkbox-label.agreement {
    background: rgba(44, 76, 156, 0.1);
    border: 1px solid var(--secondary-colour);
    padding: 15px;
    margin-top: 10px;
}

.terms-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-colour);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.terms-box p {
    color: rgba(255, 255, 255, 0.9);
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 10px 50px;
    border: none;
    border-radius: 5px;
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-next,
.btn-submit {
    background: transparent;
    color: var(--secondary-colour);
    border: 1px solid var(--secondary-colour);
    transition: all 0.3s ease-in-out;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: var(--secondary-accents);
    color: white;
    transition: all 0.3s ease-in-out;
}

.btn-back {
    background: transparent;
    color: white;
    border: 1px solid #797979;
    transition: all 0.3s ease-in-out;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transition: all 0.3s ease-in-out;
}

.success-box {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

.success-box h2 {
    color: #28a745;
    font-size: 2.2em;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.success-box p {
    font-size: 1.2em;
    color: white;
    margin-bottom: 30px;
}

.success-box .btn {
    background: transparent;
    color: var(--secondary-colour);
    border: 1px solid var(--secondary-colour);
}

.success-box .btn:hover {
    background-color: var(--secondary-accents);
    color: white;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

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

    .btn {
        width: 100%;
    }
}
