/* =============================================================================
   Fachberatung – "Frage zum Produkt" Modal Styling
   Shopfarben: Grün #28a745 / Dunkelgrün #1e7e34
   ============================================================================= */

/* --- Modal-Rahmen ---------------------------------------------------------- */
.mfp-content .modal-dialog {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mfp-content .modal-content {
    border: none;
    border-radius: 8px;
}

/* --- Header ---------------------------------------------------------------- */
.mfp-content .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border-bottom: none;
    padding: 20px 24px;
    position: relative;
}

.mfp-content .modal-header .modal-title {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding-right: 32px;
}

/* --- Schließen-Button ------------------------------------------------------ */
.mfp-content .mfp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 22px;
    color: #fff !important;
    opacity: 0.8;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
    text-align: center;
}

.mfp-content .mfp-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* --- Body ------------------------------------------------------------------ */
.mfp-content .modal-body {
    padding: 24px;
    background: #fff;
}

/* Varianteninfo-Block oben im Modal */
.mfp-content .modal-body > br + br,
.mfp-content .modal-body > *:first-child:not(form) {
    display: block;
}

#product-question-form + *,
.mfp-content .modal-body > *:not(form):not(.required_info) {
    font-size: 13px;
    color: #555;
}

/* Varianten-Zusammenfassung als hervorgehobene Box */
.mfp-content .modal-body {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

/* "* notwendige Angaben" */
.mfp-content .required_info {
    margin-bottom: 16px;
}

.mfp-content .required_info .pull-right {
    font-size: 12px;
    color: #888;
}

/* --- Formular -------------------------------------------------------------- */
#product-question-form .form-group {
    margin-bottom: 16px;
}

#product-question-form .control-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    padding-top: 9px;
}

#product-question-form .form-control {
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}

#product-question-form .form-control:focus {
    border-color: #28a745;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
    outline: none;
}

#product-question-form textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Pflichtfeld-Markierung */
#product-question-form .form-group.mandatory .control-label::after {
    content: ' *';
    color: #28a745;
    font-weight: 700;
}

/* --- Captcha --------------------------------------------------------------- */
#captcha_wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#vvcode_image {
    border-radius: 5px;
    border: 1px solid #d0d0d0;
    max-width: 100%;
}

#vvcode {
    max-width: 240px;
}

/* --- Datenschutz-Checkbox -------------------------------------------------- */
.mfp-content .checkbox-inline {
    padding: 12px 0 4px 0;
    font-size: 12px;
    color: #555;
}

.mfp-content .checkbox-inline a {
    color: #28a745;
    text-decoration: underline;
}

.mfp-content .checkbox-inline a:hover {
    color: #1e7e34;
}

/* Honeypot-Feld unsichtbar halten */
#product-question-form #form-input,
#product-question-form label[for="form-input"] {
    display: none !important;
}

/* --- Footer ---------------------------------------------------------------- */
.mfp-content .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
    padding: 16px 24px;
    text-align: right;
}

.mfp-content .btn-send-question {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    letter-spacing: 0.03em;
    transition: opacity 0.2s, transform 0.1s;
    cursor: pointer;
}

.mfp-content .btn-send-question:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.mfp-content .btn-send-question:active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Meldungen (Erfolg / Fehler) ------------------------------------------ */
.mfp-content .alert-success {
    color: #fff !important;
    background-color: #28a745;
    border-color: #1e7e34;
    border-radius: 5px;
    font-weight: 600;
    padding: 14px 18px;
}

.mfp-content .alert-danger {
    color: #fff !important;
    background-color: #dc3545;
    border-color: #b02a37;
    border-radius: 5px;
    font-weight: 600;
    padding: 14px 18px;
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 600px) {
    .mfp-content .modal-header {
        padding: 16px 18px;
    }

    .mfp-content .modal-body {
        padding: 16px;
    }

    .mfp-content .modal-footer {
        padding: 12px 16px;
    }

    #product-question-form .control-label {
        text-align: left !important;
    }

    #vvcode {
        max-width: 100%;
    }
}
