/* OGS Forms System - Styles */

/* Container */
.ogs-form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ogs-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.ogs-form-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Form Sections */
.ogs-form-section {
    margin-bottom: 30px;
}

.ogs-form-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* Form Table */
.ogs-form-table {
    width: 100%;
    border: 1px solid #000;
}

.ogs-form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid #000;
    min-height: 50px;
}

.ogs-form-row:last-child {
    border-bottom: none;
}

.ogs-form-label {
    padding: 12px;
    background: #f5f5f5;
    border-right: 1px solid #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.ogs-form-input,
.ogs-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-family: inherit;
    background: transparent;
}

.ogs-form-input:focus,
.ogs-form-textarea:focus {
    outline: 2px solid #4CAF50;
    outline-offset: -2px;
}

.ogs-form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Schedule Table */
.ogs-schedule-table {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ogs-schedule-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    border-bottom: 1px solid #ddd;
    padding: 10px;
}

.ogs-schedule-row:last-child {
    border-bottom: none;
}

.ogs-schedule-day {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.ogs-schedule-time {
    display: flex;
    align-items: center;
}

.ogs-schedule-time label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    gap: 5px;
}

.ogs-schedule-time input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.ogs-schedule-time span {
    font-size: 14px;
}

/* Betreuungszeiten specific */
.ogs-request-block {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #4CAF50;
}

.ogs-checkbox-label {
    display: block;
    cursor: pointer;
}

.ogs-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    vertical-align: middle;
    cursor: pointer;
}

.ogs-checkbox-label span {
    line-height: 1.6;
}

.ogs-inline-input {
    display: inline-block;
    width: 200px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.ogs-indent {
    margin-left: 30px;
    margin-top: 10px;
}

.ogs-info-box {
    background: #fffacd;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f0e68c;
    margin-bottom: 15px;
}

.ogs-info-box p {
    margin: 0;
    font-weight: bold;
}

/* Beitritt specific */
.ogs-contribution-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.ogs-contribution-label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.ogs-contribution-label:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.ogs-contribution-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.ogs-contribution-label input[type="radio"]:checked + span {
    font-weight: bold;
}

.ogs-custom-amount {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin: 0 5px;
}

.ogs-terms-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Form Actions */
.ogs-form-actions {
    margin-top: 30px;
    text-align: center;
}

.ogs-form-submit {
    background: #C71529;
    color: white;
    border: none;
    padding: 6px 20px;
    margin: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.ogs-form-submit:hover {
    background: #9F0314;
}

.ogs-form-submit:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}

/* Messages */
.ogs-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.ogs-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ogs-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Utilities */
.required {
    color: #d32f2f;
}

.ogs-form-note {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.ogs-small-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 5px 0;
}

/* Signature Pad */
.ogs-signature-container {
    margin: 20px 0;
}

.ogs-signature-pad-wrapper {
    border: 2px solid #000;
    border-radius: 4px;
    background: white;
    margin: 10px 0;
    position: relative;
}

.ogs-signature-pad {
    width: 100%;
    height: 200px;
    cursor: crosshair;
    touch-action: none;
    display: block;
}

.ogs-signature-actions {
    margin-top: 10px;
}

.ogs-signature-clear {
    background: white !important;
    color: #C71529 !important;
    border: 1px solid #C71529 !important;
    padding: 6px 20px !important;
    margin: 10px !important;
    font-size: 16px !important;
    font-weight: regular !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.ogs-signature-clear:hover {
    background: #fff5f6 !important;
    border-color: #C71529 !important;
}

.ogs-signature-clear:focus {
    outline: none !important;
    border-color: #9F0314 !important;
    box-shadow: 0 0 0 3px rgba(159, 3, 20, 0.1) !important;
}

/* Radio buttons for release time */
.ogs-release-options {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 15px 0;
}

.ogs-radio-label {
    display: block;
    padding: 10px 15px;
    margin: 8px 0;
    background: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.ogs-radio-label:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.ogs-radio-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    cursor: pointer;
}

.ogs-radio-label input[type="radio"]:checked + span {
    font-weight: bold;
}

/* Forms Menu */
.ogs-forms-menu {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.ogs-forms-menu h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.ogs-forms-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.ogs-form-card {
    padding: 30px 20px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    height: 280px;
    box-sizing: border-box;
}

.ogs-form-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ogs-form-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.ogs-icon {
    width: 32px;
    height: 32px;
    color: #C71529;
    transition: all 0.3s ease;
}

.ogs-form-card:hover .ogs-icon {
    color: #4CAF50;
    transform: scale(1.1);
}

.ogs-form-card h4 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.3;
    color: #333;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ogs-form-card p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Back button */
.ogs-back-button,
a.ogs-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #C71529;
    border: 1px solid #C71529;
    padding: 6px 20px;
    margin: 10px;
    font-size: 16px;
    font-weight: regular;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.ogs-back-button:hover,
a.ogs-back-button:hover {
    background: #fff5f6 !important;
    border-color: #C71529 !important;
    color: #C71529 !important;
    text-decoration: none !important;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .ogs-forms-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 640px) {
    .ogs-forms-grid {
        grid-template-columns: 280px;
    }
}

@media (max-width: 768px) {
    .ogs-form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .ogs-form-row {
        grid-template-columns: 1fr;
    }
    
    .ogs-form-label {
        border-right: none;
        border-bottom: 1px solid #000;
    }
    
    .ogs-schedule-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .ogs-contribution-options {
        flex-direction: column;
    }
    
    .ogs-contribution-label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ogs-form-header h2 {
        font-size: 18px;
    }
    
    .ogs-form-submit {
        width: 100%;
    }
}

/* Validation checkmarks */
.ogs-form-input.valid,
.ogs-form-textarea.valid {
    border-color: #4CAF50;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

.ogs-form-input.invalid,
.ogs-form-textarea.invalid {
    border-color: #f44336;
}

/* Datenschutz section spacing */
.ogs-form-section input[name="datenschutz_accepted"] {
    margin-bottom: 10px;
}

.ogs-form-section:has(input[name="datenschutz_accepted"]) {
    margin-bottom: 10px;
}


.ogs-icon {
    width: 32px;
    height: 32px;
    color: #C71529;
    transition: all 0.3s ease;
}

.ogs-form-card:hover .ogs-icon {
    color: #4CAF50;
    transform: scale(1.1);
}


.ogs-form-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: flex;