/* ==========================================
   Mhadhiri SACCO - Main Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    --primary: #1a5f4a;
    --primary-dark: #0f3d2f;
    --primary-light: #2d7a5f;
    --accent: #d4a574;
    --accent-light: #e8c9a4;
    --bg-cream: #faf8f4;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e5e1d8;
    --transition-speed: 0.3s;
}

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

#mainContent {
    min-height: calc(100vh - 400px);
    transition: opacity 0.3s ease-in-out;
    display: block !important; /* Prevents accidental hiding */
    opacity: 1;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    transition: all var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
}

.top-bar {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-link {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.top-bar-link:hover {
    opacity: 1;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}

.top-bar-links a:hover {
    opacity: 1;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    transition: background-color var(--transition-speed);
}

.logo:hover {
    background: rgba(26, 95, 74, 0.06);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
}

.logo-mark img {
    width: auto;
    height: 64px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-speed);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    border: 2px solid var(--accent);
    display: inline-block;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all var(--transition-speed);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1000;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 25px;
}

.mobile-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    padding: 10px 0;
    border-bottom: 2px solid var(--border);
    transition: color var(--transition-speed);
}

.mobile-nav ul li a:hover {
    color: var(--primary);
}

.mobile-nav .cta-button {
    display: block;
    text-align: center;
    margin-top: 30px;
}

/* Page Content */
.page-content {
    min-height: calc(100vh - 400px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: white;
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.hero--spacious {
    padding: 80px 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(50px) translateY(50px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-primary, .btn-secondary {
    padding: 16px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-speed);
    display: inline-block;
    border: 2px solid;
}

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

.btn-primary:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(400px); opacity: 0; }
}

input.error, select.error, textarea.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px 30px;
    color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 400px;
    font-weight: 500;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: slideInRight 0.3s ease-out forwards;
}
.notification.error { background: #e74c3c; }
.notification.success { background: #27ae60; }
.notification.info { background: #3498db; }
.notification.exiting {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.2s ease-in;
}

/* Sections */
.section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-about {
    background: var(--bg-white); 
    margin: 0; 
    padding: 80px 40px;
}

.values {
    max-width: 1400px; 
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    text-align: justify;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-white);
    padding: 45px 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 35px 30px;
    text-align: center;
}

.product-header--large{
    background: linear-gradient(135deg, #d4a574, #c89160); 
}

.product-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.product-header p {
    opacity: 0.9;
}

.product-body {
    padding: 35px 30px;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.product-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.learn-more {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.learn-more:hover {
    background: var(--primary);
    color: white;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 50px 45px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 74, 0.3);
}

.submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Downloads */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.download-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.download-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.download-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.download-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    transition: all var(--transition-speed);
}

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

/* Press Centre */
.press-grid {
    display: grid;
    gap: 30px;
}

.press-item {
    background: var(--bg-white);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    transition: all var(--transition-speed);
}

.press-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.press-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.press-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.press-item p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-speed);
}

.read-more:hover {
    gap: 12px;
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 80px 40px;
}

.stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--accent-light);
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info-card {
    background: var(--bg-white);
    padding: 40px 35px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-info-card p {
    color: var(--text-gray);
}

.contact-info-card a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-content {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 0 8px var(--bg-cream);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 70px 40px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-brand img {
    height: 58px;
    width: auto;
    display: block;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 6px 8px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav { padding: 20px 30px; }
    .top-bar-content { padding: 0 30px; }
    .section { padding: 80px 30px; }
    .hero { padding: 100px 30px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
    .products-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links, nav .cta-button { display: none; }
    .top-bar { font-size: 0.8rem; }
    .top-bar-content { flex-direction: column; gap: 10px; padding: 10px 20px; text-align: center; }
    .top-bar-links { display: flex; gap: 15px; }
    .top-bar-links a { margin-left: 0; }
    nav { padding: 15px 20px; }
    .logo { padding: 2px 0; }
    .logo-mark { padding: 6px 8px; border-radius: 10px; }
    .logo-mark img { height: 52px; }
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2rem; margin-bottom: 20px; }
    .hero p { font-size: 1rem; margin-bottom: 30px; }
    .section { padding: 50px 20px; }
    .section-header h2 { font-size: 2rem; margin-bottom: 15px; }
    .section-header p { font-size: 1rem; }
    .section-header { margin-bottom: 40px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .btn-primary, .btn-secondary { text-align: center; width: 100%; }
    .stats-section { padding: 50px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .stat-item h3 { font-size: 2.5rem; }
    .stat-item p { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; gap: 25px; }
    .feature-card { padding: 35px 25px; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.8rem; }
    .feature-card h3 { font-size: 1.3rem; }
    .products-grid { grid-template-columns: 1fr; gap: 25px; }
    .product-header { padding: 30px 25px; }
    .product-header h3 { font-size: 1.5rem; }
    .product-body { padding: 30px 25px; }
    .form-container { padding: 35px 25px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-container h3 { font-size: 1.3rem; margin-bottom: 25px; }
    .downloads-grid { grid-template-columns: 1fr; gap: 20px; }
    .download-card { padding: 25px; }
    .press-item { padding: 25px 20px; }
    .press-item h3 { font-size: 1.3rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 25px; }
    .contact-info-card { padding: 30px 25px; }
    footer { padding: 50px 20px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 35px; }
    .timeline::before { left: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; }
    .timeline-year { left: 20px; transform: translateX(0); width: 60px; height: 60px; font-size: 0.9rem; }
    .timeline-item { margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.7rem; }
    .logo-mark img { height: 44px; }
    .stats-grid { grid-template-columns: 1fr; gap: 25px; }
    .stat-item h3 { font-size: 2.2rem; }
    .btn-primary, .btn-secondary { padding: 14px 30px; font-size: 1rem; }
    .form-container { padding: 25px 20px; }
    .feature-card h3 { font-size: 1.2rem; }
    .product-header h3 { font-size: 1.4rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .downloads-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-tagline {
    opacity: 0.8; 
    margin-bottom: 20px;
}

.footer-license {
    opacity: 0.7;
    font-size: 0.9rem;
}

.required {
  color: #e74c3c;
}

.form-group--right {
  text-align: right;
}

.link-forgot {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.link-forgot:hover {
  text-decoration: underline;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-gray);
}

.link-signup {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.link-signup:hover {
  text-decoration: underline;
}

.form-container--wide {
  max-width: 800px;
}

.form-section-title {
  color: var(--primary);
  margin-bottom: 30px;
}

.form-section-title--spaced {
  margin-top: 40px;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group--spaced {
  margin-top: 30px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-input {
  width: auto;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
}

.link-primary:hover {
  text-decoration: underline;
}

.tech_support{
    text-align: center; 
    margin-top: 20px; 
    color: var(--text-gray); 
    font-size: 0.9rem;
}
