:root {
    --neon: #31f555;
    --dark: #0a0a0a;
    --grey: #a1a1aa;
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- OVERLAY (Pozadí) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* top, right, bottom, left: 0 */
    background: rgba(10, 10, 10, 0.6);
    /* Tmavé poloprůhledné */
    backdrop-filter: blur(8px);
    /* Glassmorphism efekt */
    z-index: 2000;
    /* Musí být nad headerem */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

/* Stav otevřeno */
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* --- KONTEJNER OKNA --- */
.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}

/* Animace připlutí okna */
.modal-overlay.is-open .modal-container {
    transform: scale(1) translateY(0);
}

/* Zavírací tlačítko */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--grey);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark);
}

/* --- HEADER --- */
.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.modal-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.text-neon {
    color: var(--neon);
}

/* --- MODERNÍ INPUTY (Floating Labels) --- */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Samotný input - odstraníme defaultní rámečky */
.input-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--dark);
    border: none;
    border-bottom: 2px solid #e5e7eb;
    /* Šedá linka */
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
    font-weight: 600;
}

/* Label, který "plave" */
.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: #9ca3af;
    pointer-events: none;
    /* Aby šlo kliknout skrz něj do inputu */
    transition: 0.3s ease;
}

/* Efekt: Když je input aktivní nebo v něm něco je, label vyjede nahoru */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--dark);
    /* Ztmavne */
    font-weight: 700;
}

/* Animovaná neonová linka */
.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon);
    transition: width 0.4s ease;
}

.input-group input:focus~.input-underline {
    width: 100%;
}

/* --- TLAČÍTKO --- */
.btn-full {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
}

/* Loader (pro efekt odesílání) */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.is-loading .btn-text {
    display: none;
}

.is-loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}