* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 122, 0, .20), transparent 35%),
        linear-gradient(135deg, #101010, #1c1c1c);
    color: #fff;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 14px;
}

.assistant-card {
    width: 100%;
    max-width: 520px;
}

.logo-wrap {
    text-align: center;
    margin-bottom: 22px;
}

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

.chat-box {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .38);
}

.assistant-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff7a00, #ffb000);
    color: #111;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 24px;
}

.step-content {
    text-align: center;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 22px;
}

.step-content span {
    color: #ffb000;
}

.field-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.78);
    margin-bottom: 7px;
}

input {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.11);
    color: #fff;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

input[type="file"] {
    padding: 14px;
    height: auto;
}

input::placeholder {
    color: rgba(255,255,255,.42);
}

input:focus {
    border-color: #ffb000;
    box-shadow: 0 0 0 3px rgba(255,176,0,.18);
}

.main-btn {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff7a00, #ffb000);
    color: #111;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 8px;
}

.main-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.message-box {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 0, 0, .16);
    color: #ffd2d2;
    font-size: 14px;
    text-align: center;
}

.success-box {
    background: rgba(25, 180, 95, .18);
    color: #d7ffe8;
}

@media (max-width: 480px) {
    .page {
        padding: 18px 12px;
    }

    .chat-box {
        border-radius: 24px;
        padding: 18px;
    }

    .step-content {
        font-size: 19px;
    }

    .logo {
        max-width: 135px;
    }
}

.select-panel {
    display: none;
    margin-top: 8px;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 8px;
    max-height: 230px;
    overflow-y: auto;
}

.select-panel.is-visible {
    display: block;
}

.select-option {
    width: 100%;
    border: 0;
    background: rgba(255,255,255,.07);
    color: #fff;
    text-align: left;
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 14px;
    margin-bottom: 6px;
    cursor: pointer;
}

.select-option:last-child {
    margin-bottom: 0;
}

.select-option:hover,
.select-option.is-selected {
    background: linear-gradient(135deg, #ff7a00, #ffb000);
    color: #111;
    font-weight: 900;
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

.page {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: 28px;
}

@supports (height: 100dvh) {
    .page {
        min-height: 100dvh;
    }
}

@media (max-width: 768px) {
    .page {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .assistant-card {
        margin-top: 0;
    }

    .logo-wrap {
        position: relative;
        z-index: 5;
        margin-top: 0;
        margin-bottom: 18px;
    }

    .chat-box {
        margin-top: 0;
    }

    body.keyboard-open .page {
        padding-top: 14px;
    }
}

.hp-field {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}