:root {
    --ink: #e0e0e0;
    --bg: #1a1a1a;
    --card: #2d2d2d;
    --card2: #3a3a3a;
    --accent: #00ff88;
    --trust: #3a6ea5;
    --danger: #ff4444;
    --line: rgba(0, 255, 136, 0.15);
    --line2: rgba(58, 110, 165, 0.25);
    --radius: 8px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

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

body {
    font: 16px/1.5 'Segoe UI', system-ui, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
}

.wrap {
    max-width: 980px;
    margin: 28px auto;
    padding: 16px;
    padding-bottom: 120px;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0 28px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line2);
}

.robot-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    animation: robotPulse 4s ease-in-out infinite;
}

@keyframes robotPulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4)); }
    50% { filter: drop-shadow(0 0 35px rgba(0, 255, 136, 0.8)); }
}

header h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

header p.sub {
    margin: 4px 0 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* CARDS */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--line2);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--trust));
}

/* LABELS */
label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin: 6px 0 6px;
    color: var(--trust);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* SELECTS */
.select-wrap {
    position: relative;
}

select {
    width: 100%;
    padding: 12px 16px;
    background: var(--card2);
    color: var(--ink);
    border-radius: var(--radius);
    border: 1px solid var(--line2);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    height: 56px;
    font-size: 17px;
    transition: all 0.3s;
    cursor: pointer;
}

select option {
    background: var(--card2);
    color: var(--ink);
}

select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.15);
}

.select-wrap::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.7;
    font-size: 18px;
    color: var(--accent);
}

/* GLOW INIT - Language selector pulse */
.glow-init {
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1),
                0 0 20px rgba(0, 255, 136, 0.4);
    animation: glow-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.08),
                    0 0 14px rgba(0, 255, 136, 0.3);
    }
    to {
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.15),
                    0 0 28px rgba(0, 255, 136, 0.6);
    }
}

/* ANSWER TERMINAL */
.answer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: #111111;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    min-height: 80px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.answer-icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

#answerText {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

/* RECOMMENDATION BOX */
.recommendation-box {
    background: #111111;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    display: none;
}

.recommendation-box h3 {
    color: var(--accent);
    font-size: 1.3em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.recommendation-box .tier-details {
    color: var(--ink);
    font-size: 0.95em;
    line-height: 1.8;
}

.recommendation-box .price-range {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1em;
}

/* PROGRESS INDICATOR */
.progress-bar {
    height: 3px;
    background: var(--card2);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--trust), var(--accent));
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

/* CTA BUTTON */
.cta {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    font-size: 1em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn.primary {
    background: var(--accent);
    color: #000000;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.btn.ghost {
    background: transparent;
    color: var(--ink);
}

/* SECTION DIVIDER */
.section-title {
    color: var(--trust);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line2);
}

/* FOOTER */
footer {
    opacity: 0.5;
    text-align: center;
    margin: 28px 0;
    font-size: 13px;
    letter-spacing: 1px;
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.modal {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal header {
    padding: 20px;
    border-bottom: 1px solid var(--line2);
    border-left: none;
}

.modal header h2 {
    color: var(--accent);
    font-size: 1.1em;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal .body {
    padding: 20px;
}

.modal .form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input, textarea {
    width: 100%;
    border: 1px solid var(--line2);
    background: var(--card2);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

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

.modal .actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--line2);
}

/* SUCCESS MESSAGE */
.success-message {
    text-align: center;
    padding: 32px;
}

.success-message h3 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.success-message p {
    margin: 8px 0;
    line-height: 1.8;
    color: var(--ink);
}

.success-message .phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 720px) {
    header h1 { font-size: 26px; }
    header p.sub { font-size: 0.85em; }
    .robot-icon { font-size: 52px; }
    .wrap { padding: 12px; }
    .card { padding: 16px; }
}
