/**
 * Modal Styles
 * Popup, E-Mail-Confirm, Health Notice, Impressum, Datenschutz
 */

/* ==========================================================================
   Impressum & Datenschutz Modal (Florales Design)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 55, 45, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    position: relative;
    background: linear-gradient(145deg, #fdfcfa 0%, #f8f4ed 100%);
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(90, 115, 96, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Floraler Hintergrund mit Logo */
.modal::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background-image: url('../../images/logo_background.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* Florale Dekoration Ecken */
.modal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(90, 115, 96, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(201, 165, 90, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Modal Header */
.modal-header {
    position: relative;
    background: linear-gradient(135deg, #5a7360 0%, #6d8a73 100%);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 80 Q20 60 15 40 Q25 50 35 35 Q30 55 40 60 Q25 65 20 80' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='15' cy='38' r='2' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E") no-repeat left center,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M90 80 Q80 60 85 40 Q75 50 65 35 Q70 55 60 60 Q75 65 80 80' stroke='%23ffffff' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='85' cy='38' r='2' fill='%23ffffff' opacity='0.08'/%3E%3C/svg%3E") no-repeat right center;
    background-size: 80px 80px;
    pointer-events: none;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(201, 165, 90, 0.5), transparent);
}

.modal-header h2 {
    color: white;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cpolyline points='10 9 9 9 8 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

/* Close Button */
.modal-close {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

/* Modal Header Actions (Button-Gruppe rechts) */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Consent Reset Button */
.consent-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: inherit;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.consent-reset-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.consent-reset-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.consent-reset-btn:hover svg {
    opacity: 1;
}

.consent-reset-btn.consent-reset-done {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

@media (max-width: 600px) {
    .consent-reset-btn span {
        display: none;
    }
    .consent-reset-btn {
        padding: 6px 8px;
        border-radius: 50%;
    }
}

/* E-Mail-Obfuscation */
.ep em {
    font-style: normal;
    color: var(--text-muted, #888);
    font-size: 0.9em;
}
.ep a {
    color: inherit;
    text-decoration: underline;
}
.ep a:hover {
    opacity: 0.8;
}

/* Modal Body */
.modal-body {
    position: relative;
    padding: 30px 35px;
    overflow-y: auto;
    flex: 1;
    z-index: 1;
    background: transparent;
}

/* Scrollbar styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(90, 115, 96, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(90, 115, 96, 0.2);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 115, 96, 0.3);
}

/* Typography in Modal */
.modal-body h3 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #5a7360;
    font-size: 1.15rem;
    font-weight: normal;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(90, 115, 96, 0.15);
    position: relative;
}

.modal-body h3::before {
    content: '❧';
    margin-right: 10px;
    color: #c9a55a;
    font-size: 0.9em;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #4a5b4e;
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
}

.modal-body p {
    color: #4a5548;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 14px;
}

.modal-body ul {
    color: #4a5548;
    margin: 0 0 14px;
    padding-left: 20px;
}

.modal-body li {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 6px;
    position: relative;
}

.modal-body li::marker {
    color: #5a7360;
}

.modal-body a {
    color: #5a7360;
    text-decoration: none;
    border-bottom: 1px dotted #5a7360;
    transition: all 0.2s ease;
}

.modal-body a:hover {
    color: #c9a55a;
    border-bottom-color: #c9a55a;
}

.modal-body strong {
    color: #3d4a3f;
    font-weight: 600;
}

.modal-body small {
    color: #6a7a6d;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal {
        max-height: 92vh;
        border-radius: 16px;
    }

    .modal::before {
        width: 280px;
        height: 280px;
        opacity: 0.06;
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-header h2::before {
        width: 28px;
        height: 28px;
        background-size: 16px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 1.05rem;
        margin: 22px 0 12px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modal-header h2::before {
        display: none;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
}

/* Florale SVG Dekorationen */
.modal-flora {
    position: absolute;
    width: 80px;
    height: 80px;
    color: #5a7360;
    opacity: 0.2;
    pointer-events: none;
    z-index: 2;
}

.modal-flora-tl {
    top: -10px;
    left: -10px;
}

.modal-flora-br {
    bottom: -10px;
    right: -10px;
}

/* ==========================================================================
   Confirmation Popup (Double-Opt-In)
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.popup-content {
    background: #fff;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupIn 0.3s ease-out;
    margin: auto;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.popup-content h2 {
    color: #5a6b5e;
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.popup-main {
    font-size: 1rem;
    color: #4a5548;
    margin-bottom: 1rem;
}

.popup-steps {
    background: linear-gradient(135deg, #f0f4f1 0%, #e8ece9 100%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.popup-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    color: #4a5548;
    font-size: 0.9rem;
}

.popup-step:not(:last-child) {
    border-bottom: 1px dashed #ccc;
}

.step-number {
    background: #5a6b5e;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.popup-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #856404;
    text-align: left;
}

.popup-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.popup-btn {
    background: linear-gradient(135deg, #5a6b5e 0%, #4a5b4e 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.popup-btn:hover {
    background: linear-gradient(135deg, #4a5b4e 0%, #3a4b3e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 107, 94, 0.3);
}

/* ==========================================================================
   E-Mail Confirmation Modal
   ========================================================================== */

.email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(55, 65, 60, 0.95);
}

.email-modal-overlay.active {
    display: flex;
}

.email-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.email-modal-box {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 380px;
    width: calc(100% - 2rem);
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: emailModalSlideIn 0.3s ease;
    z-index: 1;
}

@keyframes emailModalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.email-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #999;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.email-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.email-modal-content {
    padding: 1.25rem;
}

.email-modal-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.email-confirm-desc {
    color: #666;
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

/* E-Mail exists notice */
.email-exists-notice {
    background: #e7f3ff;
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #004085;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.email-exists-notice > span:first-child {
    font-size: 1rem;
}

.notice-portal-link {
    color: #004085;
    font-weight: 600;
    text-decoration: underline;
}

.exists-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    cursor: pointer;
    white-space: nowrap;
}

.exists-checkbox input {
    margin: 0;
}

.exists-checkbox span {
    font-size: 0.75rem;
}

/* Input fields */
.email-confirm-input-group {
    margin-bottom: 0.75rem;
}

.email-confirm-input-group label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.email-confirm-input-group input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fff;
}

.email-confirm-input-group input:focus {
    outline: none;
    border-color: #7c9885;
}

.email-confirm-input-group input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Captcha */
.email-captcha-group {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    text-align: center;
}

.email-captcha-group label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.captcha-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.captcha-code-box {
    position: relative;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
}

.captcha-code {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    color: #444;
    font-style: italic;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.captcha-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
    pointer-events: none;
}

.captcha-arrow {
    color: #888;
    font-size: 1.25rem;
    padding: 0 0.5rem;
    letter-spacing: 0.1rem;
}

.email-captcha-group input {
    width: 110px;
    padding: 0.5rem 0.75rem;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.25rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    background: #fff;
    text-transform: uppercase;
}

.email-captcha-group input:focus {
    outline: none;
    border-color: #7c9885;
}

.email-captcha-group input.error {
    border-color: #dc3545;
}

/* Error */
.email-confirm-error {
    background: #fff3cd;
    color: #856404;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

/* Buttons */
.email-confirm-actions {
    display: flex;
    gap: 0.625rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.email-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

.email-btn-outline {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.email-btn-outline:hover {
    background: #f5f5f5;
}

.email-btn-primary {
    background: #7c9885;
    color: #ffffff;
    border: none;
}

.email-btn-primary:hover {
    background: #6b8a74;
}

/* ==========================================================================
   Health Data Notice
   ========================================================================== */

.health-data-notice {
    background: linear-gradient(135deg, #f8f4e8 0%, #faf6ed 100%);
    border: 1px solid #e6dcc6;
    border-left: 3px solid #5a7360;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.health-data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    user-select: none;
}

.health-data-header:hover {
    background: rgba(90, 115, 96, 0.05);
}

.health-data-header strong {
    color: #5a7360;
    font-size: 0.85rem;
}

.health-data-toggle {
    color: #5a7360;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.health-data-notice.collapsed .health-data-toggle {
    transform: rotate(-90deg);
}

.health-data-content {
    padding: 0 0.75rem 0.5rem;
    max-height: 300px;
    opacity: 1;
    transition: all 0.3s ease;
}

.health-data-notice.collapsed .health-data-content {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
}

.health-data-content p {
    margin: 0 0 0.5rem 0;
    color: #5c5c4a;
    font-size: 0.8rem;
    line-height: 1.4;
}

.health-data-btn {
    background: linear-gradient(135deg, #5a7360 0%, #6d8a73 100%);
    color: white;
    border: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(90, 115, 96, 0.2);
}

.health-data-btn:hover {
    background: linear-gradient(135deg, #6d8a73 0%, #7a9a80 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 115, 96, 0.3);
}

/* ==========================================================================
   Cookie-Details Tabelle
   ========================================================================== */

.cookie-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 0.9rem;
}

.cookie-details-table thead th {
    background: rgba(90, 115, 96, 0.1);
    color: #3d4a3f;
    font-weight: 600;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(90, 115, 96, 0.2);
}

.cookie-details-table thead th:first-child {
    border-radius: 6px 0 0 0;
}

.cookie-details-table thead th:last-child {
    border-radius: 0 6px 0 0;
}

.cookie-details-table tbody td {
    padding: 10px 12px;
    color: #4a5548;
    border-bottom: 1px solid rgba(90, 115, 96, 0.08);
    vertical-align: top;
    line-height: 1.5;
}

.cookie-details-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-details-table tbody tr:hover {
    background: rgba(90, 115, 96, 0.03);
}

.cookie-details-table code {
    background: rgba(90, 115, 96, 0.08);
    color: #5a7360;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-details-table {
        font-size: 0.82rem;
    }

    .cookie-details-table thead th,
    .cookie-details-table tbody td {
        padding: 8px 8px;
    }

    /* Auf kleinen Bildschirmen: Tabelle horizontal scrollbar */
    .modal-body .cookie-details-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .popup-overlay { padding: 0.5rem; }
    .popup-content { padding: 1.25rem; border-radius: 12px; }
    .popup-content h2 { font-size: 1.3rem; }
    .popup-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }
    .popup-main { font-size: 0.95rem; margin-bottom: 0.75rem; }
    .popup-steps { padding: 0.6rem 0.8rem; margin-bottom: 0.75rem; }
    .popup-step { font-size: 0.85rem; padding: 0.35rem 0; gap: 0.5rem; }
    .step-number { width: 20px; height: 20px; font-size: 0.7rem; }
    .popup-warning { padding: 0.6rem; font-size: 0.8rem; margin-bottom: 0.6rem; }
    .popup-hint { font-size: 0.8rem; margin-bottom: 0.75rem; }
    .popup-btn { padding: 0.75rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 400px) {
    .email-modal-content {
        padding: 1rem;
    }
    .captcha-display {
        display: block;
        margin-bottom: 0.5rem;
    }
}
