@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #F5C344;
    --brand-hover: #D9A827;
    --brand-light: #FFFDF5;
    --primary: #2C3E50;
    --primary-light: #3E5C76;
    --accent: #06B6D4;
    --accent-hover: #0891B2;
    --bg: #F8FAFC;
    --card-bg: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ── Navigation ─────────────────────────────────────── */

.ainov-nav {
    width: 100%;
    background: var(--primary);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ainov-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ainov-nav-logo-img {
    height: 32px;
    width: auto;
}

.ainov-nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
}

.ainov-nav-section {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
}

.ainov-nav-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ainov-nav-tools a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ainov-nav-tools a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.ainov-nav-tools a.active {
    color: var(--brand);
    background: rgba(245, 195, 68, 0.1);
}

.ainov-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.ainov-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ainov-nav-contact {
    color: var(--brand) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 16px;
    border: 1px solid rgba(245, 195, 68, 0.4);
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ainov-nav-contact:hover {
    background: var(--brand);
    color: var(--primary) !important;
    border-color: var(--brand);
}

@media (max-width: 1100px) {
    .ainov-nav-tools a span.nav-label-long {
        display: none;
    }
    .ainov-nav-tools a span.nav-label-short {
        display: inline;
    }
}

@media (max-width: 860px) {
    .ainov-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }

    .ainov-nav-toggle {
        display: block;
    }

    .ainov-nav-tools {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ainov-nav-tools.open {
        display: flex;
    }

    .ainov-nav-tools a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .ainov-nav-contact {
        margin-top: 8px;
        text-align: center;
        display: block;
    }

    .ainov-nav-section {
        display: none;
    }
}

/* ── Tool content area ──────────────────────────────── */

.ainov-tool-content {
    width: 100%;
    padding: 30px 20px 40px;
    display: flex;
    justify-content: center;
    flex: 1;
}

/* ── Common form elements ───────────────────────────── */

.header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--brand);
    padding-bottom: 15px;
}

.tool-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.tool-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary);
    transition: 0.2s;
    background: #fdfdfd;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

select.highlight-select {
    border: 2px solid var(--accent);
    font-weight: bold;
    background: #ecfeff;
    color: var(--accent-hover);
    cursor: pointer;
}

button, .btn-primary {
    background: var(--brand);
    color: var(--primary);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover, .btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.form-section, .main-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

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

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    flex-shrink: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ── Disclaimer banner ──────────────────────────────── */

.disclaimer-top {
    background: var(--brand-light);
    border: 1px solid #FFF2BF;
    border-left: 4px solid var(--brand);
    padding: 14px 20px;
    border-radius: 8px;
    color: var(--primary);
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.disclaimer-top strong {
    color: var(--primary);
}

.disclaimer-top a {
    color: var(--accent-hover);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer-top a:hover {
    text-decoration: underline;
}

/* ── Result section (dark sidebar) ──────────────────── */

.result-section {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 86px;
    box-shadow: 0 10px 25px -5px rgba(44, 62, 80, 0.3);
}

.result-box {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.result-value {
    font-size: 26px;
    font-weight: 800;
    color: white;
}

.result-value.highlight {
    color: var(--success);
    font-size: 32px;
}

.note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 5px;
    line-height: 1.4;
}

.footer-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 15px;
    font-style: italic;
    line-height: 1.4;
}

/* ── Animations ─────────────────────────────────────── */

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

/* ── Footer ─────────────────────────────────────────── */

.ainov-footer {
    width: 100%;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 32px 24px;
    margin-top: auto;
}

.ainov-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ainov-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ainov-footer-logo-img {
    height: 40px;
    width: auto;
}

.ainov-footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ainov-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.ainov-footer-links a:hover {
    color: var(--brand);
}

.ainov-footer-copy {
    width: 100%;
    text-align: center;
    font-size: 11px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .ainov-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .ainov-footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ── Print ──────────────────────────────────────────── */

@media print {
    .ainov-nav,
    .ainov-footer,
    .ainov-nav-toggle {
        display: none !important;
    }

    body {
        padding: 0;
        background: white;
    }

    .ainov-tool-content {
        padding: 0;
    }

    button {
        display: none;
    }

    .result-section {
        background: #f1f5f9;
        color: var(--primary);
        border: 2px solid var(--primary);
        box-shadow: none;
    }

    .result-label, .note, .footer-note {
        color: var(--text-light);
    }

    .result-value {
        color: var(--primary);
    }

    .result-value.highlight {
        color: var(--success);
    }

    .result-box {
        border-bottom-color: #cbd5e1;
    }

    .disclaimer-top {
        break-inside: avoid;
    }
}
