:root {
    --primary: #0D2B5E;
    --primary-dark: #071D3E;
    --secondary: #1E4B8C;
    --accent: #F47920;
    --light: #F4F7FA;
    --text: #333333;
    --text-light: #ffffff;
    --gray-light: #E2E8F0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Utility bar */
.utility-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}
.utility-bar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.utility-bar a:hover {
    color: var(--accent);
}

/* Main header */
.main-header {
    background: var(--primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-img {
    max-height: 50px;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}
nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}
nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}
nav a:hover {
    color: var(--accent);
}
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 220px;
    padding: 1rem 0;
    z-index: 1000;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    list-style: none;
}
.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text);
    white-space: nowrap;
    font-weight: 400;
}
.dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
}

/* Hero banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.hero-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-banner .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.hero-banner .cta-button:hover {
    background: #e0681a;
}

/* Performance metrics */
.performance-metrics {
    background: white;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-bottom: 1px solid var(--gray-light);
}
.metric-card {
    text-align: center;
    padding: 0;
    background: none;
}
.metric-value {
    font-size: 2.5rem;
    color: var(--primary);
}
.metric-label {
    font-size: 0.95rem;
    color: var(--text);
}

/* Services grid (reused from original but restyled) */
.services-preview {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}
.services-preview h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}
.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.service-card p {
    margin-bottom: 1.5rem;
}
.service-card a {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.service-card a:hover {
    text-decoration: underline;
}

/* Why section */
.why-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}
.why-section h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.why-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}
.why-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.why-card p {
    font-size: 0.95rem;
    color: var(--text);
}

/* Service detail page (Inbound DIDs) */
.service-detail-section {
    background: var(--light);
}

.service-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.service-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.service-hero .service-subhead {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2rem;
}
.service-hero .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.service-hero .cta-button:hover {
    background: #e0681a;
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.feature-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.feature-card p {
    font-size: 0.95rem;
    color: var(--text);
}

.service-features {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    text-align: center;
}
.service-features h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}
.feature-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}
.feature-list li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.implementation-details {
    margin-bottom: 3rem;
    text-align: center;
}
.implementation-details h3 {
    color: var(--primary);
    margin-bottom: 2rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
}
.benefit-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.benefit-card p {
    font-size: 0.95rem;
    color: var(--text);
}

.service-cta {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
}
.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.service-cta .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.service-cta .cta-button:hover {
    background: #e0681a;
}

/* Network section */
.network-section {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}
.network-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.network-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    font-weight: 600;
    color: var(--primary);
}
.network-stats span {
    font-size: 1.2rem;
}
.cta-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.cta-link:hover {
    text-decoration: underline;
}

/* Map */
#serviceCoverageMap {
    height: 450px;
    margin: 2rem auto;
    max-width: 1100px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
}

/* Contact CTA */
.contact-cta {
    background: var(--primary);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}
.contact-cta h2 {
    margin-bottom: 1rem;
}
.contact-cta .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}
.contact-cta .cta-button:hover {
    background: #e0681a;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}
.footer-col {
    flex: 1;
    min-width: 180px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-col a:hover {
    color: var(--accent);
}
.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
}
.footer-address {
    line-height: 1.6;
}

/* Network page specific styles */

.network-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.network-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.network-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-top: 1.5rem;
}

.infrastructure-section {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}
.infrastructure-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.infrastructure-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.points-section {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}
.points-section h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 2rem auto 0;
}
.point-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.point-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}
.point-label {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.map-section {
    padding: 2rem;
    background: white;
}

.quality-section {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}
.quality-section h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.quality-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.quality-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.quality-card p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1rem;
}

/* SIP Trunking / Termination page */
.termination-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.termination-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.termination-hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2rem;
}
.termination-hero .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.termination-hero .cta-button:hover {
    background: #e0681a;
}

.how-it-works {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}
.how-it-works h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.how-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}
.how-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.deployment-options {
    padding: 4rem 2rem;
    background: var(--light);
    text-align: center;
}
.deployment-options h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.deployment-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
}
.deployment-card.featured {
    border: 2px solid var(--accent);
}
.deployment-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}
.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.termination-cta {
    background: var(--primary);
    padding: 3rem 2rem;
    text-align: center;
}
.termination-cta .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.termination-cta .cta-button:hover {
    background: #e0681a;
}

/* About page */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.about-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.who-we-are,
.ownership-section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.who-we-are h2,
.ownership-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.who-we-are p,
.ownership-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.ownership-section {
    background: white;
}

.about-stats {
    background: var(--primary);
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: center;
    color: white;
}
.stat-box {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.headquarters-section {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.headquarters-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.headquarters-section a {
    color: var(--accent);
    text-decoration: none;
}

.about-cta {
    background: var(--primary);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.about-cta h2 {
    margin-bottom: 1rem;
}
.about-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
}
.about-cta .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.about-cta .cta-button:hover {
    background: #e0681a;
}

/* Contact page */
.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}
.contact-info h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}
.info-item {
    margin-bottom: 2rem;
}
.info-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.info-item a {
    color: var(--accent);
    text-decoration: none;
}
.info-item .note {
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 0.5rem;
}

.contact-form {
    flex: 2;
    min-width: 400px;
}
.contact-form h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.form-intro {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.required-note {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-group .error {
    color: var(--accent);
    font-size: 0.85rem;
}

.consent label {
    font-weight: 400;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.consent input[type="checkbox"] {
    width: auto;
}

.contact-form .cta-button {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.contact-form .cta-button:hover {
    background: #0A2248;
}

.form-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text);
}

/* Pricing page */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}
.pricing-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pricing-hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 2rem;
}

.pricing-benefits {
    padding: 4rem 2rem;
    background: white;
    text-align: center;
}
.pricing-benefits h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}
.pricing-benefits .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.pricing-benefits .benefit-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}
.pricing-benefits .benefit-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.pricing-benefits .benefit-card p {
    font-size: 0.95rem;
    color: var(--text);
}

#pricing-form-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.pricing-form-group {
    margin-bottom: 1.25rem;
}
.pricing-form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.pricing-form-group input,
.pricing-form-group select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}
.pricing-form .cta-button {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.pricing-form .cta-button:hover {
    background: #0A2248;
}

/* Legal pages (SLA) */
.legal-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1A365D 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}
.legal-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-layout {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-toc {
    flex: 0 0 220px;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.legal-toc h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.legal-toc ul {
    list-style: none;
    padding: 0;
}
.legal-toc li {
    margin-bottom: 0.5rem;
}
.legal-toc a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
}
.legal-toc a:hover {
    color: var(--accent);
}

.legal-content {
    flex: 1;
    min-width: 0;
}

.legal-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    scroll-margin-top: 2rem;
}
.legal-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.legal-section a {
    color: var(--accent);
    text-decoration: none;
}
.legal-section a:hover {
    text-decoration: underline;
}

.legal-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.uptime-badge {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}
.uptime-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}
.uptime-label {
    font-size: 1.1rem;
    color: var(--text);
}

.sla-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.sla-table th,
.sla-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}
.sla-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.sla-table tr:nth-child(even) {
    background: var(--light);
}

.sla-cta {
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 2rem;
}
.sla-cta h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}
.sla-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.inline-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.inline-form input[type="email"] {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 250px;
}
.inline-form .cta-button {
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.inline-form .cta-button:hover {
    background: #e0681a;
}

/* Calculator */
.calculator-form {
    margin: 1rem 0;
}
.calc-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.calc-group {
    flex: 1;
    min-width: 180px;
}
.calc-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.calc-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}
.calculator-form .cta-button {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.calculator-form .cta-button:hover {
    background: #0A2248;
}

.credit-result {
    margin-top: 1rem;
}
.credit-result-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}
.credit-result-box h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.credit-result-box .calc-note {
    font-size: 0.85rem;
    color: var(--text);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* adjust based on header/footer height */
    padding: 2rem;
    background: var(--light);
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}

.login-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--text);
}

.login-form .form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.login-form .cta-button {
    width: 100%;
    margin-top: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.login-form .cta-button:hover {
    background: #0A2248;
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Error message styling (reuse existing .error if defined, else add) */
.error {
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Admin contact submissions page */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.search-form {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form input {
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
    width: 300px;
    max-width: 100%;
}

.search-form button {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.search-form button:hover {
    background: var(--primary-dark);
}

.search-form a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 1rem;
}

.search-form a:hover {
    text-decoration: underline;
}

.charts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    flex: 1;
    min-width: 400px;
    height: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.data-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.data-table th a {
    color: white;
    text-decoration: none;
    display: block;
}

.data-table th a:hover {
    color: var(--accent);
}

.data-table tr:nth-child(even) {
    background: var(--light);
}

.data-table tr:hover {
    background: #f0f4f8;
}

.data-table .truncate {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

/* Account page */
.account-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.account-container .login-card {
    max-width: 100%;
}

@media (max-width: 768px) {
    .legal-layout {
        flex-direction: column;
    }
    .legal-toc {
        position: static;
        flex: none;
    }
    .utility-bar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .main-header {
        flex-direction: column;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
    .dropdown-menu a {
        color: white;
    }
    .performance-metrics {
        flex-wrap: wrap;
        gap: 2rem;
    }
    .network-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .charts-row {
        flex-direction: column;
    }
    .chart-container {
        min-width: 100%;
        height: 300px;
    }
    .search-form {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-form input {
        width: 100%;
    }
}
