.special-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.special-form-overlay.visible {
    opacity: 1;
}

.special-character-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    background: var(--dark);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    z-index: 1300;
    opacity: 0;
    transition: all 0.3s ease;
}

.special-character-form.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.special-character-form h4 {
    color: var(--secondary);
    margin-top: 0;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.form-desc {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--light);
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.form-group textarea.error {
    border-color: #ff3e3e;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.example-prompts {
    background: rgba(15, 12, 41, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.example-prompt-title {
    margin: 0 0 8px 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.9rem;
}

.example-prompt-list {
    padding-left: 20px;
    margin: 0;
}

.example-prompt-list li {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.generate-special-btn, .cancel-special-btn {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.generate-special-btn {
    background: linear-gradient(to right, var(--secondary), #ff5e62);
    color: white;
}

.cancel-special-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
}

.generate-special-btn:hover, .cancel-special-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.special-btn {
    background: linear-gradient(to right, #ff9e00, #ff00aa);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 15px auto 0;
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.4);
}

.special-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 170, 0.6);
}

.special-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .special-character-form {
        width: 95%;
        padding: 20px;
    }
}