/* ─── Logo Vote — form.css ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* ── Root variables ── */
.lv-wrap {
    --lv-bg: #ffffff;
    --lv-surface: #f5f5f5;
    --lv-border: #e0e0e0;
    --lv-accent: #00C57B;
    --lv-accent2: #1733E7;
    --lv-text: #111111;
    --lv-muted: #888;
    --lv-radius: 12px;
    --lv-font: 'Raleway', sans-serif;
    --lv-body: 'Raleway', sans-serif;
    --lv-shadow: 0 8px 40px rgba(0, 0, 0, .10);

    font-family: var(--lv-body);
    background: var(--lv-bg);
    color: var(--lv-text);
    border-radius: 20px;
    max-width: 780px;
    margin: 40px auto;
    overflow: hidden;
    box-shadow: var(--lv-shadow);
}

/* ── Header ── */
.lv-header {
    background: linear-gradient(135deg, #f2f2f2 0%, #ffffff 100%);
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--lv-border);
    position: relative;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}

.lv-header__bg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

.lv-wrap .lv-header .lv-header__bg--tablet,
.lv-wrap .lv-header .lv-header__bg--mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .lv-wrap .lv-header .lv-header__bg--desktop {
        display: none !important;
    }

    .lv-wrap .lv-header .lv-header__bg--tablet {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .lv-wrap .lv-header .lv-header__bg--desktop {
        display: none !important;
    }

    .lv-wrap .lv-header .lv-header__bg--tablet {
        display: none !important;
    }

    .lv-wrap .lv-header .lv-header__bg--mobile {
        display: block !important;
    }
}

.lv-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 197, 123, .12), transparent 70%);
    pointer-events: none;
}

.lv-header__badge {
    display: inline-block;
    background: var(--lv-accent);
    color: #000;
    font-family: var(--lv-font);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 3px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.lv-header__title {
    font-family: var(--lv-font);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.lv-header__desc {
    font-size: 1rem;
    color: var(--lv-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Form container ── */
.lv-form {
    padding: 40px 48px;
}

/* ── Steps ── */
.lv-step {
    animation: lvFadeIn .35s ease;
}

.lv-step--hidden {
    display: none !important;
}

.lv-step__label {
    font-family: var(--lv-font);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--lv-accent2);
    margin: 0 0 28px;
}

/* ── Fields ── */
.lv-field {
    margin-bottom: 24px;
}

.lv-field__label {
    display: block;
    font-family: var(--lv-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--lv-text);
    margin-bottom: 8px;
}

.lv-required {
    color: var(--lv-accent);
}

.lv-field__input {
    width: 100%;
    background: var(--lv-surface);
    border: 1.5px solid var(--lv-border);
    border-radius: var(--lv-radius);
    color: var(--lv-text);
    font-family: var(--lv-body);
    font-size: 15px;
    padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    outline: none;
}

.lv-field__input:focus {
    border-color: var(--lv-accent);
    box-shadow: 0 0 0 3px rgba(0, 197, 123, .15);
}

.lv-field__input::placeholder {
    color: #bbb;
}

/* ── Buttons ── */
.lv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--lv-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 16px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .2s;
    margin-top: 8px;
}

.lv-btn--next {
    background: var(--lv-accent);
    color: #000;
    width: 100%;
    justify-content: center;
}

.lv-btn--next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 197, 123, .35);
}

.lv-btn__arrow {
    font-size: 18px;
}

.lv-btn--submit {
    background: var(--lv-accent);
    color: #000;
    width: 100%;
    justify-content: center;
    margin-top: 24px;
}

.lv-btn--submit:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.lv-btn--submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 197, 123, .35);
}

/* ── Back button ── */
.lv-back-btn {
    background: none;
    border: none;
    color: var(--lv-muted);
    font-family: var(--lv-body);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    display: block;
    transition: color .2s;
}

.lv-back-btn:hover {
    color: var(--lv-text);
}

/* ── Logo grid ── */
.lv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.lv-grid::-webkit-scrollbar {
    width: 4px;
}

.lv-grid::-webkit-scrollbar-track {
    background: var(--lv-surface);
    border-radius: 2px;
}

.lv-grid::-webkit-scrollbar-thumb {
    background: var(--lv-border);
    border-radius: 2px;
}

/* ── Logo cards ── */
.lv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--lv-surface);
    border: 1.5px solid var(--lv-border);
    border-radius: var(--lv-radius);
    padding: 20px 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    text-align: center;
    min-height: 90px;
    user-select: none;
}

.lv-card:hover {
    border-color: #ccc;
    background: #efefef;
    transform: translateY(-1px);
}

.lv-card__radio {
    display: none;
}

.lv-card__num {
    font-family: var(--lv-font);
    font-size: 11px;
    font-weight: 700;
    color: var(--lv-muted);
    letter-spacing: 1px;
}

.lv-card__check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 13px;
    color: var(--lv-accent);
    opacity: 0;
    transition: opacity .2s;
}

.lv-card__name {
    font-family: var(--lv-font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lv-text);
}

/* Selected state */
.lv-card.lv-card--selected {
    border-color: var(--lv-accent);
    background: rgba(0, 197, 123, .06);
}

.lv-card.lv-card--selected .lv-card__check {
    opacity: 1;
}

.lv-card.lv-card--selected .lv-card__num {
    color: var(--lv-accent);
}

/* ── Card image ── */
.lv-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-card__image {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

/* ── Header logo ── */
.lv-header__logo {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 16px;
}

/* ── Messages ── */
.lv-message {
    border-radius: var(--lv-radius);
    padding: 14px 20px;
    font-size: 14px;
    margin-top: 16px;
}

.lv-message--error {
    background: rgba(255, 60, 60, .12);
    border: 1px solid rgba(255, 60, 60, .3);
    color: #ff7070;
}

/* ── Success panel ── */
.lv-success {
    padding: 64px 48px;
    text-align: center;
    animation: lvFadeIn .5s ease;
}

.lv-success__icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.lv-success__title {
    font-family: var(--lv-font);
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 12px;
}

.lv-success__text {
    color: var(--lv-muted);
    margin: 0 0 20px;
}

.lv-success__choice {
    font-size: 16px;
    color: var(--lv-text);
}

.lv-success__choice strong {
    color: var(--lv-accent);
    font-family: var(--lv-font);
    font-size: 1.1rem;
}

/* ── Animations ── */
@keyframes lvFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 600px) {

    .lv-form,
    .lv-success {
        padding: 28px 24px;
    }

    .lv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}