/* Critical CSS - Above the fold styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #ffffff;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

dfn {
    font-style: normal;
    font-weight: 500;
    color: var(--primary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    text-align: center;
}

.hero h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Use Cases Section */
.use-cases {
    padding: 4rem 0;
    background: var(--surface);
}

.use-cases h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case {
    background: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.use-case h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    background: var(--surface);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    background: var(--background);
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}

/* Print styles */
@media print {
    header, footer, .hero-actions, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}
/* Addit
ional styles for content pages */

/* Breadcrumb */
.breadcrumb {
    background: var(--surface);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-secondary);
}

/* Page Hero */
.page-hero {
    padding: 3rem 0;
    background: var(--surface);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.content-article {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.content-article h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.content-article h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.content-article p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content-article ul,
.content-article ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-article li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Formula boxes */
.formula-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.formula-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.formula-box math {
    display: block;
    text-align: center;
    font-size: 1.1rem;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.pros {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}

.cons {
    background: #fef2f2;
    border-left: 4px solid var(--error);
}

.pros h4 {
    color: var(--success);
    margin-bottom: 1rem;
}

.cons h4 {
    color: var(--error);
    margin-bottom: 1rem;
}

/* Steps */
.steps-container {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.application {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.application h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Best Practices */
.best-practices h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: var(--surface);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Examples Page Styles */
.examples-section {
    padding: 3rem 0;
}

.example-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.example-header {
    background: var(--surface);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.example-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.example-type {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.example-content {
    padding: 2rem;
}

.example-description h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.example-solution {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.formula-step,
.calculation-step {
    margin: 1rem 0;
}

.formula-step code,
.calculation-step code {
    display: block;
    background: var(--background);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    margin: 0.5rem 0;
    border-left: 3px solid var(--primary-color);
}

.result-highlight {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    margin: 1.5rem 0;
}

.divided-diff-table {
    margin: 1.5rem 0;
}

.divided-diff-table h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.example-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Practice Section */
.practice-section {
    padding: 3rem 0;
    background: var(--surface);
}

.practice-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.practice-section > .container > p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.practice-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.practice-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card details {
    margin: 1rem 0;
}

.practice-card summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem;
    background: var(--surface);
    border-radius: 4px;
}

.practice-card details p {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: 4px;
    border-left: 3px solid var(--success);
}

/* Tips Section */
.tips-section {
    padding: 3rem 0;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
}

.tip-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}

.tip-card li:last-child {
    border-bottom: none;
}

.tip-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .example-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}/*
 API Documentation Styles */

.api-info {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.api-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.api-url {
    background: var(--background);
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
    border: 1px solid var(--border);
    display: block;
    margin: 0.5rem 0;
}

.endpoint-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    margin: 2rem 0;
    overflow: hidden;
}

.endpoint-header {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.http-method {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.http-method.get {
    background: var(--success);
    color: white;
}

.http-method.post {
    background: var(--primary-color);
    color: white;
}

.endpoint-header code {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.params-table th,
.params-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.params-table th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
}

.params-table code {
    background: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
}

.error-examples {
    margin: 2rem 0;
}

.error-examples h3 {
    color: var(--error);
    margin: 2rem 0 1rem;
}

.embed-preview {
    margin: 2rem 0;
}

.embed-container {
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--surface);
}

.usage-info {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.usage-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.usage-info ul {
    margin-bottom: 1.5rem;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    text-align: center;
}

.support-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.support-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.support-card a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for API docs */
@media (max-width: 768px) {
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .params-table {
        font-size: 0.875rem;
    }
    
    .params-table th,
    .params-table td {
        padding: 0.5rem;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 1rem;
    }
    
    .api-url {
        font-size: 0.875rem;
        word-break: break-all;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
}/* About
 Page Styles */

.feature-item,
.commitment-item,
.user-group {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.feature-item h3,
.commitment-item h3,
.user-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.commitment-grid,
.users-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Contact Page Styles */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group .help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    text-align: center;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: var(--error);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--success);
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error);
}

/* Success message */
.success-message {
    background: #f0fdf4;
    color: var(--success);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--success);
    margin-bottom: 2rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .commitment-grid,
    .users-section,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}/* Ho
me Page Calculator Styles */
.home-calculator {
    padding: 3rem 0;
    background: var(--background);
}

.home-calculator .calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.home-calculator .calculator-panel,
.home-calculator .results-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.home-calculator .calculator-panel h2,
.home-calculator .results-panel h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.home-calculator .calculator-panel h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

/* Screen reader only class for home calculator */
.home-calculator .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments for home calculator */
@media (max-width: 1024px) {
    .home-calculator .calculator-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .home-calculator .calculator-panel,
    .home-calculator .results-panel {
        padding: 1.5rem;
    }
    
    .home-calculator .point-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .home-calculator .remove-point {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 0.5rem;
    }
    
    .home-calculator .calculator-actions,
    .home-calculator .results-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .home-calculator {
        padding: 2rem 0;
    }
    
    .home-calculator .calculator-panel,
    .home-calculator .results-panel {
        padding: 1rem;
    }
    
    .home-calculator .point-row {
        grid-template-columns: 1fr;
    }
}