/* Enhanced form styles for the popup */
.afriforum-member-content-form {
    margin: 70px 0 0 0;
}

.afriforum-member-content-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.afriforum-member-content-form input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.afriforum-member-content-form input:focus {
    border-color: #006938;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 105, 56, 0.2);
}

.afriforum-member-content-form input::placeholder {
    color: #aaa;
    font-style: italic;
}

.afriforum-member-content-form button {
    background: #006938;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.afriforum-member-content-form button:hover {
    background: #00562f;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.afriforum-member-content-form button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.afriforum-member-content-form button:disabled {
    background: #90c7b1;
    cursor: not-allowed;
    box-shadow: none;
}

/* Small hint text under form fields */
.field-hint {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}

/* Info text for scrolling popup - hidden as per request */
.afriforum-scroll-info {
    display: none;
}

@keyframes afriforum-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes afriforum-fade-in-out {
    0% { opacity: 0; transform: translateY(20px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* Close button for popup */
.afriforum-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(240, 240, 240, 0.8);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
    font-weight: bold;
}

.afriforum-popup-close:hover {
    background: #ddd;
    transform: rotate(90deg);
}

/* Improved popup container styling */
.afriforum-member-content-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: afriforum-popup-fade-in 0.3s ease;
}

@keyframes afriforum-popup-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.afriforum-popup-container {
    position: relative;
    background: white;
    padding: 70px 30px 0px 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: afriforum-popup-zoom-in 0.3s ease;
}

@keyframes afriforum-popup-zoom-in {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

.afriforum-popup-container h3 {
    margin-top: 0;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    color: #006938;
    text-align: center;
    font-size: 18px;
    margin-bottom: 0px;
    padding: 10px 0px;
    /* border-bottom: 1px solid #eee; */
}

/* Input validation feedback */
.input-feedback {
    margin-top: 5px;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    display: inline-block;
    transition: all 0.3s ease;
}

.error-feedback {
    color: #dc3545;
    background: #f8d7da;
}

.success-feedback {
    color: #28a745;
    background: #d4edda;
}

/* Show loading spinner for form submission */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: afriforum-spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes afriforum-spin {
    to { transform: rotate(360deg); }
}

/* Error and success messages */
.error-message {
    padding: 10px 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #dc3545;
}

.success-message {
    padding: 10px 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
}

.verification-message {
    padding: 10px 15px;
    background: #e2f3fd;
    color: #0c5460;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid #17a2b8;
    text-align: center;
}

/* Become member button */
.become-member-btn {
    display: inline-block;
    background: #fd7e14;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.become-member-btn:hover {
    background: #e56c07;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.become-member-btn:active {
    transform: translateY(1px);
}

.verification-actions {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.support-info {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Checkmark animation for success state */
.checkmark {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: afriforum-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #28a745;
    animation: afriforum-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes afriforum-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Enhanced styles for the verify button in the overlay */
.afriforum-verify-button {
    background: #006938;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s, transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    animation: afriforum-pulse 2s infinite;
}

@keyframes afriforum-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.afriforum-verify-button:hover {
    background: #00562f;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    animation: none;
}

.afriforum-verify-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Improved overlay message - hidden per request */
.afriforum-overlay-message {
    display: none;
}
