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

body {
    font-family: 'Arial', sans-serif;
    color: #1A202C;
    background: #F4F6F9;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    letter-spacing: -0.5px;
}

.btn-nav {
    font-size: 14px;
    font-weight: 600;
    color: #1E3A5F;
    text-decoration: none;
    padding: 8px 20px;
    border: 2px solid #1E3A5F;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: #1E3A5F;
    color: #ffffff;
}

/* HERO */
.hero {
    padding: 160px 40px 100px;
    background: #1E3A5F;
    color: #ffffff;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero-sub {
    font-size: 20px;
    color: #a8c4e0;
    margin-bottom: 40px;
    max-width: 640px;
}

.btn-primary {
    display: inline-block;
    background: #2E75B6;
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #1a5a94;
    transform: translateY(-1px);
}

/* SECTIONS */
.section {
    padding: 80px 40px;
}

.section-alt {
    background: #EDEEF2;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 24px;
}

.section p {
    font-size: 18px;
    color: #4B5563;
    max-width: 720px;
    line-height: 1.7;
}

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.step {
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.step:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
}

.step-number {
    font-size: 40px;
    font-weight: 700;
    color: #2E75B6;
    margin-bottom: 16px;
    opacity: 0.35;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 12px;
}

.step p {
    font-size: 15px;
    color: #6B7280;
    max-width: 100%;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature {
    padding: 28px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.feature:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.06);
}

.feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14px;
    color: #6B7280;
    max-width: 100%;
}

/* CONTACT */
.contact-inner {
    max-width: 600px;
}

.contact-inner p {
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(59,125,216,0.15);
}

.contact-form button {
    width: fit-content;
}

/* FOOTER */
footer {
    padding: 32px 40px;
    border-top: 1px solid #E5E7EB;
    background: #ffffff;
}

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

footer span {
    font-size: 14px;
    color: #9CA3AF;
}

/* LOGIN PAGE */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F6F9;
}

.login-box {
    background: #ffffff;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 420px;
}

.login-box .logo {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.login-box h2 {
    font-size: 22px;
    color: #6B7280;
    margin-bottom: 32px;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form input {
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(59,125,216,0.15);
}

.login-form button {
    width: 100%;
    padding: 14px;
    background: #1E3A5F;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.login-form button:hover {
    background: #2E75B6;
    transform: translateY(-1px);
}

/* DASHBOARD */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #1E3A5F;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
}

.sidebar .logo {
    color: #ffffff;
    margin-bottom: 36px;
    display: block;
    font-size: 24px;
}

.sidebar-link {
    color: #a8c4e0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.1px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}

.main-content {
    margin-left: 240px;
    padding: 40px;
    width: calc(100% - 240px);
    background: #F4F6F9;
    min-height: 100vh;
}

.main-content h1 {
    font-size: 28px;
    color: #1E3A5F;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* CARDS */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    padding: 32px;
    margin-bottom: 24px;
    border: none;
}

.card h2 {
    font-size: 17px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    color: #1A202C;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2E75B6;
    box-shadow: 0 0 0 3px rgba(59,125,216,0.15);
}

.upload-zone {
    border: 2px dashed #D1D5DB;
    border-radius: 10px;
    padding: 48px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    background: #FAFAFA;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: #2E75B6;
    background: #F0F7FF;
}

.upload-zone p {
    color: #9CA3AF;
    font-size: 15px;
}

.upload-zone strong {
    color: #2E75B6;
}

.btn-submit {
    background: #1E3A5F;
    color: #ffffff;
    padding: 13px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    width: 100%;
    margin-top: 8px;
    letter-spacing: 0.1px;
}

.btn-submit:hover {
    background: #2E75B6;
    transform: translateY(-1px);
}

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

.btn-submit:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

/* RESULTS */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 1px solid #F3F4F6;
}

.result-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.result-value {
    font-size: 16px;
    color: #1A202C;
    font-weight: 500;
}

/* QUOTE TABLE */
.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.quote-table th {
    background: #1E3A5F;
    color: #ffffff;
    padding: 13px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quote-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 14px;
    color: #374151;
}

.quote-table tr:last-child td {
    border-bottom: none;
}

.quote-table tr:nth-child(even) td {
    background: #FAFAFA;
}

.quote-table tr:hover td {
    background: #F0F7FF;
    transition: background 0.15s ease;
}

.quote-total {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 4px;
    gap: 40px;
    border-top: 2px solid #F3F4F6;
    margin-top: 8px;
}

.quote-total-item {
    text-align: right;
}

.quote-total-label {
    font-size: 12px;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.quote-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #1E3A5F;
}

/* FLAGS */
.flag-item {
    background: #FFFBEB;
    border-left: 4px solid #F59E0B;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4B5563;
    line-height: 1.5;
}

/* LOADING */
.loading {
    display: none;
    text-align: center;
    padding: 60px 40px;
    color: #9CA3AF;
}

.loading.visible {
    display: block;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #E5E7EB;
    border-top-color: #2E75B6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-download {
    background: #2E75B6;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-download:hover {
    background: #1a5a94;
    transform: translateY(-1px);
}

/* ERROR */
.error-box {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 14px 16px;
    border-radius: 0 6px 6px 0;
    color: #B91C1C;
    font-size: 14px;
    display: none;
    margin-bottom: 8px;
}

.error-box.visible {
    display: block;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F4F6F9;
}

::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}