/* ============================================
   WFAI Mobility Desk - Public Form Styles
   Version: 1.4.4 (Full Container Width, No Box)
   Brand: #1D1459 (Blau), #B39C7D (Beige), #E1E2E4 (Grau)
   ============================================ */

/* --- Success/Error Messages --- */
.wfai-confirmation {
    padding: 1.25em 1.5em;
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    margin-bottom: 1.5em;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.wfai-error {
    padding: 1.25em 1.5em;
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    margin-bottom: 1.5em;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
}

/* --- Form Container (FULL CONTAINER WIDTH) --- */
.wfai-lead-form {
    max-width: none; /* Keine Breitenbegrenzung */
    width: 100%;
    margin: 0;
    padding: 0; /* Kein Extra-Padding - nutzt Container-Padding */
    background: none; /* Transparent - kein Box-Look */
    box-shadow: none; /* Kein Schatten */
    box-sizing: border-box;
}

/* --- Form Fields --- */
.wfai-lead-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    letter-spacing: 0.2px;
}

.wfai-lead-form select,
.wfai-lead-form input[type="text"],
.wfai-lead-form input[type="email"],
.wfai-lead-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid #d0d1d3;
    border-radius: 8px;
    background: #fff;
    color: #2c3e50;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

/* Focus States - Kein Transform (Cursor-Safe) */
.wfai-lead-form select:focus,
.wfai-lead-form input[type="text"]:focus,
.wfai-lead-form input[type="email"]:focus,
.wfai-lead-form textarea:focus {
    outline: none;
    border-color: #1D1459; /* Brand Blau */
    box-shadow: 0 0 0 3px rgba(29, 20, 89, 0.1);
}

/* Hover States */
.wfai-lead-form input:hover:not(:focus),
.wfai-lead-form select:hover:not(:focus),
.wfai-lead-form textarea:hover:not(:focus) {
    border-color: #b0b1b3;
}

/* Select Dropdown Styling */
.wfai-lead-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%232c3e50' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 50px;
}

.wfai-lead-form select option {
    padding: 12px;
    font-size: 16px;
    color: #2c3e50;
}

/* Textarea specific */
.wfai-lead-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Field Spacing */
.wfai-lead-form > div,
.wfai-lead-form > p {
    margin-bottom: 1.75em;
}

/* --- Submit Button --- */
.wfai-lead-form button[type="submit"] {
    width: 100%;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1D1459 0%, #2a1d7a 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(29, 20, 89, 0.2);
}

.wfai-lead-form button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #150f3d 0%, #1f1660 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 20, 89, 0.3);
}

.wfai-lead-form button[type="submit"]:active:not(:disabled) {
    transform: translateY(0);
}

/* Disabled State */
.wfai-lead-form button[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: #E1E2E4;
    color: #999;
    transform: none;
    box-shadow: none;
}

/* --- Privacy Checkbox --- */
.wfai-privacy {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-top: 1.5em;
    padding: 1em;
    background: rgba(225, 226, 228, 0.25);
    border-radius: 8px;
}

.wfai-privacy label {
    display: flex;
    align-items: baseline; /* ✅ Besseres Alignment */
    gap: 10px; /* ✅ Kompakter */
    line-height: 1.5; /* ✅ Besserer Zeilenabstand */
    font-weight: 400;
    cursor: pointer;
    text-align: left; /* NEU: Wichtig für Mobile */
}

.wfai-privacy input[type="checkbox"] {
    margin-top: 2px; /* ✅ Feinjustierung */
    min-width: 20px; /* ✅ Verhindert Shrinking */
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #1D1459;
}

/* NEU: Mobile-spezifische Optimierung */
@media (max-width: 480px) {
    .wfai-privacy {
        padding: 1em 0.8em; /* Weniger Padding auf Mobile */
    }
    
    .wfai-privacy label {
        gap: 8px; /* Noch kompakter */
        font-size: 13px; /* Etwas kleiner */
    }
}

.wfai-privacy a {
    color: #1D1459;
    text-decoration: underline;
    font-weight: 500;
}

.wfai-privacy a:hover {
    color: #B39C7D;
}

/* --- Responsive Design (Mobile Optimiert) --- */
@media (max-width: 768px) {
    .wfai-lead-form select,
    .wfai-lead-form input[type="text"],
    .wfai-lead-form input[type="email"],
    .wfai-lead-form textarea {
        font-size: 16px; /* Verhindert Auto-Zoom auf iOS */
        padding: 13px 16px;
    }
    
    .wfai-lead-form button[type="submit"] {
        font-size: 17px;
        padding: 16px 28px;
    }
    
    .wfai-privacy {
        font-size: 13px;
        padding: 0.9em;
    }
}

@media (max-width: 480px) {
    .wfai-lead-form > div,
    .wfai-lead-form > p {
        margin-bottom: 1.5em;
    }
    
    .wfai-lead-form button[type="submit"] {
        font-size: 16px;
        padding: 15px 24px;
    }
}

@media (max-width: 360px) {
    .wfai-lead-form select,
    .wfai-lead-form input[type="text"],
    .wfai-lead-form input[type="email"],
    .wfai-lead-form textarea {
        padding: 12px 14px;
        font-size: 15px;
    }
}

/* --- Accessibility --- */
.wfai-lead-form *:focus-visible {
    outline: 3px solid #1D1459;
    outline-offset: 2px;
}

/* --- Placeholder Styling --- */
.wfai-lead-form input::placeholder,
.wfai-lead-form textarea::placeholder {
    color: #999;
    opacity: 0.7;
}

/* --- Cursor Behavior (Sicher) --- */
.wfai-lead-form,
.wfai-lead-form * {
    pointer-events: auto !important;
}

.wfai-lead-form input,
.wfai-lead-form textarea {
    cursor: text;
}

.wfai-lead-form select,
.wfai-lead-form button[type="submit"]:not(:disabled) {
    cursor: pointer;
}

.wfai-lead-form button[type="submit"]:disabled {
    cursor: not-allowed !important;
}
