:root {
    --bg-color: #f7f7f7;
    --card-bg: #ffffff;
    --card-border: #eaeaea;
    --text-primary: #333333;
    --text-secondary: #555555;
    --accent: #e52421;
    /* FABA red */
    --accent-hover: #cc1d1a;
    --input-bg: #f9f9f9;
    --input-border: #cccccc;
    --success: #32d74b;
    --error: #e52421;
    --faba-blue: #2a8bff;
    --faba-yellow: #ffc200;
    --faba-pink: #f24b9c;

    font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1,
h2,
h3,
.faba-logo {
    font-family: 'Fredoka', cursive, sans-serif;
}

/* FABA Header Styles */
.faba-header {
    background: #ffffff;
    width: 100%;
    z-index: 100;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* very subtle shadow */
}

.header-top {
    font-size: 13px;
    color: #666;
    padding: 10px 40px;
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #f0f0f0;
}

.header-top-links a {
    color: #666;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 500;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 10px;
}

.logo-space {
    flex: 1;
    /* For centering logo */
}

.faba-logo {
    flex: 1;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.faba-logo .plus {
    font-size: 32px;
    vertical-align: super;
}

.header-icons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    color: #333;
}

.header-icons i {
    cursor: pointer;
    transition: color 0.2s;
    width: 22px;
    height: 22px;
}

.header-icons i:hover {
    color: var(--accent);
}

.faba-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 0 20px;
    border-bottom: 2px solid var(--accent);
}

.faba-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}

.faba-nav a:hover,
.faba-nav a.nav-active {
    color: var(--accent);
}

/* Background blobs */
.style-blobs {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 150px;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    background-color: #ffffff;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 15s ease-in-out infinite both alternate;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.01);
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: -10%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    top: 40%;
    right: -15%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: 2s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    bottom: 0%;
    left: 20%;
    background-color: #fcfcfc;
}

.blob-4 {
    width: 300px;
    height: 300px;
    top: -5%;
    right: 20%;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(50px, 30px) rotate(10deg);
    }
}

/* Main Layout */
.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-size: 48px;
    color: #2c2929;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.container-faba {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    z-index: 10;
    position: relative;
}

/* Module Switcher Styles */
.module-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.switcher-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.switcher-btn i {
    width: 18px;
    height: 18px;
}

.switcher-btn.active {
    background: var(--accent);
    color: white;
}

.switcher-btn:hover:not(.active) {
    background: rgba(229, 36, 33, 0.05);
}

.switcher-btn:active {
    transform: scale(0.98);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

label i {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(229, 36, 33, 0.1);
}

input::placeholder {
    color: #999999;
}

.faba-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.faba-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 36, 33, 0.3);
}

.faba-btn:active {
    transform: translateY(0);
}

/* Features Row */
.features-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
    margin-top: 80px;
}

.feature-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transform: rotate(-10deg);
}

.feature-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.bg-blue {
    background-color: var(--faba-blue);
}

.bg-yellow {
    background-color: var(--faba-yellow);
}

.bg-pink {
    background-color: var(--faba-pink);
}

.feature-col h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-col p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Loader & Status UI */
.hidden {
    display: none !important;
}

.progress-container {
    margin-top: 30px;
    background: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--card-border);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.steps-list {
    list-style: none;
    margin-bottom: 15px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.step-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: all 0.3s;
}

.step-item.active {
    color: var(--text-primary);
}

.step-item.active .dot {
    background: var(--faba-yellow);
}

.step-item.done {
    color: var(--success);
}

.step-item.done .dot {
    background: var(--success);
}

.step-item.hidden {
    display: flex !important;
}

.status-message {
    text-align: center;
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.success-message,
.error-message {
    margin-top: 25px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    line-height: 1.5;
}

.success-message {
    background: #e8faec;
    border: 1px solid #c3edd0;
    color: #1a7b2b;
    flex-direction: column;
}

.success-message i {
    color: var(--success);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.success-message>div {
    display: flex;
    gap: 10px;
}

.error-message {
    background: #fceceb;
    border: 1px solid #f7c9c8;
    color: var(--error);
}

.error-message i {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.faba-btn-secondary {
    background: transparent;
    border: 2px solid var(--success);
    color: #1a7b2b;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
    transition: all 0.2s;
}

.faba-btn-secondary:hover {
    background: rgba(50, 215, 75, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .features-row {
        flex-direction: column;
        gap: 40px;
    }

    .faba-nav {
        display: none;
        /* simple mobile */
    }

    .header-main {
        padding: 15px 20px;
    }

    .main-title {
        font-size: 36px;
    }
}