* {
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
    height: 100%;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

body {
    background: radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.95) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(0, 0, 0, 0.95) 0%, transparent 45%),
        linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 100%), #050505;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: Inter, sans-serif;
    font-family: Inter, sans-serif;
    color: #fff;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
.form-input,
.form-textarea {
    -webkit-user-select: text;
    user-select: text;
}

.form-container {
    width: 100%;
    max-width: 800px;
    background: var(--glass-bg, linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)));
    border: var(--glass-border, 1px solid rgba(255, 255, 255, .10));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow, 0 12px 40px rgba(0, 0, 0, .55));
    border-radius: 24px;
    box-shadow: var(--shadow, 0 12px 40px rgba(0, 0, 0, .55));
    border-radius: 24px;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.form-banner {
    width: 100%;
    height: 220px;
    position: relative;
    background: #111;
    border-top-left-radius: 23px;
    border-top-right-radius: 23px;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    display: block;
}

.form-body {
    padding: 35px 40px;
    position: relative;
}



.section__title {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-size: 30px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin: 0;
}

.form-label i,
.form-label svg {
    color: #fff;
    margin-right: 8px;
    opacity: 0.9;
    font-size: 14px;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.2);
}

.form-textarea {
    resize: none;
    overflow-y: hidden;
    min-height: 80px;
    display: block;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.custom-select-trigger.filled {
    color: #fff;
}

.custom-select-trigger:after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.2s;
    display: block;
    color: rgba(255, 255, 255, 0.5);
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.custom-option.selected {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 20px;
    border-radius: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    user-select: none;
    transition: color 0.2s;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkmark::after {
    content: \"\\f00c\";
    font-family: \"Font Awesome 6 Free\";
    font-weight: 900;
    font-size: 10px;
    color: #121212;
    display: none;
}

.custom-checkbox:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-checkbox input:checked+.checkmark {
    background: #fff;
    border-color: #fff;
}

.custom-checkbox input:checked+.checkmark::after {
    display: block;
}

.contact-type-selector {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    transition: color 0.2s;
}

.radio-label:hover {
    color: #fff;
}

.radio-label input {
    display: none;
}

.radio-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 6px;
    position: relative;
    transition: all 0.2s;
}

.radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.radio-label input:checked+.radio-circle {
    border-color: #fff;
}

.radio-label input:checked+.radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input:checked {
    color: #fff;
}

.submit-btn {
    margin-top: 20px;
    width: 100%;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.submit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn i {
    margin-right: 10px;
}

#successScreen,
.closed-screen {
    display: none;
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 0.5s;
}

.closed-screen {
    display: block;
}

.success-icon {
    font-size: 64px;
    color: #4ade80;
    margin-bottom: 24px;
    display: block;
}

.closed-icon {
    font-size: 64px;
    color: #ff4d4d;
    margin-bottom: 24px;
    display: block;
}

.success-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.closed-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.closed-buttons .submit-btn {
    flex: 1;
    margin-top: 0;
    box-shadow: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.turnstile-wrapper {
    margin: 5px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 65px;
}

.ts-fixed {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    z-index: 9999;
    margin: 0;
    width: auto;
    background: rgba(15, 15, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-out;
    display: block;
}

.toast-container {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10001;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 260px;
    max-width: 360px;
    padding: 16px 20px;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    position: relative;
}

.toast::before {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.toast.is-show {
    opacity: 1;
    transform: translateX(0);
}

.toast.is-closing {
    opacity: 0;
    transform: translateX(120%);
}

.toast.error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

@media (max-width: 768px) {
    .form-grid {
        display: block;
    }

    .full-width {
        width: 100%;
    }

    .form-group {
        margin-bottom: 20px;
        width: 100%;
    }

    .form-body {
        padding: 50px 24px 24px;
    }

    .form-group-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .lang-switcher {
        top: 20px;
        right: 24px;
    }

    .toast-container {
        right: auto;
        bottom: auto;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        flex-direction: column;
        align-items: center;
    }

    .toast {
        transform: scale(0.9);
        min-width: 260px;
        width: auto;
        max-width: 90vw;
        margin-bottom: 0;
    }

    .toast.is-show {
        transform: scale(1);
    }

    .toast.is-closing {
        transform: scale(0.9);
    }
}