/**
 * Widerrufserklärung - CSS
 */

#tandemfactory-widerruf {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    color: #333;
}

#tandemfactory-widerruf .wr-wrapper {
    max-width: 580px;
    margin: 30px auto;
}

/* === FORMULAR CARD === */

#tandemfactory-widerruf .wr-form {
    background: #fff;
    border-radius: 10px;
    padding: 30px 28px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.09);
}

/* === HEADER === */

#tandemfactory-widerruf .wr-header {
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 3px solid #4268FF;
}

#tandemfactory-widerruf .wr-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

#tandemfactory-widerruf .wr-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    font-style: normal;
}

/* === FELDER === */

#tandemfactory-widerruf .wr-field {
    margin-bottom: 12px;
}

#tandemfactory-widerruf .wr-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#tandemfactory-widerruf .wr-required {
    color: #e53e3e;
}

#tandemfactory-widerruf .wr-optional {
    font-weight: 400;
    font-size: 12px;
    color: #999;
    text-transform: none;
    letter-spacing: 0;
}

#tandemfactory-widerruf .wr-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

/* Input-Felder (text, email) – doppelt so hoch */
#tandemfactory-widerruf input[type="text"].wr-input,
#tandemfactory-widerruf input[type="email"].wr-input {
    min-height: 50px;
}

#tandemfactory-widerruf .wr-input:focus {
    outline: none;
    border-color: #4268FF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 104, 255, 0.15);
}

#tandemfactory-widerruf textarea.wr-input {
    resize: vertical;
    min-height: 45px;
}

/* Validierungsfeedback */
#tandemfactory-widerruf .wr-feedback {
    display: none;
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
}

#tandemfactory-widerruf .wr-form.was-validated .wr-input:invalid {
    border-color: #e53e3e;
    background: #fff8f8;
}

#tandemfactory-widerruf .wr-form.was-validated .wr-input:invalid ~ .wr-feedback {
    display: block;
}

/* === DIVIDER (Optional-Bereich) === */

#tandemfactory-widerruf .wr-divider {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin: 18px 0 12px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

/* === ALERT === */

#tandemfactory-widerruf .wr-alert {
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

#tandemfactory-widerruf .wr-alert.wr-alert-danger {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

/* === BUTTONS === */

#tandemfactory-widerruf .wr-actions {
    margin-top: 20px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

#tandemfactory-widerruf .wr-btn-primary,
#tandemfactory-widerruf .wr-btn-primary:link,
#tandemfactory-widerruf .wr-btn-primary:visited {
    background: #4268FF !important;
    background-color: #4268FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 11px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
    width: auto !important;
}

#tandemfactory-widerruf .wr-btn-primary:hover {
    background: #3257e8 !important;
    background-color: #3257e8 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

#tandemfactory-widerruf .wr-btn-primary:disabled {
    background: #a0b0ff !important;
    background-color: #a0b0ff !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#tandemfactory-widerruf .wr-btn-secondary,
#tandemfactory-widerruf .wr-btn-secondary:link,
#tandemfactory-widerruf .wr-btn-secondary:visited {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
    width: auto !important;
}

#tandemfactory-widerruf .wr-btn-secondary:hover {
    background: #e8e8e8 !important;
    background-color: #e8e8e8 !important;
    color: #333 !important;
}

/* === HONEYPOT + HIDDEN FIELDS === */

#tandemfactory-widerruf .wr-hp {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

#tandemfactory-widerruf input[type="hidden"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
}

/* === DATENSCHUTZ-HINWEIS === */

#tandemfactory-widerruf .wr-legal {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

#tandemfactory-widerruf .wr-legal strong {
    color: #555;
}

#tandemfactory-widerruf .wr-legal a {
    color: #4268FF;
    text-decoration: none;
}

#tandemfactory-widerruf .wr-legal a:hover {
    text-decoration: underline;
}

/* === SUCCESS PANEL === */

#tandemfactory-widerruf .wr_success_box {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border: 2px solid #38a169;
    border-radius: 10px;
    padding: 40px 28px;
    text-align: center;
}

#tandemfactory-widerruf .wr_success_box i {
    font-size: 52px;
    color: #38a169;
    display: block;
    margin-bottom: 16px;
}

#tandemfactory-widerruf .wr_success_box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #276749;
    margin: 0 0 12px;
}

#tandemfactory-widerruf .wr_wid {
    font-size: 14px;
    color: #444;
    margin: 10px 0;
}

#tandemfactory-widerruf .wr_wid strong {
    font-family: 'Courier New', monospace;
    color: #276749;
    font-size: 13px;
    background: #c6f6d5;
    padding: 2px 8px;
    border-radius: 4px;
}

#tandemfactory-widerruf .wr_info {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

#tandemfactory-widerruf .wr_disclaimer {
    font-size: 12px;
    color: #777;
    margin: 14px 0 0;
    font-style: italic;
    line-height: 1.5;
}

/* === RESPONSIVE === */

@media (max-width: 640px) {
    #tandemfactory-widerruf .wr-form {
        padding: 20px 16px;
    }

    #tandemfactory-widerruf .wr-title {
        font-size: 22px;
    }

    #tandemfactory-widerruf .wr-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 13px;
    }

    #tandemfactory-widerruf .wr-btn-primary,
    #tandemfactory-widerruf .wr-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
