/**
 * Lidgen Forms - Frontend styles
 */

.lidgen-form-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lidgen-form-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
}

.lidgen-form-field {
    margin-bottom: 1.25rem;
}

.lidgen-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.lidgen-form-field label .required {
    color: #e53e3e;
    margin-left: 2px;
}

.lidgen-form-field input,
.lidgen-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.lidgen-form-field input:focus,
.lidgen-form-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.lidgen-form-field input::placeholder,
.lidgen-form-field textarea::placeholder {
    color: #9ca3af;
}

.lidgen-form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.lidgen-form-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.lidgen-form-submit:hover {
    background: #2563eb;
}

.lidgen-form-submit:active {
    transform: scale(0.98);
}

.lidgen-form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.lidgen-form-success {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.125rem;
    color: #059669;
    background: #d1fae5;
    border-radius: 6px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .lidgen-form-wrapper {
        background: #1f2937;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .lidgen-form-title {
        color: #f9fafb;
    }

    .lidgen-form-field label {
        color: #e5e7eb;
    }

    .lidgen-form-field input,
    .lidgen-form-field textarea {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .lidgen-form-field input:focus,
    .lidgen-form-field textarea:focus {
        border-color: #60a5fa;
        box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    }

    .lidgen-form-field input::placeholder,
    .lidgen-form-field textarea::placeholder {
        color: #9ca3af;
    }
}
