/**
 * OD Power of Attorney Component for Joomla — © 2025-2026 octi design | Martin Grunert
 * SPDX-License-Identifier: GPL-3.0-or-later
 * Version: 1.1.0
 * Purpose: Vollmacht form styles
 */

.vollmacht-form {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.vollmacht-header {
    text-align: center;
    margin-bottom: 30px;
}

.vollmacht-header h1 {
    color: #2d5a69;
    font-size: 32px;
    margin-bottom: 10px;
}

.vollmacht-header p {
    color: #666;
    font-size: 16px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #2d5a69;
}

.form-section h3 {
    margin-top: 0;
    color: #2d5a69;
    font-size: 18px;
    font-weight: bold;
}

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

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

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.vollmachttext-content {
    line-height: 1.6;
    color: #333;
}

.vollmachttext-content p {
    margin-bottom: 10px;
}

.vollmachttext-content small {
    font-size: 13px;
    line-height: 1.5;
}

.vollmachtnehmer-info {
    margin: 0;
    color: #2d5a69;
    font-weight: bold;
}

.vollmachtnehmer-info small {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.signature-box {
    margin-bottom: 20px;
}

.signature-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#signature-pad {
    display: block;
    border: 2px solid #2d5a69;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: crosshair;
    touch-action: none;
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.button-group button,
.btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-clear {
    background-color: #6c757d;
    color: white;
}

.btn-clear:hover {
    background-color: #5a6268;
}

.btn-submit {
    background-color: #2d5a69;
    color: white;
}

.btn-submit:hover {
    background-color: #1f3f4d;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .vollmacht-header h1 {
        font-size: 24px;
    }
}
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 40px;
    font-size: 18px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#vollmacht-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}
