/* Global Styles */
:root {
    --primary: #1a73e8;
    --secondary: #34a853;
    --accent: #fbbc05;
    --danger: #ea4335;
    --dark: #202124;
    --light: #f8f9fa;
    --gray: #5f6368;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: var(--light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d47a1 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.disclaimer {
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.calculator-preview {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.form-grid input, .form-grid select {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

.result-box {
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Features */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

/* Calculator Page */
.calculator-page {
    padding: 3rem 0;
    background: white;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.input-panel, .results-panel {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.results-content .result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
}

.result-item.highlight {
    background: var(--secondary);
    color: white;
    font-size: 1.2rem;
}

.placeholder {
    text-align: center;
    color: var(--gray);
    padding: 2rem;
}

/* Info Pages */
.info-page {
    padding: 3rem 0;
    background: white;
}

.info-page h1 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.comparison-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.comparison-card h4 {
    color: var(--dark);
    margin: 1rem 0 0.5rem;
}

.comparison-card ul {
    margin-left: 1.5rem;
}

.info-box {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
}

.warning-box {
    background: #ffebee;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 2rem 0;
    border-left: 4px solid var(--danger);
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.fee-table th, .fee-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fee-table th {
    background: var(--primary);
    color: white;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .disclaimer {
    font-size: 0.8rem;
    max-width: 800px;
    margin: 1rem auto;
}

footer nav {
    margin-top: 1rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 0.8rem;
        font-size: 0.9rem;
    }
    
    .chat-window {
        width: 90vw;
        right: -20px;
    }
}