/* ========================================
   Ratevance - APR Comparison Web Application
   CSS Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-green: #2E7D32;
    --primary-green-dark: #1B5E20;
    --primary-green-light: #4CAF50;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6c6c6c;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f0f2f5;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green-dark);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-green-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-brand span {
    color: var(--primary-green);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary-green);
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text h1 span {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-calculator {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-calculator h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ========================================
   Quick Calculator (Hero)
   ======================================== */
.quick-calc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-calc-result {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: 1rem;
}

.quick-calc-result .rate {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.quick-calc-result .label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c6c6c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Input Group with prefix/suffix */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    color: var(--text-light);
    font-weight: 500;
    pointer-events: none;
}

.input-prefix {
    left: 1rem;
}

.input-suffix {
    right: 1rem;
}

.input-group .form-control.has-prefix {
    padding-left: 2rem;
}

.input-group .form-control.has-suffix {
    padding-right: 2.5rem;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   How It Works Steps
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.95rem;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 2px;
    background: var(--border-color);
}

.step-card:last-child::after {
    display: none;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-green);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* ========================================
   Calculator Page
   ======================================== */
.calculator-page {
    padding-top: 7rem;
    min-height: 100vh;
    background: var(--bg-light);
}

.calculator-container {
    max-width: 900px;
    margin: 0 auto;
}

.calc-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.calc-card-header {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.calc-card-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.calc-card-header p {
    margin-bottom: 0;
    color: var(--text-light);
}

.calc-card-body {
    padding: 2rem;
}

/* Loan Type Selection */
.loan-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.loan-type-btn {
    padding: 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loan-type-btn:hover {
    border-color: var(--primary-green);
}

.loan-type-btn.active {
    border-color: var(--primary-green);
    background: rgba(46, 125, 50, 0.05);
}

.loan-type-btn .icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-type-btn .label {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Calculator Form Grid */
.calc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.calc-form-grid .full-width {
    grid-column: span 2;
}

/* Results Display */
.results-card {
    display: none;
}

.results-card.show {
    display: block;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.result-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.result-item .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.result-item .label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Comparison Section */
.comparison-section {
    display: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comparison-section.show {
    display: block;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-header h4 {
    margin-bottom: 0.5rem;
}

.comparison-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Comparison Results */
.comparison-results {
    display: none;
    margin-top: 2rem;
}

.comparison-results.show {
    display: block;
}

.comparison-verdict {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.comparison-verdict.great {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(27, 94, 32, 0.1) 100%);
    border: 2px solid var(--primary-green);
}

.comparison-verdict.okay {
    background: rgba(241, 196, 15, 0.1);
    border: 2px solid #f1c40f;
}

.comparison-verdict.poor {
    background: rgba(231, 76, 60, 0.1);
    border: 2px solid #e74c3c;
}

.verdict-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verdict-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.verdict-message {
    color: var(--text-medium);
}

.savings-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.savings-item {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.savings-item .amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.savings-item.positive .amount {
    color: var(--primary-green);
}

.savings-item.negative .amount {
    color: #e74c3c;
}

.savings-item .label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Comparison Bar */
.comparison-bar {
    margin: 2rem 0;
}

.bar-container {
    background: var(--bg-light);
    height: 40px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.bar-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    opacity: 0.3;
}

.bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 60%;
    background: var(--text-dark);
    border-radius: 2px;
}

.bar-marker.bank {
    background: var(--primary-green);
    width: 6px;
    height: 80%;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   Pricing Page
   ======================================== */
.pricing-page {
    padding-top: 7rem;
    min-height: 100vh;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 0 2rem;
}

.pricing-header h1 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

.pricing-header .subtitle {
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto;
    color: var(--text-medium);
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-green);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-tier {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-card .description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.price {
    margin-bottom: 1.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.price .period {
    color: var(--text-light);
}

.price .original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.price .savings-note {
    font-size: 0.875rem;
    color: var(--primary-green);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--primary-green);
    font-weight: bold;
}

.pricing-features .x {
    color: var(--text-light);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

/* Feature Comparison Table */
.comparison-table {
    margin-top: 4rem;
}

.comparison-table h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    text-align: center;
}

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

.comparison-table .check {
    color: var(--primary-green);
    font-size: 1.25rem;
}

.comparison-table .x {
    color: var(--text-light);
}

/* Pro Waitlist Section */
.pro-waitlist {
    padding: 4rem 0;
    margin-top: 3rem;
}

.pro-waitlist-inner {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    background: rgba(46, 125, 50, 0.08);
    padding: 3rem 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08);
}

.pro-waitlist-inner h2 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.pro-waitlist-inner > p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 380px;
    margin: 0 auto;
}

.waitlist-form .form-control {
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form .form-control:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    outline: none;
}

.waitlist-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.waitlist-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ========================================
   About Page
   ======================================== */
.about-page {
    padding-top: 7rem;
}

/* New Hero Section */
.about-hero-new {
    text-align: center;
    padding: 5rem 0 4rem;
    background: #fff;
}

.about-pill {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.about-hero-new h1 {
    font-size: 2.75rem;
    max-width: 700px;
    margin: 0 auto 1.25rem;
    line-height: 1.2;
}

.about-hero-sub {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.about-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(46, 125, 50, 0.1) !important;
    color: #2E7D32 !important;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid #2E7D32;
    transition: all 0.2s ease;
}

.about-hero-btn:hover {
    background: rgba(46, 125, 50, 0.18) !important;
    transform: translateY(-1px);
}

/* Mission Section */
.about-mission {
    padding: 4rem 0;
    background: #fff;
}

.about-mission-inner {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(46, 125, 50, 0.08);
    padding: 3rem 3.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.08);
}

.about-mission-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.about-mission-inner h2 {
    margin-bottom: 1rem;
}

.about-mission-inner p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--text-light);
}

/* Values Section */
.about-content {
    padding: 4rem 0;
    background: var(--bg-light);
}

.about-content .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.about-content .section-header h2 {
    margin-bottom: 0.75rem;
}

.about-content .section-header p {
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(46, 125, 50, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.value-icon-circle {
    width: 56px;
    height: 56px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-card h4 {
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-light);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
    padding-top: 7rem;
    min-height: 100vh;
    background: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.contact-info h1 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item-text p {
    margin-bottom: 0;
    color: var(--text-light);
}

.contact-form-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form-card h3 {
    margin-bottom: 1.5rem;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 2rem;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--primary-green);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-green);
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

/* ========================================
   Usage Limit Modal
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-calculator {
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .navbar-nav.show {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card::after {
        display: none;
    }

    .loan-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-form-grid {
        grid-template-columns: 1fr;
    }

    .calc-form-grid .full-width {
        grid-column: span 1;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .comparison-form {
        grid-template-columns: 1fr;
    }

    .savings-display {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .about-hero-new h1 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 1.875rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
    }

    .loan-types {
        grid-template-columns: 1fr 1fr;
    }

    .calc-card-body {
        padding: 1.5rem;
    }

    .quick-calc-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FAQ Page
   ======================================== */
.faq-page {
    padding-top: 7rem;
    min-height: 100vh;
}

.faq-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-hero h1 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-hero h1 span {
    color: var(--primary-green);
}

.faq-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-item.open .faq-question {
    color: var(--primary-green);
}

.faq-question .faq-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary-green);
}

.faq-item.open .faq-question .faq-icon {
    background: var(--primary-green);
    color: white;
}

.faq-answer {
    display: none;
    padding: 0 0 1.25rem 0;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0;
}

.faq-contact {
    text-align: center;
    padding: 4rem 0;
    background: var(--bg-light);
    margin-top: 2rem;
}

.faq-contact h2 {
    margin-bottom: 1rem;
}

.faq-contact p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Nav CTA Button */
.navbar-nav .nav-cta {
    background-color: var(--primary-green);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.navbar-nav .nav-cta:hover {
    background-color: var(--primary-green-dark);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-cta::after {
    display: none !important;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-green { color: var(--primary-green); }
.text-muted { color: var(--text-light); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }
