:root {
    /* Marron/Brun Palette - Warm & Elegant */
    --primary: #8b4513;
    /* Saddle Brown */
    --primary-dark: #6b3410;
    --primary-light: #f5e6d3;
    --accent: #a0522d;
    /* Sienna */
    --success: #228b22;
    /* Forest Green */
    --text-main: #2c1810;
    --text-secondary: #6b4e3d;
    --text-light: #8b7355;
    --bg-body: #faf8f5;
    --bg-card: #ffffff;
    --bg-hover: #f5f1eb;
    --border-color: #e8ddd4;
    --border-light: #f0ebe5;

    /* Spacing & Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* --- Navigation --- */
nav {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 2px solid var(--primary-light);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    height: 60px;
    max-width: 250px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
    z-index: 1001;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .logo {
        height: 50px;
        max-width: 200px;
    }

    .logo-img {
        height: 50px;
    }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        height: 100vh !important;
        width: 76% !important;
        max-width: 300px !important;
        flex-direction: column !important;
        background: #ffffff !important;
        padding: 84px 22px 28px !important;
        gap: 0 !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2) !important;
        z-index: 1050 !important;
        overflow-y: auto !important;
        display: flex !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    .nav-links a {
        padding: 0.85rem 1rem !important;
        font-size: 1rem !important;
        border-bottom: 1px solid var(--border-color) !important;
        width: 100% !important;
        text-align: left !important;
        display: block !important;
        color: var(--text-main) !important;
    }

    .nav-links a:last-child {
        border-bottom: none !important;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .mobile-overlay.active {
        display: block !important;
    }
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 100%);
    color: var(--text-main);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
}


@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, -30px) rotate(180deg);
    }
}

#hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
    line-height: 1.3;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#hero .hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .hero-visual::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg);
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: var(--bg-card);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    min-height: 48px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    border-color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

/* --- Info Section --- */
#info {
    padding: 5rem 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
}

.cards-grid::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
    text-align: left;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.15);
    border-color: var(--primary);
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Calculator Section --- */
#calculator {
    padding: 4rem 0 6rem;
    background-color: var(--bg-body);
    scroll-margin-top: 80px;
}

.calc-container {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    border: 3px solid var(--primary);
    overflow: hidden;
}

.calc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.calc-container form {
    padding: 3rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2.5rem;
    padding: 2rem 3rem 0;
    background: var(--primary-light);
    border-bottom: 2px solid var(--border-color);
}

.progress-bar {
    height: 10px;
    background-color: #e8ddd4;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 1.5rem;
}

/* Form Steps */
.step {
    display: none;
    animation: slideUp 0.4s ease-out;
}

.step.active {
    display: block;
}

.step h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    padding-bottom: 1rem;
    display: block;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    border-bottom: 3px solid var(--primary);
    padding-left: 0;
}

.step h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--accent);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: 10px;
    border-left: 4px solid var(--primary-light);
    transition: var(--transition);
}

.form-group:hover {
    background: #faf8f5;
    border-left-color: var(--primary);
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: var(--bg-card);
    transition: var(--transition-fast);
    min-height: 44px;
}

.form-control:hover {
    border-color: var(--text-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background-color: var(--bg-card);
    border-width: 2px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    -webkit-appearance: none;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--primary-light);
    border-radius: 10px;
    border-top: 2px solid var(--border-color);
}

.btn-prev {
    background-color: #ffffff;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-prev:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Results */
#result-step {
    text-align: center;
    position: relative;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, transparent 0%, var(--primary-light) 20%, transparent 100%);
    border-radius: 24px;
    margin-bottom: 2rem;
}

#result-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

#result-step h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

#result-step h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.total-score {
    font-size: 7rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 2.5rem 0;
    line-height: 1;
    letter-spacing: -0.04em;
    position: relative;
    display: inline-block;
    padding: 3rem 5rem;
    background: #ffffff;
    border-radius: 30px;
    border: 5px solid var(--primary);
    box-shadow:
        0 0 0 8px var(--primary-light),
        0 12px 40px rgba(139, 69, 19, 0.25),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    transform: rotate(-2deg);
    animation: scoreReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.total-score::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, var(--primary-light), #ffffff, var(--primary-light));
    border-radius: 35px;
    z-index: -1;
    opacity: 0.5;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes scoreReveal {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(1deg);
    }

    100% {
        transform: scale(1) rotate(-1deg);
        opacity: 1;
    }
}

.total-score::after {
    content: 'POINTS';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    background: #ffffff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    letter-spacing: 0.2em;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    text-transform: uppercase;
}

#result-step p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.score-breakdown {
    text-align: left;
    margin-top: 3rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    display: grid;
    gap: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 2rem 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 3px solid var(--border-color);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.08);
}

.breakdown-item::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 8px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 0 8px 8px 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.breakdown-item::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent var(--primary);
    opacity: 0;
    transition: all 0.4s ease;
}

.breakdown-item:hover::before {
    transform: translateY(-50%) scaleY(1);
    height: 80%;
}

.breakdown-item:hover::after {
    opacity: 1;
    right: -8px;
}

.breakdown-item:hover {
    transform: translateX(12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.125rem;
    position: relative;
    padding-left: 2rem;
    z-index: 2;
    flex: 1;
}

.breakdown-label::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) scale(1.3);
        opacity: 0.7;
    }
}

.breakdown-value {
    font-weight: 900;
    color: var(--primary-dark);
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 3px solid var(--primary);
    min-width: 100px;
    text-align: center;
    box-shadow:
        0 4px 12px rgba(139, 69, 19, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.breakdown-value::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.breakdown-item:hover .breakdown-value::before {
    opacity: 0.2;
}

.breakdown-item:hover .breakdown-value {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(139, 69, 19, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

/* --- Disclaimer Section --- */
#disclaimer {
    background-color: #fff8f0;
    border-top: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    padding: 1.5rem 0;
}

#disclaimer p {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

#disclaimer a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

#disclaimer a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.disclaimer-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff8f0;
    border: 2px solid var(--primary);
    border-radius: 12px;
    text-align: left;
}

.disclaimer-box p {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.75rem 0;
}

.disclaimer-box ul {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.8;
    margin: 0;
    padding-left: 1.25rem;
}

.disclaimer-box ul li {
    margin-bottom: 0.5rem;
}

.disclaimer-box ul li:last-child {
    margin-bottom: 0;
}

.disclaimer-box a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.disclaimer-box a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-dark);
    color: #f5e6d3;
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    border-top: 3px solid var(--primary);
}

footer a {
    color: #f5e6d3;
    text-decoration: underline;
    transition: var(--transition);
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        top: 0.5rem;
    }

    nav .container {
        border-radius: 20px;
        padding: 0.5rem 1rem;
    }

    #hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    #hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    #hero h1 {
        font-size: 2.25rem;
    }

    #hero h1::before {
        display: none;
    }

    #hero p {
        font-size: 1.0625rem;
    }

    .nav-links {
        display: none;
    }

    .calc-container {
        padding: 2rem 1.25rem;
        margin-top: 0;
        border-radius: 24px;
        transform: none;
    }

    .total-score {
        font-size: 3.5rem;
    }

    .btn-group {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .card {
        padding: 1.75rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }

    .container,
    nav .container {
        padding: 0 1.25rem;
    }

    #calculator .container {
        padding: 0 0.9rem;
    }

    #hero {
        padding: 6rem 0 3rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #hero .hero-visual {
        height: 260px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .calc-container form {
        padding: 1.5rem 1rem;
    }

    .progress-container {
        padding: 1.25rem 1rem 0;
    }

    .step h3 {
        font-size: 1.5rem;
    }

    .form-group {
        padding: 1.25rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-container .btn {
        width: 100%;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }

    .form-control {
        font-size: 1rem;
        padding: 0.9rem 0.95rem;
        min-height: 48px;
    }

    select.form-control {
        background-position: right 12px center;
    }

    .btn {
        min-height: 50px;
        font-size: 1rem;
    }

    .btn-group {
        padding: 1.5rem 1rem;
    }

    #result-step {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }

    #result-step h2 {
        font-size: 1.1rem;
        letter-spacing: 0.1em;
        margin-bottom: 1.5rem;
    }

    .total-score {
        margin: 1.5rem 0;
        transform: none;
        max-width: 100%;
    }

    .total-score::before {
        left: -10px;
        right: -10px;
        top: -10px;
        bottom: -10px;
        border-radius: 28px;
    }

    .score-breakdown {
        margin-top: 2rem;
        max-width: 100%;
    }

    .recommendations-box {
        padding: 1.25rem;
    }

    .recommendations-list {
        padding-left: 1.1rem;
    }

    .recommendations-list li {
        margin-bottom: 0.6rem;
        line-height: 1.55;
    }

    .email-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .email-input {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .total-score {
        font-size: 4rem;
        padding: 1.75rem 2.5rem;
        border-width: 4px;
        box-shadow:
            0 0 0 6px var(--primary-light),
            0 10px 28px rgba(139, 69, 19, 0.2),
            inset 0 2px 8px rgba(255, 255, 255, 0.8);
    }

    .total-score::after {
        font-size: 0.75rem;
        padding: 0.4rem 1.1rem;
    }

    .score-breakdown {
        gap: 1rem;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }

    .breakdown-label {
        font-size: 1rem;
        padding-left: 1.75rem;
    }

    .breakdown-value {
        font-size: 2rem;
        padding: 0.75rem 1.25rem;
        align-self: flex-start;
    }

    .disclaimer-box {
        padding: 1.25rem;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .container,
    nav .container {
        padding: 0 1.75rem;
    }

    #hero {
        padding: 7rem 0 3.5rem;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .calc-container form {
        padding: 2.5rem 2rem;
    }

    .progress-container {
        padding: 1.75rem 2rem 0;
    }

    .total-score {
        font-size: 5rem;
        padding: 2.25rem 3.25rem;
    }

    .breakdown-item {
        padding: 1.75rem 2rem;
    }

    .breakdown-value {
        font-size: 2.25rem;
        padding: 0.9rem 1.5rem;
    }
}

@media (max-width: 420px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    #calculator .container {
        padding: 0 0.75rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    .total-score {
        font-size: 3.25rem;
        padding: 1.25rem 1.75rem;
    }

    #result-step h2 {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }

    .recommendations-list li {
        font-size: 0.9rem;
    }

    .total-score::after {
        font-size: 0.7rem;
    }

    .breakdown-item {
        padding: 1.25rem;
    }

    .breakdown-value {
        font-size: 1.75rem;
        width: 100%;
        text-align: center;
    }
}

/* --- Print Styles --- */
@media print {

    nav,
    footer,
    #hero,
    #info,
    .progress-container,
    .btn-group,
    .section-title {
        display: none !important;
    }

    body,
    #calculator,
    .calc-container {
        background: white;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
    }

    #result-step {
        display: block !important;
    }

    .step {
        display: block !important;
    }

    #step1,
    #step2,
    #step3,
    #step4 {
        display: none !important;
    }

    #step5 {
        display: block !important;
    }

    .score-breakdown {
        border: 1px solid var(--border-color);
    }
}

/* Utility Classes */
.text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.font-normal {
    font-weight: 400 !important;
}

.mb-2 {
    margin-bottom: 0.625rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-container .form-control {
    flex: 1;
}

.profession-suggestions {
    display: none;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.suggestion-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: var(--bg-hover);
    outline: none;
}

.profession-result {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    display: none;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Recommendations */
.recommendations-box {
    margin-top: 2rem;
    text-align: left;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    border-left: 4px solid #06b6d4;
    display: none;
    box-shadow: var(--shadow-sm);
}

.recommendations-box h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendations-list {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.recommendations-list li {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
}

/* Email Section */
.email-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.email-input {
    text-align: center;
    max-width: 420px;
    margin: 0 auto 1.5rem;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.25rem;
}

.btn-success {
    background-color: var(--success);
    color: white;
    border: 1px solid var(--success);
}

.btn-success:hover {
    background-color: #15803d;
    color: white;
    border-color: #15803d;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

/* Article Page Specifics */
.article-content {
    max-width: 840px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.article-content h2 {
    color: var(--primary);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content li {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

/* Guides Section Enhancements */
#guides .card h3 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.875rem;
    color: var(--primary-dark);
}

#guides .card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex-grow: 1;
}

#guides .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#guides .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

#guides .btn-outline {
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#guides .btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-light);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

#guides .btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

#guides .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}

/* Article Content Enhancements */
.article-content ol,
.article-content ul {
    line-height: 1.8;
}

.article-content ol li,
.article-content ul li {
    margin-bottom: 0.875rem;
}

.article-content h3 {
    color: var(--primary);
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.article-content .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 400;
}