/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: radial-gradient(1200px 600px at 50% -100px, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0)) , #f7f8fb;
}

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Mobile-first strict content width */
@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    .container {
        max-width: 900px;
        padding: 0 24px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .container {
        max-width: 1100px;
        padding: 0 32px;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #0b3b8f 0%, #2563eb 60%, #0ea5e9 120%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 16px rgba(11, 59, 143, 0.15);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .status-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }
}

.home-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .home-link {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: iconGlow 6s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
    50% { filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.3)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
}

.home-link > span:first-of-type {
    line-height: 1.2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    animation: pillPulse 3s ease-in-out infinite;
}

@media (max-width: 767px) {
    .status-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@keyframes pillPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

@media (min-width: 768px) {
    .home-link {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 1024px) {
    .home-link {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

.home-link:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
    border-radius: 10px;
}

.header-restart {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-restart:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}


.header-meta {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

@media (max-width: 767px) {
    .header-meta {
        margin-top: 0.65rem;
    }
}

.subtitle {
    font-size: 1.05rem;
    opacity: 1;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .subtitle {
        font-size: 0.95rem;
    }
}

.header-disclaimer {
    font-size: 0.88rem;
    opacity: 0.85;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.005em;
}

@media (min-width: 768px) {
    .subtitle {
        font-size: 1.15rem;
    }
    
    .header-disclaimer {
        font-size: 0.92rem;
    }
}

/* Main content */
main {
    padding: 2.5rem 0 4rem;
}

@media (max-width: 767px) {
    main {
        padding: 1.5rem 0 2.5rem;
    }
}

.hero {
    text-align: left;
    margin-bottom: 3rem;
    padding: 2.5rem 0 2rem;
    margin-top: 0;
}

@media (max-width: 767px) {
    .hero {
        display: none;
    }
}

.hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }
}

.hero h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    color: #2c3e50;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .hero h2 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }
}

.hero p {
    font-size: clamp(0.98rem, 1.1vw, 1.05rem);
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 760px;
}

@media (max-width: 767px) {
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .hero p br {
        display: none;
    }
}

.hero-note {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.info-card p {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .info-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.info-card h3,
.info-card h4 {
    font-size: 1.2rem;
    color: #2563eb;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .info-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
}

.faq details {
    background: #ffffff;
    border: 1px solid #e9ecf5;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767px) {
    .faq {
        margin-top: 2.5rem;
    }
    
    .faq details {
        padding: 1rem;
        margin-bottom: 0.85rem;
        border-radius: 10px;
    }
}

.examples {
    margin-top: 4rem;
}

.example-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.75rem !important;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.example-card:hover::before {
    opacity: 1;
}

.example-card h3 {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.example-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0.65rem;
}

.example-card p strong {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.88rem;
}

.example-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .examples {
        margin-top: 2.5rem;
    }
    
    .example-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
        text-align: left;
    }
    
    .example-card h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .example-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Mobile results styling */
    #results {
        padding: 0;
    }
    
    .result-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    .result-card.primary {
        padding: 1.75rem 1.5rem;
    }
    
    .result-label {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .result-value {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }
    
    .result-details {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .result-detail-row {
        padding: 0.7rem 0;
    }
    
    .result-detail-label {
        font-size: 0.85rem;
    }
    
    .result-detail-value {
        font-size: 0.9rem;
    }
    
    .result-disclaimer {
        padding: 1.25rem;
        font-size: 0.85rem;
        line-height: 1.65;
        margin-top: 1.5rem;
    }
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
    color: #0f172a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    min-height: 44px;
}

@media (max-width: 767px) {
    .faq summary {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0.25rem 0;
    }
}

.info {
    margin-bottom: 4rem;
    padding: 0;
}

.info h3 {
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
    letter-spacing: -0.01em;
}

.info-grid,
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .info-grid,
    .info-cards {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem;
    }
}

.info-card {
    background: #ffffff;
    padding: 2rem 1.75rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card-icon {
    margin-bottom: 1.25rem;
    display: inline-block;
}

.info-card-icon svg {
    transition: transform 0.3s ease;
}

.info-card:hover .info-card-icon svg {
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .info {
        margin-bottom: 2.5rem;
        padding: 1.5rem 0;
    }
    
    .info h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-grid,
    .info-cards {
        gap: 1.25rem;
    }
    
    .info-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.fpl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

@media (max-width: 767px) {
    .table-wrap {
        margin: 0.75rem 0;
        border-radius: 10px;
    }
    
    .fpl-table {
        min-width: 600px;
    }
}

.fpl-table thead th {
    text-align: left;
    font-size: 0.9rem;
    color: #0f172a;
    background: rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.9rem 0.9rem;
}

@media (max-width: 767px) {
    .fpl-table thead th {
        padding: 0.7rem 0.7rem;
        font-size: 0.85rem;
    }
}

.fpl-table tbody th,
.fpl-table tbody td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.95rem;
    color: #0f172a;
    transition: background-color 0.15s ease;
}

.fpl-table tbody tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.5);
}

.fpl-table tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.fpl-table tbody tr:last-child th,
.fpl-table tbody tr:last-child td {
    border-bottom: none;
}

.fpl-table tbody th {
    font-weight: 800;
    color: #0b3b8f;
    background: #fbfdff;
    font-variant-numeric: tabular-nums;
}

.fpl-table tbody td {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
    .fpl-table tbody th,
    .fpl-table tbody td {
        padding: 0.7rem 0.7rem;
        font-size: 0.9rem;
    }
    
    .fpl-table tbody th {
        position: sticky;
        left: 0;
        background: #fbfdff;
        z-index: 1;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    }
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

/* Results Section Styling */
#results {
    padding: 1.5rem 0;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.result-card.primary {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #2563eb;
    padding: 2.25rem 2rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.result-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.result-card.primary .result-value {
    color: #2563eb;
}

.result-details {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8edf5;
}

.result-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-detail-row:last-child {
    border-bottom: none;
}

.result-detail-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.result-detail-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
}

.result-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.7;
    font-style: italic;
}

/* E-E-A-T Trust Section */
.eeat {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-left: 4px solid #0ea5e9;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
}

.eeat h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.eeat p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.eeat p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .eeat {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .eeat h2 {
        font-size: 1.35rem;
    }
    
    .eeat p {
        font-size: 0.95rem;
    }
}

.seo-content {
    max-width: 900px;
}

.seo-content h2 {
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

.seo-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    border-radius: 2px;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 760px;
}

.seo-content .tight {
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .hero {
        text-align: left;
        margin-bottom: 0.95rem;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 5rem;
    border-top: 3px solid #2563eb;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

footer p:first-child {
    font-size: 0.95rem;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0 0.5rem;
}

footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

footer a:not(:last-child)::after {
    content: '|';
    color: #64748b;
    margin-left: 0.5rem;
    font-weight: 300;
}

@media (max-width: 767px) {
    footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }
    
    footer p {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
    
    footer p:first-child {
        font-size: 0.9rem;
    }
}

/* Responsive design */
@media (max-width: 767px) {
    header {
        padding: 1.5rem 0;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    main {
        padding: 1.5rem 0 2.5rem;
    }
    
    .calculator-container {
        padding: 1.15rem;
        border-radius: 16px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }

    .hero::after {
        height: 12px;
        margin-top: 0.85rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seo-content {
        padding: 2rem 0 0;
    }
    
    .seo-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .seo-content h2:first-child {
        margin-top: 0;
    }
    
    .seo-content p {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    .examples {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
}

.examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Performance optimizations */
.calculate-btn,
.form-group input,
.form-group select {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Wizard and Form Styles */

/* Calculator section */
.calculator {
    margin-bottom: 2.75rem;
}

@media (max-width: 767px) {
    .calculator {
        margin-bottom: 1.5rem;
    }
}

.calculator-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
    width: 100%;
    margin: 0;
}

.wizard-header {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e8edf5;
}

.wizard-header h2 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.wizard-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-title {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.progress {
    height: 6px;
    background: #e8edf5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wizard-step {
    animation: fadeIn 180ms ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.people-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.person-block {
    padding: 1rem;
    border: 1px solid #e9ecf5;
    border-radius: 14px;
    background: #fafbfc;
}

.person-block h4 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    display: block;
}

.form-group input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #dce4ef;
    border-radius: 10px;
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, background-color 0.2s ease;
}

.form-group input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.form-group input[type="text"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
select:hover:not(:focus) {
    border-color: #b8c5d9;
    background: #fafbfc;
}

.calculate-btn {
    background: linear-gradient(135deg, #0b3b8f 0%, #2563eb 70%, #0ea5e9 130%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculate-btn::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 ease;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35), 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.wizard-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .calculator {
        margin-bottom: 2rem;
    }
    
    .calculator-container {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wizard-header {
        gap: 0.85rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.25rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .form-group {
        margin-bottom: 0.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .form-group input[type="text"],
    input[type="number"],
    select {
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .calculate-btn {
        padding: 0.9rem 2rem;
        font-size: 1.05rem;
        width: 100%;
    }
    
    .wizard-actions {
        margin-top: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-secondary {
        width: 100%;
    }
}
