@font-face {
    font-family: 'Magistral';
    src: url('/fonts/amet/Magistral_Extra_Bold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/amet/SF-Pro-Display-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display Light';
    src: url('/fonts/amet/SF-Pro.ttf') format('opentype');
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/amet/SF-Pro.ttf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/amet/SF-Pro.ttf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/fonts/amet/SF-Pro.ttf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #090B0D;
    --text-white: #FFFFFF;
    --font-sf-pro: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-magistral: 'Magistral', var(--font-sf-pro);
}

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

body {
    font-family: var(--font-sf-pro);
    font-weight: 300;
    color: var(--text-white);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    width: 2654px;
    height: 1481px;
    left: calc(50% - 2654px/2 + 349px);
    top: calc(50% - 1481px/2 - 88.5px);
    background: url('/images/amet/background.png') no-repeat center center;
    background-size: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #090A0C 0%, rgba(9, 10, 12, 0.74) 78.43%, rgba(9, 10, 12, 0) 100%);
}

.container {
    display: flex;
    max-width: 1260px;
    width: 100%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 40px;
    gap: 73px;
}

.content-left {
    width: 40%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.subtitle {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    height: 61px;
    background: rgba(24, 28, 32, 0.34);
    border: 1px solid rgba(228, 228, 228, 0.16);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    font-size: 36px;
    font-weight: 400;
    line-height: 43px;
    width: fit-content;
    white-space: nowrap;
}

.title {
    width: auto;
    font-size: 70px;
    line-height: 100%;
    font-weight: 400;
    white-space: nowrap;
}

.title span {
    font-weight: 700;
}

.description {
    width: 488px;
    font-size: 28px;
    line-height: 33px;
    font-weight: 400;
}

.description strong {
    font-weight: 600;
}

.success-title {
    width: 702px;
    max-width: 100%;
    font-size: 60px;
    line-height: 72px;
    font-weight: 400;
    white-space: normal;
}

.success-title span {
    font-weight: 700;
}

.success-desc {
    width: 702px;
    max-width: 100%;
    font-size: 28px;
    line-height: 33px;
    white-space: normal;
}

.hidden {
    display: none !important;
}

.features {
    display: flex;
    gap: 16px;
}

.feature-img {
    height: 62px;
    width: auto;
}

.content-right {
    width: 480px;
    flex-shrink: 0;
}

.form-card {
    background: rgba(24, 28, 32, 0.61);
    border: 1px solid rgba(228, 228, 228, 0.16);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 12px;
    padding: 36px 24px;
    width: 100%;
    transition: opacity 0.3s;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-family: 'SF Pro Display Light', sans-serif;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: 0.5px;
}

input,
select {
    height: 36px;
    background: transparent;
    border: 1px solid rgba(228, 228, 228, 0.34);
    border-radius: 6px;
    padding: 8px 12px;
    color: #FFFFFF;
    font-family: var(--font-sf-pro);
    font-size: 14px;
    filter: drop-shadow(0px 1px 2px rgba(14, 24, 41, 0.04));
    outline: none;
    width: 100%;
    appearance: none;
}

select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='14' height='7' viewBox='0 0 14 7' fill='none' stroke='%23A3A3A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M1 1L7 6L13 1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 7px;
    background-color: #12161A;
}

select option {
    background-color: #12161A;
    color: #FFFFFF;
    padding: 8px 12px;
}

select option:hover,
select option:checked {
    background-color: #1D2228;
}

input::placeholder {
    color: rgba(228, 228, 228, 0.34);
}

input:focus,
select:focus {
    border-color: #BBB0FF;
}

.form-row {
    display: flex;
    gap: 32px;
}

.form-row .form-group {
    flex: 1;
}

.radio-group-boxes {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.radio-box-container {
    flex: 1;
    cursor: pointer;
}

.radio-box-container input {
    display: none;
}

.radio-box-ui {
    height: 36px;
    border: 1px solid rgba(228, 228, 228, 0.34);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: rgba(228, 228, 228, 0.34);
    transition: 0.2s;
}

.radio-box-container input:checked+.radio-box-ui {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    width: 100%;
    height: 72px;
    background: linear-gradient(90deg, #1D1937 0%, #3B3467 100%);
    box-shadow: 0px 0px 20.7px 6px #BBB0FF;
    border-radius: 6px;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sf-pro);
    transition: transform 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-footer {
    font-family: 'SF Pro Display Light', sans-serif;
    text-align: center;
    font-size: 16px;
    padding-top: 12px;
}

.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.progress-indicator img {
    height: 15px;
}

.step-text {
    font-size: 16px;
}

/* Success Screen - Step 3 */
body.success-active .bg-overlay {
    background: linear-gradient(180deg, #090A0C 0%, rgba(9, 10, 12, 0) 66.44%);
}

body.success-active .bg-image {
    width: 1955px;
    height: 1091px;
    left: calc(50% - 1955px/2);
    top: calc(50% - 1091px/2);
}

.container.success-active {
    justify-content: center;
    align-items: center;
    padding: 0;
}

.container.success-active .content-left {
    display: none !important;
}

.container.success-active .content-right {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: unset;
}

.success-step {
    text-align: center;
    width: 480px;
    max-width: 480px;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.success-content h2 {
    font-family: var(--font-magistral);
    font-weight: 800;
    font-size: 64px;
    line-height: 84px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0px 0px 4.3px #BBB0FF;
    margin-bottom: 0;
}

.success-content p {
    font-size: 24px;
    line-height: 29px;
    text-align: center;
    margin-bottom: 0;
}

.highlight-text {
    font-weight: 700;
    text-shadow: 0px 0px 4.3px #BBB0FF;
}

/* Tablet large */
@media (min-width: 1024px) and (max-width: 1280px) {
    .container {
        gap: 30px;
        padding: 0 40px;
    }

    .content-left {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .subtitle {
        font-size: 28px;
        height: auto;
        padding: 10px 20px;
        white-space: normal;
        max-width: 100%;
    }

    .title {
        font-size: 54px;
        line-height: 1.1;
        white-space: normal;
        word-wrap: break-word;
    }

    .description {
        font-size: 22px;
        white-space: normal;
    }

    .content-right {
        width: 420px;
        flex-shrink: 0;
    }

    .features {
        width: 100%;
        justify-content: space-between;
    }

    .feature-img {
        width: calc(50% - 8px);
        height: auto;
    }

    .success-step {
        width: 466px;
        max-width: 466px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    body {
        align-items: flex-start;
    }

    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 48px 32px;
        gap: 60px;
    }

    .content-left {
        width: 100%;
        max-width: 702px;
        gap: 36px;
    }

    .success-title br,
    .success-desc br {
        display: none;
    }

    .success-title {
        font-size: 60px;
        line-height: 72px;
    }

    .success-desc {
        font-size: 28px;
    }

    .title {
        width: 100%;
        font-size: 70px;
        line-height: 84px;
        white-space: normal;
    }

    .title br {
        display: none;
    }

    .btn-primary {
        text-transform: none;
    }

    .description {
        width: 100%;
        white-space: normal;
    }

    .features {
        width: 100%;
        justify-content: space-between;
    }

    .feature-img {
        width: calc(50% - 8px);
        height: auto;
    }

    .content-right {
        width: 100%;
        max-width: 700px;
        display: flex;
        justify-content: center;
    }

    .form-card {
        max-width: 700px;
    }

    .bg-overlay {
        background: linear-gradient(180deg, #090A0C 1.67%, rgba(9, 10, 12, 0.87) 37.42%, rgba(9, 10, 12, 0) 100%);
    }

    .bg-image {
        width: 2172px;
        height: 1212px;
        left: calc(50% - 2172px/2 - 116px);
        top: calc(50% - 1212px/2 - 17px);
    }

    /* Success screen tablet */
    .container.success-active {
        justify-content: flex-start;
        padding-top: 225px;
    }

    .success-step {
        width: 466px;
        max-width: 466px;
    }

    body.success-active .bg-image {
        width: 1955px;
        height: 1091px;
        left: calc(50% - 1955px/2);
        top: calc(50% - 1091px/2 + 21px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    body {
        align-items: flex-start;
    }

    .container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 32px 8px;
        gap: 16px;
    }

    .content-left {
        width: 100%;
        max-width: 95%;
        gap: 18px;
    }

    .subtitle {
        display: none;
    }

    .title {
        width: 100%;
        font-size: 36px;
        line-height: 43px;
        white-space: normal;
    }

    .title br {
        display: none;
    }

    .description {
        width: 100%;
        font-size: 18px;
        line-height: 21px;
    }

    .features {
        flex-direction: column;
        gap: 16px;
    }

    .feature-img {
        width: 100%;
        height: auto;
    }

    .success-title {
        font-size: 36px;
        line-height: 43px;
        white-space: normal;
    }

    .success-desc {
        font-size: 18px;
        line-height: 21px;
        white-space: normal;
    }

    .success-title br,
    .success-desc br {
        display: none;
    }

    .content-right {
        width: 100%;
        max-width: 95%;
        padding: 0;
    }

    .form-card {
        padding: 36px 24px;
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .btn-primary {
        font-size: 16px;
    }

    .bg-overlay {
        background: linear-gradient(180deg, #090A0C 1.67%, rgba(9, 10, 12, 0.87) 37.42%, rgba(9, 10, 12, 0) 100%);
    }

    .bg-image {
        width: 1894px;
        height: 1057px;
        left: calc(50% - 1894px/2 - 31.5px);
        top: calc(50% - 1057px/2 - 5.5px);
    }

    /* Success screen mobile */
    .container.success-active {
        justify-content: flex-start;
        padding-top: 152px;
    }

    .success-step {
        width: 347px;
        max-width: 347px;
    }

    .success-content h2 {
        font-size: 48px;
        line-height: 63px;
    }

    .success-content p {
        font-size: 18px;
        line-height: 21px;
    }
}