/* General Variables & Customizations */
:root {
    --primary-color: #1e3a8a;
    --primary-light: #1e3a8abb;
    --primary-dark: #1e3a8a;
    --accent-color: #ec4899;
    --bg-light: #eff6ff;
    --text-color: #0f172a;
    --text-light: #475569;
    --border-color: #cbd5e1;
    --card-bg: #ffffff;
    --success-color: #10b981;
    --font-family: 'Outfit', 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.align-center {
    align-items: center;
}

/* Header & Navbar */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.logo svg {
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #020617 100%);
    color: white;
    padding: 60px 0;
    border-bottom: 4px solid var(--accent-color);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    font-weight: 300;
}

/* Main Content Area */
.main-content {
    padding: 60px 24px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.card h2 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Form Styles */
.calc-group {
    margin-bottom: 20px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.select-input, .text-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.select-input:focus, .text-input:focus {
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-block {
    width: 100%;
    display: block;
}

/* Results Box */
.results-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

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

.total-row {
    font-weight: 700;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 5px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.allocation-bar {
    display: flex;
    height: 14px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #e2e8f0;
}

.bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

/* Explanatory Sections */
.section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.explanatory-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.grid p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Details Page */
.contact-info-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.contact-form-box {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.alert-status {
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
}

.alert-status.success {
    background-color: #f0fff4;
    color: #166534;
    border-color: #bbf7d0;
}

.hidden {
    display: none !important;
}

/* Footer & Disclaimers */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #334155;
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 500px;
    line-height: 1.6;
}

.footer-links-grid h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-links-grid a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-links-grid a:hover {
    color: white;
}

.footer-disclaimer {
    line-height: 1.5;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
