/* 
 * Partner Link Manager - Frontend Styles
 * Modernes, responsives Design für Desktop und Mobile
 */

/* ========================================
   Formular Container
   ======================================== */

.plm-form-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff !important; /* Erzwinge weißen Hintergrund */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.plm-form-container:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.plm-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.plm-form-header h2 {
    font-size: 32px;
    color: #1a1a1a !important; /* Erzwinge dunkle Schrift */
    margin: 0 0 15px 0;
    font-weight: 700;
}

.plm-form-header p {
    font-size: 16px;
    color: #666 !important; /* Erzwinge dunkle Schrift */
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   Datenschutz-Hinweis
   ======================================== */

.plm-privacy-notice {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.plm-privacy-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.plm-privacy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1565c0;
}

.plm-privacy-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.plm-privacy-text a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 600;
}

.plm-privacy-text a:hover {
    color: #0d47a1;
}

/* ========================================
   Formular Layout
   ======================================== */

.plm-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.plm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plm-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50 !important; /* Erzwinge dunkle Farbe */
    display: flex;
    align-items: center;
    gap: 4px;
}

.plm-form-group .required {
    color: #e74c3c !important; /* Erzwinge rote Farbe für Sternchen */
    font-weight: bold;
}

/* ========================================
   Input Felder
   ======================================== */

.plm-input,
.plm-select,
.plm-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50 !important; /* Erzwinge dunkle Schrift */
    background-color: #ffffff !important; /* Erzwinge weißen Hintergrund */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.plm-input:focus,
.plm-select:focus,
.plm-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: #ffffff !important; /* Erzwinge weißen Hintergrund auch bei Focus */
}

.plm-input:hover,
.plm-select:hover,
.plm-textarea:hover {
    border-color: #bdc3c7;
}

.plm-textarea {
    resize: vertical;
    min-height: 120px;
}

.plm-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    appearance: none;
}

.plm-help-text {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 4px;
}

/* ========================================
   Checkboxen
   ======================================== */

.plm-checkbox-group {
    margin: 8px 0;
}

.plm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50 !important; /* Erzwinge dunkle Farbe */
}

.plm-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db;
}

.plm-checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.plm-checkbox-label a:hover {
    text-decoration: underline;
}

/* ========================================
   Captcha
   ======================================== */

.plm-captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.plm-captcha-question {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50 !important; /* Erzwinge dunkle Schrift */
    margin-bottom: 12px;
    padding: 16px;
    background: white !important; /* Erzwinge weißen Hintergrund */
    border-radius: 6px;
    text-align: center;
}

.plm-captcha-input {
    max-width: 200px;
}

.plm-loading {
    color: #7f8c8d;
    font-style: italic;
}

/* ========================================
   Submit Button
   ======================================== */

.plm-form-actions {
    margin-top: 16px;
}

.plm-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.plm-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.plm-submit-btn:active {
    transform: translateY(0);
}

.plm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.plm-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: plm-spin 0.8s linear infinite;
}

@keyframes plm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Nachrichten
   ======================================== */

.plm-form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
    animation: plm-slideIn 0.3s ease;
}

.plm-form-message.success {
    background-color: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.plm-form-message.error {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

@keyframes plm-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .plm-form-container {
        padding: 24px 20px;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .plm-form-header h2 {
        font-size: 24px;
    }
    
    .plm-form-header p {
        font-size: 14px;
    }
    
    .plm-form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .plm-input,
    .plm-select,
    .plm-textarea {
        font-size: 16px; /* Verhindert Zoom auf iOS */
    }
    
    .plm-captcha-input {
        max-width: 100%;
    }
    
    .plm-submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .plm-form-container {
        padding: 20px 16px;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .plm-form-header h2 {
        font-size: 22px;
    }
    
    .plm-form {
        gap: 20px;
    }
    
    .plm-captcha-question {
        font-size: 16px;
        padding: 12px;
    }
}

/* ========================================
   Dark Mode Support (deaktiviert - immer heller Hintergrund)
   ======================================== */

/* Dark Mode wurde entfernt, damit das Formular immer einen hellen, 
   weißen Hintergrund hat - unabhängig von System-Präferenzen */

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .plm-submit-btn,
    .plm-form-actions {
        display: none;
    }
}
