/* Modern Investment Education Landing Page 2026 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
}

/* Modern Input Styles */
.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.modern-input option {
    background: #1e293b;
    color: white;
}

/* Animation for modal */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out;
}

/* Modern Button Styles */
.modern-button {
    position: relative;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.modern-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modern-button:hover::before {
    left: 100%;
}

.modern-button-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

.modern-button-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Form input focus effects */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f9fafb;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10b981, #059669);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #059669, #047857);
}

/* Loading spinner for form submission */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

/* Chat Widget Styles */
#chatMessages {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 #1e293b;
}

#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #1e293b;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 3px;
}

.chat-option-btn {
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    color: #1f2937;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.chat-option-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #chatWindow {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    #chatWindow {
        width: calc(100vw - 2rem);
        height: 400px;
        right: 1rem;
        left: 1rem;
    }
    
    #chatWidget {
        bottom: 1rem;
        right: 1rem;
    }
    
    /* Header mobile improvements */
    header {
        padding: 0.75rem 0;
    }
    
    header .container {
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    /* Mobile header optimization */
    header {
        padding: 0.5rem 0;
    }
    
    header .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .modern-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-4xl {
        font-size: 1.5rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
button:focus, a:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CTA Button Legacy Support */
.cta-button {
    cursor: pointer;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.25rem;
}

/* ========================================
   COOKIE CONSENT BANNER STYLES
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 600px;
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cookie-content {
    padding: 24px;
}

.cookie-text {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.cookie-emoji {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.cookie-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn-customize {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-customize:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cookie-btn-accept {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Cookie Details (Expandable) */
.cookie-details {
    border-top: 1px solid #f3f4f6;
    padding: 20px 24px 24px;
    background: #fafafa;
}

.cookie-details.hidden {
    display: none;
}

.cookie-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.cookie-option-item:last-of-type {
    border-bottom: none;
}

.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-option-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cookie-option-help {
    font-size: 12px;
    color: #9ca3af;
}

.cookie-option-required {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #10b981;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #10b981;
    cursor: not-allowed;
}

/* Detail Actions */
.cookie-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cookie-btn-reject,
.cookie-btn-save {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-reject {
    background: white;
    border: 1.5px solid #e5e7eb;
    color: #374151;
}

.cookie-btn-reject:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.cookie-btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.cookie-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Cookie Settings FAB */
.cookie-settings-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 9998;
}

.cookie-settings-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cookie-settings-fab.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
    }
    
    .cookie-content {
        padding: 20px;
    }
    
    .cookie-text {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .cookie-emoji {
        font-size: 28px;
    }
    
    .cookie-heading {
        font-size: 16px;
    }
    
    .cookie-desc {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-details {
        padding: 16px 20px 20px;
    }
    
    .cookie-detail-actions {
        flex-direction: column;
    }
    
    .cookie-settings-fab {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 16px;
        left: 16px;
    }
}
