/* --- DARK MODE --- */
body.dark-theme {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}
body.dark-theme .contact-card,
body.dark-theme .trust-seo-block,
body.dark-theme .usp-glass-pill,
body.dark-theme header,
body.dark-theme .mobile-nav-content,
body.dark-theme .glass-service-link,
body.dark-theme .category-card,
body.dark-theme footer {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
body.dark-theme .form-control,
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    background-color: #0f172a !important;
    color: #fff !important;
    border-color: #334155 !important;
}
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, body.dark-theme h4, body.dark-theme h5 {
    color: #fff !important;
}
body.dark-theme p, body.dark-theme li, body.dark-theme span {
    color: #cbd5e1;
}
body.dark-theme .finance-block {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
}

/* Dark Mode Toggle Button */
.theme-toggle-btn {
    background: rgba(30, 58, 138, 0.1);
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
    margin-right: 15px;
}
body.dark-theme .theme-toggle-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.d-none-mobile { display: inline; font-size: 0.8rem; }
@media(max-width:768px) { .d-none-mobile { display: none; } .theme-toggle-btn { padding: 6px 10px; margin-right: 10px; } }

/* --- MULTI-STEP FORM --- */
.ms-form-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    padding: 10px 0;
}
.ms-step {
    display: none;
    animation: fadeInStep 0.4s ease-out forwards;
}
.ms-step.active {
    display: block;
}
@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
.ms-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}
.ms-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}
body.dark-theme .ms-progress::before { background: #334155; }
.ms-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    z-index: 2;
    transform: translateY(-50%);
    transition: width 0.4s ease;
    width: 0%;
}
.ms-dot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #94a3b8;
    transition: all 0.3s;
}
body.dark-theme .ms-dot { background: #1e293b; border-color: #334155; }
.ms-dot.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(30,58,138,0.2);
}
.ms-dot.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.ms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.ms-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}
.ms-card:hover, .ms-card.selected {
    border-color: var(--color-primary);
    background: rgba(30, 58, 138, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.ms-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    display: block;
}
body.dark-theme .ms-card {
    background: #1e293b;
    border-color: #334155;
    color: #fff;
}
body.dark-theme .ms-card.selected {
    border-color: var(--color-accent);
    background: rgba(37,99,235,0.2);
}
.ms-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.ms-btn {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ms-btn-prev {
    background: #e2e8f0;
    color: #475569;
}
body.dark-theme .ms-btn-prev { background: #334155; color: #f1f5f9; }
.ms-btn-next {
    background: var(--color-secondary);
    color: #fff;
}
.ms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- AI CHATBOT --- */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 110px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    animation: bounceBot 3s infinite;
}
@keyframes bounceBot {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }
    50% { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6); }
}
.chatbot-trigger:hover {
    transform: scale(1.1);
    animation: none;
}
.chatbot-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: scaleInBot 0.3s ease forwards;
}
body.dark-theme .chatbot-window {
    background: #1e293b;
    border: 1px solid #334155;
}
@keyframes scaleInBot {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
.chatbot-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}
.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}
body.dark-theme .chatbot-messages {
    background: #0f172a;
}
.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    animation: fadeInMsg 0.3s ease forwards;
}
@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg-bot {
    background: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}
body.dark-theme .msg-bot {
    background: #334155;
    color: #f1f5f9;
}
.msg-user {
    background: var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.bot-opt-btn {
    background: #fff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}
.bot-opt-btn:hover {
    background: var(--color-primary);
    color: #fff;
}
body.dark-theme .bot-opt-btn {
    background: #1e293b;
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.chatbot-input-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}
body.dark-theme .chatbot-input-area {
    background: #1e293b;
    border-color: #334155;
}
.chatbot-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 16px; /* prevent iOS zoom */
}
body.dark-theme .chatbot-input-area input {
    background: #0f172a;
    border-color: #475569;
    color: #fff;
}
.chatbot-send {
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .chatbot-trigger {
        right: auto;
        left: 20px;
        bottom: 85px;
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
    .chatbot-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 80px;
    }
}
