/* ==========================================================================
   Widerrufsbutton (EU Revocation Button)
   ========================================================================== */

/* --- Footer Button --- */
.footer-revoke-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.footer-revoke-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    color: #ffffff;
}

.footer-revoke-btn:active {
    transform: translateY(0);
}

.footer-revoke-wrapper {
    text-align: center;
    margin-top: 8px;
}

/* --- Revocation Form Page --- */
.revocation-form,
.revocation-success {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.revocation-container {
    max-width: 560px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.revocation-header {
    text-align: center;
    margin-bottom: 32px;
}

.revocation-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.revocation-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.revocation-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: #4caf50;
    background: #e8f5e9;
    border-radius: 50%;
}

/* Form fields */
#revocation-form .field-revocationform-name,
#revocation-form .field-revocationform-contractid,
#revocation-form .field-revocationform-email {
    margin-bottom: 20px;
}

#revocation-form .field label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

#revocation-form .field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

#revocation-form .field input:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

#revocation-form .field .help-block {
    color: #999;
    font-size: 0.85rem;
}

#revocation-form .field.has-error .help-block,
#revocation-form .field .invalid-feedback {
    color: #dc3545;
}

/* Submit button */
.revocation-submit {
    text-align: center;
    margin-top: 28px;
}

.btn-revoke-confirm {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.btn-revoke-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Success page */
.revocation-details {
    margin: 24px 0;
}

.revocation-table {
    width: 100%;
    border-collapse: collapse;
}

.revocation-table tr {
    border-bottom: 1px solid #eee;
}

.revocation-table tr:last-child {
    border-bottom: none;
}

.revocation-table td {
    padding: 10px 8px;
    font-size: 0.95rem;
    color: #444;
}

.revocation-table td:first-child {
    white-space: nowrap;
    color: #666;
}

.revocation-email-notice {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    margin: 20px 0;
}

.revocation-email-notice p {
    margin: 0;
    color: #2e7d32;
    font-size: 0.9rem;
}

.revocation-email-warning {
    background: #fff3e0;
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    margin: 20px 0;
}

.revocation-email-warning p {
    margin: 0;
    color: #e65100;
    font-size: 0.9rem;
}

.revocation-back {
    text-align: center;
    margin-top: 24px;
}

.revocation-back .btn-link {
    color: #9c27b0;
    text-decoration: none;
    font-weight: 500;
}

.revocation-back .btn-link:hover {
    text-decoration: underline;
}
