body {
  font-family: Arial;
  background:#f5f7fb;
  margin:0;
}

.container {
  max-width:800px;
  margin:30px auto;
  background:white;
  padding:25px;
  border-radius:12px;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

h1,h2 { text-align:center; }

input {
  width:100%;
  padding:10px;
  margin-top:10px;
}

button {
  width:100%;
  padding:12px;
  margin-top:15px;
  background:#2563eb;
  color:white;
  border:none;
  cursor:pointer;
}

.result {
  margin-top:20px;
  padding:15px;
  background:#eef2ff;
  border-radius:10px;
}

.compare {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.bar {
  height:20px;
  margin-top:5px;
}
.principal { background:green; }
.interest { background:red; }

.warning { color:red; font-weight:bold; }
.good { color:green; }

/* Custom Properties for Branding */
:root {
    --primary-color: #0056b3; /* Professional Bank Blue */
    --secondary-color: #28a745; /* Success Green */
    --bg-color: #f8f9fa;
    --text-color: #333;
    --container-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--container-shadow);
}

/* Typography for SEO Hierarchy */
h1 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #444;
}

/* Form Styling - Mobile First */
.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Prevents overflow */
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Button Styling */
button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #004494;
}

button:active {
    transform: translateY(1px);
}

/* Result Display */
.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9f5ff;
    border-left: 5px solid var(--primary-color);
    font-weight: bold;
    border-radius: 4px;
}

/* Comparison Section */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

/* SEO Content Section */
.seo-content {
    background: transparent;
    box-shadow: none;
    border-top: 1px solid #ddd;
    margin-top: 50px;
    font-size: 0.95rem;
}

.seo-content h3 {
    color: #555;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }

    .compare {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    h1 {
        font-size: 1.5rem;
    }
}