/* Fiber Hero Form Styling */
.cf7-fiber-hero {
    max-width: 800px;
    margin: 0 auto;
}

.cf7-fiber-hero .cf7-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #004d9f;
    margin: 35px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1800e;
}

.cf7-fiber-hero .cf7-section-title:first-child {
    margin-top: 10px;
}

/* Form Row Layout - übernimmt Theme Styles */
.cf7-fiber-hero .cf7-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.cf7-fiber-hero .cf7-col {
    flex: 1;
}

.cf7-fiber-hero .cf7-col-2 {
    width: 50%;
}

.cf7-fiber-hero .cf7-col-3 {
    flex: 2;
}

/* Form Fields - übernimmt Theme Styles */
.cf7-fiber-hero label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.cf7-fiber-hero input[type="text"],
.cf7-fiber-hero input[type="email"],
.cf7-fiber-hero input[type="tel"],
.cf7-fiber-hero input[type="date"],
.cf7-fiber-hero select,
.cf7-fiber-hero textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    margin-top: 4px;
    box-sizing: border-box;
}

.cf7-fiber-hero input:focus,
.cf7-fiber-hero select:focus,
.cf7-fiber-hero textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.cf7-fiber-hero textarea {
    min-height: 80px;
    resize: vertical;
}

/* Conditional Group Styling */
.cf7-fiber-hero [data-class="group-verein"] {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #f1800e;
    margin-top: 15px;
    border-radius: 4px;
}

.cf7-fiber-hero [data-class="group-verein"] label {
    margin-bottom: 0;
}

/* Radio Button Styling - Theme Style übernommen */
.cf7-fiber-hero .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.cf7-fiber-hero .wpcf7-list-item {
    display: block;
    margin: 0;
}

.cf7-fiber-hero .wpcf7-list-item label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    margin-bottom: 0;
    font-weight: 400;
}

.cf7-fiber-hero .wpcf7-list-item label:hover {
    border-color: #0066cc;
    background: #fff;
}

.cf7-fiber-hero .wpcf7-list-item input[type="radio"] {
    margin: 0;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #0066cc;
}

.cf7-fiber-hero .wpcf7-list-item:has(input[type="radio"]:checked) label {
    border-color: #0066cc;
    background: #fff;
    font-weight: 500;
}

/* Acceptance Checkbox Styling - Theme Style übernommen */
.cf7-fiber-hero .cf7-acceptance {
    margin: 10px 0;
}

.cf7-fiber-hero .cf7-acceptance .wpcf7-list-item {
    display: block !important;
    margin: 0 0 10px 0 !important;
}

.cf7-fiber-hero .cf7-acceptance label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0;
    font-size: 13px;
    line-height: 1.4;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    font-weight: 400 !important;
}

.cf7-fiber-hero .cf7-acceptance input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Submit Button - Theme Style */
.cf7-fiber-hero .wpcf7-submit {
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 8px;
}

.cf7-fiber-hero .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Validation Messages - Theme Style */
.cf7-fiber-hero .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.cf7-fiber-hero .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

.cf7-fiber-hero .wpcf7-response-output {
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    font-size: 14px;
}

.cf7-fiber-hero .wpcf7-validation-errors {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.cf7-fiber-hero .wpcf7-mail-sent-ok {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

/* Responsive Adjustments - Theme Style */
@media (max-width: 768px) {
    .cf7-fiber-hero .cf7-row {
        flex-direction: column;
    }

    .cf7-fiber-hero .cf7-col,
    .cf7-fiber-hero .cf7-col-2 {
        width: 100%;
    }

    .cf7-fiber-hero .cf7-section-title {
        font-size: 18px;
    }
}
