/**
 * UserInfo Manager - Frontend Styles
 * Isolated and namespaced to prevent theme/plugin conflicts
 * Version: 1.7.0 - Festive Edition
 *
 * Changelog v1.7.0:
 * - Added festive floating particles animation
 * - Enhanced form entrance animations with celebration effects
 * - Added shimmer and glow effects for festive atmosphere
 * - Celebratory confetti animations on form interaction
 */

/* ========================================
   GLASSMORPHISM DESIGN SYSTEM
   Modern, clean, and professional styling
   WITH FESTIVE ENHANCEMENTS
======================================== */

/* ========================================
   FESTIVE FLOATING PARTICLES ANIMATION
======================================== */
.userinfo-form-container::before {
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 100%
    ) !important;
    animation: festiveGradient 8s ease infinite !important;
}

@keyframes festiveGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Festive Particle Container */
.userinfo-form-container {
    overflow: visible !important;
}

/* Animated Particles */
.userinfo-form-container::after {
    animation: festiveShimmer 3s ease-in-out infinite !important;
}

@keyframes festiveShimmer {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3),
                    0 0 40px rgba(118, 75, 162, 0.2),
                    inset 0 0 60px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.5),
                    0 0 60px rgba(118, 75, 162, 0.4),
                    inset 0 0 80px rgba(255, 255, 255, 0.2);
    }
}

/* Animated Gradient Background - Submission Form */
.userinfo-form-container {
    position: relative !important;
    max-width: 650px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
}

.userinfo-form-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 100%
    ) !important;
    z-index: -2 !important;
}

.userinfo-form-container::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 18px !important;
    z-index: -1 !important;
}

/* Removed animation - using static vertical gradient for consistency */

/* Glass Form Wrapper */
.userinfo-form-container .userinfo-form {
    position: relative !important;
    z-index: 1 !important;
    padding: 24px !important;
    background: transparent !important;
}

/* Countdown Timer - Modern Floating Design with Animations */
.userinfo-countdown-container {
    max-width: 100% !important;
    margin: 0 auto 14px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.userinfo-countdown-container .countdown-title {
    text-align: center !important;
    color: #667eea !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-shadow: none !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.userinfo-countdown-container .countdown-timer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.userinfo-countdown-container .countdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    min-width: 62px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
                0 2px 8px rgba(118, 75, 162, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    animation: fadeInUp 0.6s ease backwards !important;
}

.userinfo-countdown-container .countdown-item:nth-child(1) {
    animation-delay: 0.1s !important;
}

.userinfo-countdown-container .countdown-item:nth-child(3) {
    animation-delay: 0.2s !important;
}

.userinfo-countdown-container .countdown-item:nth-child(5) {
    animation-delay: 0.3s !important;
}

.userinfo-countdown-container .countdown-item:nth-child(7) {
    animation-delay: 0.4s !important;
}

.userinfo-countdown-container .countdown-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.userinfo-countdown-container .countdown-item:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4),
                0 4px 12px rgba(118, 75, 162, 0.3) !important;
}

.userinfo-countdown-container .countdown-item:hover::before {
    opacity: 1 !important;
}

.userinfo-countdown-container .countdown-value {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: white !important;
    line-height: 1 !important;
    font-family: 'Courier New', 'Consolas', monospace !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    animation: pulse 2s ease-in-out infinite !important;
}

.userinfo-countdown-container .countdown-label {
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-top: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.userinfo-countdown-container .countdown-separator {
    font-size: 28px !important;
    font-weight: 300 !important;
    color: #667eea !important;
    padding: 0 4px !important;
    line-height: 1 !important;
    opacity: 0.6 !important;
}

/* Countdown Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Registration Closed Message */
.userinfo-form-closed {
    max-width: 650px !important;
    margin: 20px auto !important;
    padding: 40px 30px !important;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
    border-radius: 20px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(235, 51, 73, 0.3) !important;
}

.userinfo-form-closed .closed-icon {
    font-size: 64px !important;
    margin-bottom: 16px !important;
    animation: pulse 2s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.userinfo-form-closed .closed-title {
    color: white !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.userinfo-form-closed .closed-message {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Form Groups */
.userinfo-form-container .form-group {
    margin-bottom: 14px !important;
    position: relative !important;
    animation: festiveSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards !important;
}

/* Staggered animation delays for form groups */
.userinfo-form-container .form-group:nth-child(1) {
    animation-delay: 0.1s !important;
}

.userinfo-form-container .form-group:nth-child(2) {
    animation-delay: 0.2s !important;
}

.userinfo-form-container .form-group:nth-child(3) {
    animation-delay: 0.3s !important;
}

.userinfo-form-container .form-group:nth-child(4) {
    animation-delay: 0.4s !important;
}

.userinfo-form-container .form-group:nth-child(5) {
    animation-delay: 0.5s !important;
}

.userinfo-form-container .form-group:nth-child(6) {
    animation-delay: 0.6s !important;
}

.userinfo-form-container .form-group:nth-child(7) {
    animation-delay: 0.7s !important;
}

.userinfo-form-container .form-group:nth-child(8) {
    animation-delay: 0.8s !important;
}

@keyframes festiveSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    60% {
        transform: translateX(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.userinfo-form-container .form-group.full-width {
    width: 100% !important;
}

/* Labels */
.userinfo-form-container .form-group label {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

.userinfo-form-container .form-group label span[style*="color: red"] {
    color: #f5576c !important;
}

/* Field Error Messages - Red */
.userinfo-form-container .field-error,
.userinfo-check-container .field-error {
    display: none !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    color: #dc3545 !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    padding-left: 2px !important;
}

.userinfo-form-container .field-error::before,
.userinfo-check-container .field-error::before {
    content: "⚠ " !important;
    font-size: 12px !important;
    margin-right: 4px !important;
}

/* Form Group with Error */
.userinfo-form-container .form-group.has-error input,
.userinfo-check-container .form-group.has-error input {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
}

.userinfo-form-container .form-group.has-error input:focus,
.userinfo-check-container .form-group.has-error input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
}

/* Info Icon Tooltip */
.userinfo-form-container .info-icon {
    position: relative !important;
    display: inline-block !important;
    cursor: help !important;
    margin-left: 4px !important;
    font-size: 12px !important;
}

.userinfo-form-container .info-icon::after {
    content: attr(data-tooltip) !important;
    position: absolute !important;
    bottom: 125% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    z-index: 1000 !important;
}

.userinfo-form-container .info-icon:hover::after {
    opacity: 1 !important;
}

/* Input Fields - Enhanced Styling */
.userinfo-form-container .form-group input[type="text"],
.userinfo-form-container .form-group input[type="email"],
.userinfo-form-container .form-group input[type="tel"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.userinfo-form-container .form-group input[type="text"]:focus,
.userinfo-form-container .form-group input[type="email"]:focus,
.userinfo-form-container .form-group input[type="tel"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1),
                0 4px 12px rgba(102, 126, 234, 0.15) !important;
    transform: translateY(-1px) !important;
}

.userinfo-form-container .form-group input::placeholder {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Custom File Upload Styling - Simple & Compact */

/* Form group containing the upload - standard spacing */
.userinfo-form-container .form-group.full-width:has(.custom-file-upload-wrapper) {
    margin-bottom: 32px !important;
}

/* Fallback for browsers that don't support :has() */
.userinfo-form-container .form-group.full-width {
    margin-bottom: 28px !important;
}

.userinfo-form-container .custom-file-upload-wrapper {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}

.userinfo-form-container .hidden-file-input {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    left: -9999px !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Extra specificity to hide file input and its button */
.userinfo-form-container input[type="file"].hidden-file-input {
    display: none !important;
}

/* Hide all file input buttons across all browsers */
.userinfo-form-container input[type="file"]::-webkit-file-upload-button {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

.userinfo-form-container input[type="file"]::file-selector-button {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* Firefox specific */
.userinfo-form-container input[type="file"]::-moz-file-upload-button {
    display: none !important;
    visibility: hidden !important;
}

/* MS Edge/IE specific */
.userinfo-form-container input[type="file"]::-ms-browse {
    display: none !important;
    visibility: hidden !important;
}

.userinfo-form-container .custom-file-label {
    display: inline-block !important;
    padding: 12px 32px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

/* Remove any ::after pseudo-element */
.userinfo-form-container .custom-file-label::after {
    content: none !important;
    display: none !important;
}

.userinfo-form-container .custom-file-label:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Drag over state */
.userinfo-form-container .custom-file-label.dragover {
    background: #e8edff !important;
    border-color: #764ba2 !important;
    border-style: solid !important;
}

.userinfo-form-container .upload-icon {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
    color: white !important;
}

.userinfo-form-container .upload-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.userinfo-form-container .upload-text {
    display: inline-block !important;
    vertical-align: middle !important;
}

.userinfo-form-container .upload-title-bengali {
    display: inline-block !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: white !important;
    vertical-align: middle !important;
}

.userinfo-form-container .upload-title {
    display: none !important;
}

.userinfo-form-container .upload-subtitle {
    display: none !important;
}

.userinfo-form-container .upload-format {
    display: none !important;
}

/* Image Preview Container - Compact */
.userinfo-form-container .image-preview-container {
    display: none !important;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}

.userinfo-form-container .image-preview-container.active {
    display: block !important;
}

.userinfo-form-container .preview-inner {
    position: relative !important;
    padding: 12px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 2px solid #667eea !important;
    margin-bottom: 12px !important;
}

.userinfo-form-container .preview-inner img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    display: block !important;
}

.userinfo-form-container .remove-image-btn {
    position: relative !important;
    width: 100% !important;
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
}

.userinfo-form-container .remove-image-btn:hover {
    background: #c82333 !important;
}

.userinfo-form-container .remove-image-btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* Terms and Conditions Section - Below Submit Button */
.userinfo-form-container .userinfo-terms-section {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding: 16px !important;
    background: rgba(102, 126, 234, 0.05) !important;
    border-radius: 10px !important;
    border: 2px solid rgba(102, 126, 234, 0.15) !important;
}

.userinfo-form-container .userinfo-terms-title {
    color: #667eea !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2) !important;
    text-align: left !important;
}

.userinfo-form-container .userinfo-terms-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.userinfo-form-container .userinfo-term-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.userinfo-form-container .userinfo-term-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateX(2px) !important;
}

.userinfo-form-container .term-number {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.userinfo-form-container .term-text {
    flex: 1 !important;
    margin: 0 !important;
    color: #2d3748 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Submit Button Container - Minimal spacing */
.userinfo-form-container .form-group:has(button[type="submit"]) {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* Fallback for browsers that don't support :has() */
.userinfo-form-container .form-group:last-child {
    margin-top: 4px !important;
}

/* Submit Button - Glassmorphic Design with Festive Effects */
.userinfo-form-container .form-group button[type="submit"] {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-size: 200% 200% !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    font-family: inherit !important;
    display: block !important;
    margin-top: 0 !important;
    animation: festivePulseGlow 2s ease-in-out infinite, festiveSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s backwards !important;
}

/* Festive Button Glow Animation */
@keyframes festivePulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
                    0 0 20px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6),
                    0 0 40px rgba(118, 75, 162, 0.4);
    }
}

/* Celebratory Sparkle Effect */
.userinfo-form-container .form-group button[type="submit"]::before {
    content: '✨' !important;
    position: absolute !important;
    font-size: 20px !important;
    opacity: 0 !important;
    animation: festiveSparkle 3s ease-in-out infinite !important;
}

@keyframes festiveSparkle {
    0%, 100% {
        opacity: 0;
        left: -10%;
        top: 50%;
        transform: translateY(-50%) scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        left: 110%;
        top: 50%;
        transform: translateY(-50%) scale(1.5) rotate(360deg);
    }
}

.userinfo-form-container .form-group button[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6),
                0 0 50px rgba(118, 75, 162, 0.4) !important;
    background-position: 100% 0 !important;
}

.userinfo-form-container .form-group button[type="submit"]:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-form-container .form-group button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Ripple Effect */
.userinfo-form-container .ripple {
    position: absolute !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(0) !important;
    animation: userinfo-ripple-animation 0.6s ease-out !important;
    pointer-events: none !important;
}

@keyframes userinfo-ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success/Error Messages */
.userinfo-form-container .userinfo-success {
    background: rgba(212, 237, 218, 0.9) !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.userinfo-form-container .userinfo-errors {
    background: rgba(248, 215, 218, 0.9) !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.userinfo-form-container .userinfo-errors ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

.userinfo-form-container .userinfo-errors li {
    margin-bottom: 4px !important;
}

/* ========================================
   VERIFICATION FORM STYLES
======================================== */

.userinfo-check-container {
    position: relative !important;
    max-width: 600px !important;
    margin: 20px auto !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

.userinfo-check-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(
        180deg,
        #667eea 0%,
        #764ba2 100%
    ) !important;
    z-index: -2 !important;
}

.userinfo-check-container::after {
    content: '' !important;
    position: absolute !important;
    inset: 2px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 18px !important;
    z-index: -1 !important;
}

.userinfo-check-form-wrapper {
    position: relative !important;
    z-index: 1 !important;
    padding: 24px !important;
}

.userinfo-check-form-wrapper h2 {
    text-align: center !important;
    color: #1a202c !important;
    margin-bottom: 16px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.userinfo-check-form .form-group {
    margin-bottom: 14px !important;
}

.userinfo-check-form .form-group label {
    display: block !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 14px !important;
}

.userinfo-check-form .form-group label span[style*="color: #f5576c"] {
    color: #f5576c !important;
}

.userinfo-check-form .form-group input[type="text"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 2px solid rgba(102, 126, 234, 0.2) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #2d3748 !important;
    background: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.userinfo-check-form .form-group input[type="text"]:focus {
    outline: none !important;
    border-color: #667eea !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
}

.userinfo-check-form .form-group button {
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    font-family: inherit !important;
}

.userinfo-check-form .form-group button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.userinfo-check-form .form-group button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Check form button container spacing - Minimal */
.userinfo-check-form .form-group:last-child {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

.userinfo-check-form .loading-spinner {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top-color: white !important;
    border-radius: 50% !important;
    animation: userinfo-spin 0.6s linear infinite !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}

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

/* Verification Results */
#verification-result {
    margin-top: 24px !important;
    display: none;
}

.verification-success,
.verification-error {
    padding: 24px !important;
    border-radius: 12px !important;
    animation: userinfo-slideIn 0.3s ease-out !important;
}

.verification-success {
    background: rgba(212, 237, 218, 0.9) !important;
    border: 1px solid #c3e6cb !important;
}

.verification-success h3 {
    color: #155724 !important;
    margin: 0 0 20px 0 !important;
    font-size: 18px !important;
}

.verification-error {
    background: rgba(248, 215, 218, 0.9) !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
    font-size: 15px !important;
}

.user-detail {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
}

.user-detail:last-child {
    border-bottom: none !important;
}

.user-detail-label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    flex-shrink: 0 !important;
    min-width: 100px !important;
}

.user-detail-value {
    color: #4a5568 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: right !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.status-badge {
    display: inline-block !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
}

.status-badge.status-valid {
    background: #28a745 !important;
    color: white !important;
}

.status-badge.status-invalid {
    background: #dc3545 !important;
    color: white !important;
}

.nid-image-container {
    margin-top: 20px !important;
    text-align: center !important;
}

.nid-image-container img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

@keyframes userinfo-slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    /* Aggressive spacing reduction for mobile - fit on one screen */
    .userinfo-form-container,
    .userinfo-check-container {
        margin: 8px auto !important;
        border-radius: 12px !important;
    }

    .userinfo-form-container .userinfo-form,
    .userinfo-check-form-wrapper {
        padding: 14px !important;
    }

    /* Reduce form group spacing dramatically */
    .userinfo-form-container .form-group,
    .userinfo-check-form .form-group {
        margin-bottom: 10px !important;
    }

    /* Reduce label spacing */
    .userinfo-form-container .form-group label,
    .userinfo-check-form .form-group label {
        margin-bottom: 3px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    /* Compact input fields */
    .userinfo-form-container .form-group input,
    .userinfo-check-form .form-group input {
        font-size: 14px !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
    }

    /* Compact submit button */
    .userinfo-form-container .form-group button[type="submit"],
    .userinfo-check-form .form-group button {
        font-size: 14px !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
    }

    /* Minimal button container spacing - Mobile */
    .userinfo-form-container .form-group:has(button[type="submit"]),
    .userinfo-check-form .form-group:last-child {
        margin-top: 3px !important;
        margin-bottom: 0 !important;
    }

    /* Reduce heading size */
    .userinfo-check-form-wrapper h2 {
        font-size: 17px !important;
        margin-bottom: 10px !important;
    }

    /* Reduce field error spacing */
    .userinfo-form-container .field-error,
    .userinfo-check-container .field-error {
        margin-top: 3px !important;
        font-size: 11px !important;
    }

    /* Hide Bengali upload text on mobile */
    .userinfo-form-container .upload-title-bengali {
        display: none !important;
    }

    /* Terms Section - Mobile */
    .userinfo-form-container .userinfo-terms-section {
        margin-top: 12px !important;
        margin-bottom: 10px !important;
        padding: 12px !important;
    }

    .userinfo-form-container .userinfo-terms-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }

    .userinfo-form-container .userinfo-terms-list {
        gap: 8px !important;
    }

    .userinfo-form-container .userinfo-term-item {
        padding: 8px !important;
        gap: 8px !important;
    }

    .userinfo-form-container .term-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }

    .userinfo-form-container .term-text {
        font-size: 12px !important;
    }

    /* Verification Result Responsive Fixes */
    .verification-success,
    .verification-error {
        padding: 16px !important;
    }

    .user-detail {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px 0 !important;
        gap: 4px !important;
    }

    .user-detail-label {
        min-width: auto !important;
        margin-bottom: 4px !important;
    }

    .user-detail-value {
        text-align: left !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    .verification-success h3 {
        font-size: 16px !important;
    }

    .nid-image-container {
        padding: 12px 0 !important;
    }

    .nid-image-container img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Countdown - Mobile (Tablet/Phone) */
    .userinfo-countdown-container {
        padding: 12px 14px !important;
        margin-bottom: 14px !important;
        max-width: 480px !important;
    }

    .userinfo-countdown-container .countdown-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .userinfo-countdown-container .countdown-timer {
        gap: 5px !important;
    }

    .userinfo-countdown-container .countdown-item {
        padding: 7px 10px !important;
        min-width: 52px !important;
        border-radius: 8px !important;
    }

    .userinfo-countdown-container .countdown-value {
        font-size: 24px !important;
    }

    .userinfo-countdown-container .countdown-label {
        font-size: 9px !important;
        margin-top: 2px !important;
    }

    .userinfo-countdown-container .countdown-separator {
        font-size: 20px !important;
        padding: 0 1px !important;
    }

    /* Closed Message - Mobile */
    .userinfo-form-closed {
        padding: 30px 20px !important;
        margin: 16px auto !important;
    }

    .userinfo-form-closed .closed-icon {
        font-size: 56px !important;
        margin-bottom: 12px !important;
    }

    .userinfo-form-closed .closed-title {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    .userinfo-form-closed .closed-message {
        font-size: 15px !important;
    }

    /* Keep title and countdown on same line on mobile - Minimal */
    .userinfo-title-countdown-wrapper {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .userinfo-title-countdown-wrapper .userinfo-registration-title h2 {
        font-size: 18px !important;
    }

    .userinfo-title-countdown-wrapper .userinfo-countdown-header {
        padding: 6px 10px !important;
        border-width: 1.5px !important;
        gap: 4px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-text {
        font-size: 9px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-timer-row {
        gap: 4px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-value {
        font-size: 16px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-label {
        font-size: 7px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-separator {
        font-size: 14px !important;
    }
}

/* Extra compact mode for small mobile devices */
@media (max-width: 480px) {
    /* Ultra-compact container */
    .userinfo-form-container,
    .userinfo-check-container {
        margin: 4px auto !important;
        border-radius: 10px !important;
    }

    /* Minimal padding */
    .userinfo-form-container .userinfo-form,
    .userinfo-check-form-wrapper {
        padding: 10px !important;
    }

    /* Minimal form group spacing */
    .userinfo-form-container .form-group,
    .userinfo-check-form .form-group {
        margin-bottom: 7px !important;
    }

    /* Ultra-compact labels */
    .userinfo-form-container .form-group label,
    .userinfo-check-form .form-group label {
        margin-bottom: 2px !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    /* Ultra-compact inputs */
    .userinfo-form-container .form-group input,
    .userinfo-check-form .form-group input {
        font-size: 13px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
    }

    /* Ultra-compact button */
    .userinfo-form-container .form-group button[type="submit"],
    .userinfo-check-form .form-group button {
        font-size: 13px !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
    }

    /* Minimal button spacing - Extra Small Mobile */
    .userinfo-form-container .form-group:has(button[type="submit"]),
    .userinfo-check-form .form-group:last-child {
        margin-top: 2px !important;
    }

    /* Smaller heading */
    .userinfo-check-form-wrapper h2 {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    /* Minimal error message spacing */
    .userinfo-form-container .field-error,
    .userinfo-check-container .field-error {
        margin-top: 2px !important;
        font-size: 10px !important;
    }

    /* Compact verification results */
    .verification-success,
    .verification-error {
        padding: 12px !important;
    }

    .user-detail {
        padding: 8px 0 !important;
    }

    /* Countdown - Extra Small Mobile (Ultra Compact) */
    .userinfo-countdown-container {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        max-width: 100% !important;
    }

    .userinfo-countdown-container .countdown-title {
        font-size: 13px !important;
        margin-bottom: 7px !important;
    }

    .userinfo-countdown-container .countdown-timer {
        gap: 4px !important;
        flex-wrap: nowrap !important;
    }

    .userinfo-countdown-container .countdown-item {
        padding: 6px 8px !important;
        min-width: 46px !important;
        border-radius: 7px !important;
    }

    .userinfo-countdown-container .countdown-value {
        font-size: 20px !important;
    }

    .userinfo-countdown-container .countdown-label {
        font-size: 8px !important;
        margin-top: 2px !important;
    }

    .userinfo-countdown-container .countdown-separator {
        font-size: 16px !important;
        padding: 0 1px !important;
    }

    /* Remove hover effect on small mobile for better touch experience */
    .userinfo-countdown-container .countdown-item:hover {
        transform: none !important;
    }

    /* Closed Message - Extra Small Mobile */
    .userinfo-form-closed {
        padding: 24px 16px !important;
        margin: 12px auto !important;
    }

    .userinfo-form-closed .closed-icon {
        font-size: 48px !important;
        margin-bottom: 10px !important;
    }

    .userinfo-form-closed .closed-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .userinfo-form-closed .closed-message {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    /* Terms Section - Extra Small Mobile */
    .userinfo-form-container .userinfo-terms-section {
        margin-top: 10px !important;
        margin-bottom: 8px !important;
        padding: 10px !important;
    }

    .userinfo-form-container .userinfo-terms-title {
        font-size: 13px !important;
        margin-bottom: 6px !important;
        padding-bottom: 5px !important;
    }

    .userinfo-form-container .userinfo-terms-list {
        gap: 6px !important;
    }

    .userinfo-form-container .userinfo-term-item {
        padding: 6px !important;
        gap: 6px !important;
    }

    .userinfo-form-container .term-number {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }

    .userinfo-form-container .term-text {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }

    /* Extra compact title and countdown for small mobile - Minimal */
    .userinfo-title-countdown-wrapper {
        gap: 6px !important;
    }

    .userinfo-title-countdown-wrapper .userinfo-registration-title h2 {
        font-size: 16px !important;
    }

    .userinfo-title-countdown-wrapper .userinfo-countdown-header {
        padding: 5px 8px !important;
        border-width: 1.5px !important;
        gap: 3px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-text {
        font-size: 8px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-timer-row {
        gap: 3px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-value {
        font-size: 14px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-label {
        font-size: 6px !important;
    }

    .userinfo-title-countdown-wrapper .countdown-separator {
        font-size: 12px !important;
    }
}

/* Ensure no conflicts with WordPress admin styles */
body:not(.wp-admin) .userinfo-form-container *,
body:not(.wp-admin) .userinfo-check-container * {
    box-sizing: border-box !important;
}

/* Hide WordPress block elements that may appear after forms */
.userinfo-form-container + .wp-block-quote,
.userinfo-form-container + blockquote,
.userinfo-check-container + .wp-block-quote,
.userinfo-check-container + blockquote {
    display: none !important;
}

/* Hide empty WordPress block elements */
.wp-block-quote.is-layout-flow:empty,
blockquote.wp-block-quote:empty {
    display: none !important;
}

/* ========================================
   MODAL STYLES
======================================== */

/* Modal Overlay */
.userinfo-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.userinfo-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: userinfo-fadeIn 0.3s ease !important;
    padding: 20px !important;
}

.userinfo-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 0 !important;
}

/* Modal Dialog Container */
.modal-dialog {
    position: relative !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: auto !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Modal Content */
.userinfo-modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 420px !important;
    pointer-events: auto !important;
    background: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
    animation: userinfo-fadeIn 0.4s ease !important;
    margin: auto !important;
}

/* Close Button */
.userinfo-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    color: #999 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    z-index: 20 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}

.userinfo-modal-close:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
}

/* Modal Icon */
.userinfo-modal-icon {
    margin: 0 auto 16px !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
    font-weight: bold !important;
}

.userinfo-modal-icon-success,
.userinfo-modal-icon-error {
    display: none !important;
}

.userinfo-modal.success .userinfo-modal-icon {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(17, 153, 142, 0.4) !important;
}

.userinfo-modal.success .userinfo-modal-icon-success {
    display: block !important;
    animation: userinfo-successPop 0.5s ease 0.2s backwards !important;
}

.userinfo-modal.error .userinfo-modal-icon {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(235, 51, 73, 0.4) !important;
}

.userinfo-modal.error .userinfo-modal-icon-error {
    display: block !important;
    animation: userinfo-errorShake 0.5s ease 0.2s backwards !important;
}

/* Modal Title */
.userinfo-modal-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 12px !important;
    line-height: 1.3 !important;
}

/* Modal Body */
.userinfo-modal-body {
    font-size: 15px !important;
    color: #4a5568 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

.userinfo-modal-body strong {
    color: #1a202c !important;
    font-weight: 600 !important;
}

/* Registration ID Display */
.userinfo-registration-id-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    margin: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-registration-id-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    opacity: 0.9 !important;
    margin-bottom: 4px !important;
}

.userinfo-registration-id-value {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    font-family: 'Courier New', monospace !important;
}

/* Modal Button */
.userinfo-modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 10px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.userinfo-modal-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.userinfo-modal-btn:active {
    transform: translateY(0) !important;
}

/* Modal Animations */
@keyframes userinfo-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes userinfo-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes userinfo-slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes userinfo-successPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes userinfo-errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Mobile Modal Styles - Tablet and below */
@media (max-width: 768px) {
    .userinfo-modal.show {
        padding: 15px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-dialog {
        width: 100% !important;
        max-width: calc(100% - 30px) !important;
        margin: auto !important;
    }

    .modal-dialog-centered {
        width: 100% !important;
    }

    .userinfo-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 30px) !important;
        padding: 20px 16px !important;
        margin: auto !important;
        border-radius: 12px !important;
    }

    .userinfo-modal-icon {
        width: 56px !important;
        height: 56px !important;
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }

    .userinfo-modal-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        padding-right: 30px !important;
    }

    .userinfo-modal-body {
        font-size: 14px !important;
        margin-bottom: 16px !important;
        line-height: 1.6 !important;
    }

    .userinfo-registration-id-box {
        padding: 10px 12px !important;
        margin: 10px 0 !important;
    }

    .userinfo-registration-id-label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
    }

    .userinfo-registration-id-value {
        font-size: 20px !important;
        word-break: break-all !important;
    }

    .userinfo-modal-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    .userinfo-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 24px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .userinfo-modal.show {
        padding: 10px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-dialog {
        width: 100% !important;
        max-width: calc(100% - 20px) !important;
        margin: auto !important;
    }

    .modal-dialog-centered {
        width: 100% !important;
    }

    .userinfo-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 20px) !important;
        padding: 18px 14px !important;
        margin: auto !important;
        border-radius: 10px !important;
    }

    .userinfo-modal-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .userinfo-modal-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        padding-right: 28px !important;
    }

    .userinfo-modal-body {
        font-size: 13px !important;
        margin-bottom: 14px !important;
    }

    .userinfo-registration-id-box {
        padding: 8px 10px !important;
        margin: 8px 0 !important;
    }

    .userinfo-registration-id-label {
        font-size: 9px !important;
        margin-bottom: 2px !important;
    }

    .userinfo-registration-id-value {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }

    .userinfo-modal-btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    .userinfo-modal-close {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 22px !important;
    }
}

/* ========================================
   FESTIVE FLOATING DECORATIVE ELEMENTS
   Confetti and particle effects
======================================== */

/* Festive Particles Container */
.userinfo-form-container {
    position: relative !important;
}

/* Create floating particles using pseudo-elements */
.userinfo-registration-title::before,
.userinfo-registration-title::after,
.userinfo-welcome-message::before,
.userinfo-welcome-message::after {
    content: '✨' !important;
    position: absolute !important;
    font-size: 24px !important;
    animation: festiveFloat 4s ease-in-out infinite !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.userinfo-registration-title {
    position: relative !important;
}

.userinfo-welcome-message {
    position: relative !important;
}

.userinfo-registration-title::before {
    left: -30px !important;
    top: 0 !important;
    animation-delay: 0s !important;
}

.userinfo-registration-title::after {
    right: -30px !important;
    top: 0 !important;
    animation-delay: 2s !important;
}

.userinfo-welcome-message::before {
    left: 10px !important;
    top: -20px !important;
    animation-delay: 1s !important;
    content: '🎉' !important;
}

.userinfo-welcome-message::after {
    right: 10px !important;
    top: -20px !important;
    animation-delay: 3s !important;
    content: '🎊' !important;
}

/* ========================================
   TITLE AND COUNTDOWN SIDE-BY-SIDE LAYOUT
======================================== */
.userinfo-title-countdown-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 15px !important;
    flex-wrap: nowrap !important;
}

/* Adjust title to not take full width */
.userinfo-title-countdown-wrapper .userinfo-registration-title {
    flex: 0 1 auto !important;
    margin: 0 !important;
}

.userinfo-title-countdown-wrapper .userinfo-registration-title h2 {
    margin: 0 !important;
}

/* Compact countdown for inline display - Minimal with Border */
.userinfo-title-countdown-wrapper .userinfo-countdown-header {
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 2px solid !important;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1 !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Countdown Text "সময় বাকি" - Positioned at Top/Center */
.userinfo-title-countdown-wrapper .countdown-text {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #667eea !important;
    opacity: 0.9 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

/* Countdown Timer Row (holds all countdown groups) */
.userinfo-title-countdown-wrapper .countdown-timer-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Countdown Group (wraps value + label) */
.userinfo-title-countdown-wrapper .countdown-group {
    display: flex;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1px !important;
}

/* Hide ALL countdown groups initially, JavaScript will show the correct ones based on days value */
.userinfo-title-countdown-wrapper #countdown-group-days,
.userinfo-title-countdown-wrapper #countdown-group-hours,
.userinfo-title-countdown-wrapper #countdown-group-minutes,
.userinfo-title-countdown-wrapper #countdown-group-seconds,
.userinfo-title-countdown-wrapper #separator-1,
.userinfo-title-countdown-wrapper #separator-2,
.userinfo-title-countdown-wrapper #separator-3 {
    display: none;
}

/* Countdown Values (Days, Hours, Minutes, Seconds) - Made Smaller */
.userinfo-title-countdown-wrapper .countdown-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-family: 'Courier New', monospace !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    padding: 1px 0 !important;
    animation: countdownPulse 2s ease-in-out infinite !important;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Countdown Labels (দিন, ঘণ্টা, মিনিট, সেকেন্ড) - Made Smaller */
.userinfo-title-countdown-wrapper .countdown-label {
    font-size: 8px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
    padding: 1px 0 !important;
    animation: labelFade 3s ease-in-out infinite !important;
}

/* Countdown Separator (:) - Made Smaller */
.userinfo-title-countdown-wrapper .countdown-separator {
    font-size: 16px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 1px !important;
}

@keyframes labelFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes festiveFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.8;
    }
}

/* Confetti Effect on Form Focus */
.userinfo-form-container .form-group input:focus,
.userinfo-form-container .form-group select:focus,
.userinfo-form-container .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2),
                0 4px 15px rgba(102, 126, 234, 0.15),
                0 0 30px rgba(102, 126, 234, 0.1) !important;
    animation: festiveInputGlow 0.5s ease !important;
}

@keyframes festiveInputGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Festive Title Animations */
.userinfo-registration-title h2 {
    animation: festiveSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
}

.userinfo-welcome-message p {
    animation: festiveSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards !important;
}

/* Festive Success/Error Messages */
.userinfo-success {
    animation: festiveSuccessPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    overflow: visible !important;
}

.userinfo-success::before {
    content: '🎉' !important;
    position: absolute !important;
    left: -35px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 28px !important;
    animation: festiveRotate 2s ease-in-out infinite !important;
}

@keyframes festiveSuccessPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    60% {
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes festiveRotate {
    0%, 100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-50%) rotate(-10deg) scale(1.1);
    }
    50% {
        transform: translateY(-50%) rotate(10deg) scale(1.2);
    }
    75% {
        transform: translateY(-50%) rotate(-5deg) scale(1.1);
    }
}

/* Festive Countdown Enhancement */
.userinfo-countdown-container {
    animation: festiveSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Add celebratory sparkles around the form */
@media (min-width: 768px) {
    .userinfo-form-container::before {
        box-shadow: 0 0 100px rgba(102, 126, 234, 0.3),
                    0 0 200px rgba(118, 75, 162, 0.2) !important;
    }
}

/* Mobile - reduce particle effects for performance */
@media (max-width: 767px) {
    .userinfo-registration-title::before,
    .userinfo-registration-title::after,
    .userinfo-welcome-message::before,
    .userinfo-welcome-message::after {
        display: none !important;
    }

    .userinfo-success::before {
        display: none !important;
    }
}

/* ========================================
   JAVASCRIPT-POWERED CONFETTI EFFECTS
======================================== */

/* Confetti Container */
.festive-confetti-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    overflow: hidden !important;
}

/* Individual Confetti Piece */
.festive-confetti {
    position: absolute !important;
    top: -10px !important;
    border-radius: 50% !important;
    opacity: 0.9 !important;
    animation: confettiFall linear forwards !important;
    pointer-events: none !important;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        transform: translateX(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        top: 100vh;
        transform: translateX(100px) rotateZ(720deg);
        opacity: 0;
    }
}

/* Floating Particles (JavaScript-powered) */
.festive-floating-particle {
    position: absolute !important;
    font-size: 20px !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    animation: particleFloat linear infinite !important;
    z-index: 1 !important;
}

@keyframes particleFloat {
    0% {
        bottom: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: calc(100% + 50px);
        transform: translateX(30px) rotate(360deg);
        opacity: 0;
    }
}

/* Festive Glow Effect for Input Focus */
.userinfo-form-container .form-group input:focus::placeholder,
.userinfo-form-container .form-group select:focus::placeholder,
.userinfo-form-container .form-group textarea:focus::placeholder {
    color: rgba(102, 126, 234, 0.5) !important;
}

/* Enhanced Festive Border Animation */
@keyframes festiveBorderGlow {
    0%, 100% {
        border-color: rgba(102, 126, 234, 0.3);
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
    }
    50% {
        border-color: rgba(118, 75, 162, 0.5);
        box-shadow: 0 0 15px rgba(118, 75, 162, 0.4);
    }
}

/* Apply to form container for overall festive feel */
.userinfo-form-container {
    animation: festiveBorderGlow 4s ease-in-out infinite !important;
}
