/* Heardle MSP Brand - Light & Fresh Design */
/* Using Style Guide Colors (CMYK converted to RGB) */

/* Urbane Rounded Font Face Declarations */
@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-thin.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-thin.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-extra-light.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-extra-light.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-extra-light.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-light.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-light.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-medium.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-medium.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-demi-bold.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-demi-bold.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-demi-bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-bold.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-bold.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbane Rounded';
    src: url('Style Guide/Urbane Rounded_font_family/urbane-rounded-heavy.woff2') format('woff2'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-heavy.woff') format('woff'),
         url('Style Guide/Urbane Rounded_font_family/urbane-rounded-heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors from Style Guide (CMYK to RGB conversion) */
    --primary-dark: #0a0e27;      /* C=99 M=95 Y=41 K=47 */
    --primary-blue: #1e90ff;     /* C=92 M=82 Y=1 K=0 - Royal Blue */
    --accent-green: #E6E659;     /* Acid Green */
    --mint-green: #98FB98;       /* Mint Green */
    
    /* Light & Fresh Colors */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --light-gray: #e9ecef;
    --text-primary: #0a0e27;
    --text-secondary: #6c757d;
    --text-light: rgba(10, 14, 39, 0.7);
    
    /* Fonts from Style Guide */
    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Urbane Rounded', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* Login page styles moved to body.login-page */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* YOUR heard Branding */
.heard-me {
    text-transform: none;
}

/* Logo Icon Wrapper - Contains the logomark image (icon only, no text) */
.logo-icon-wrapper {
    width: 120px;
    height: 120px;
    overflow: hidden;
    display: block;
    position: relative;
}

.logo-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.header .logo-text {
    color: var(--accent-green); /* Acid green for header */
}

/* Logo Loader - Midnight Blue with Acid Green */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark); /* Midnight blue */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-wrapper {
    width: 240px;
    height: 240px;
    position: relative;
}

.loader-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulseColor 3s ease-in-out infinite;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.loader-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-blue);
    opacity: 0;
    mix-blend-mode: color;
    animation: brandColorCycle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes pulseColor {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(0) invert(1);
    }
    25% {
        transform: scale(1.1);
        opacity: 0.9;
        filter: brightness(0.4) invert(0.6);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
        filter: brightness(0.7) invert(0.3);
    }
    75% {
        transform: scale(1.1);
        opacity: 0.9;
        filter: brightness(1) invert(0);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: brightness(0) invert(1);
    }
}

@keyframes brandColorCycle {
    0%, 100% {
        opacity: 0;
        background: var(--primary-blue);
    }
    25% {
        opacity: 0.5;
        background: var(--primary-blue);
    }
    50% {
        opacity: 0.6;
        background: var(--mint-green);
    }
    75% {
        opacity: 0.6;
        background: var(--accent-green);
    }
}

/* Header Navigation - Midnight Blue with Acid Green */
.header {
    background: var(--primary-dark); /* Midnight blue */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

body.login-page .header {
    background: var(--primary-dark); /* Solid midnight blue */
    backdrop-filter: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 90px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 50px;
    overflow: visible; /* Ensure nothing is clipped */
    z-index: 2;
}

.header-cta-group {
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2;
    position: relative;
    margin-left: 3rem;
}

.header-cta-button {
    font-family: var(--font-display);
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(230, 230, 89, 0.3);
    text-decoration: none;
    display: inline-block;
}

.header-cta-button:hover {
    background: #d4d44a; /* Brighter acid green */
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 230, 89, 0.5);
    filter: brightness(1.1);
}

.header-cta-link {
    font-family: var(--font-display);
    color: var(--white);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none; /* Don't uppercase - we want "YOUR heard" */
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-cta-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.header-logo-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    display: block;
    overflow: visible;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(230, 230, 89, 0.4)) drop-shadow(0 0 12px rgba(230, 230, 89, 0.2));
}

.header-logo-wrapper:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(230, 230, 89, 0.5)) drop-shadow(0 0 15px rgba(230, 230, 89, 0.3));
}

.header-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.05) contrast(1.05);
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(50% - 3rem);
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    flex-shrink: 0;
}

.nav-left {
    order: 1;
}

.nav-center {
    order: 2;
    margin: 0 2rem;
    position: relative;
}

.nav-right {
    order: 3;
}

.nav-menu a {
    font-family: var(--font-display);
    text-decoration: none;
    color: var(--accent-green); /* Acid green for header nav */
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 230, 89, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
    z-index: -1;
}

.nav-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-menu a:hover {
    color: var(--white); /* White on hover */
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-green); /* Acid green underline */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: calc(100% - 24px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(230, 230, 89, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-green); /* Acid green for hamburger menu */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Desktop nav: house icon above Home */
@media (min-width: 769px) {
    .nav-menu li.nav-center a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding-top: 24px;
    }
    
    .nav-menu li.nav-center a::before {
        content: '';
        display: block;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6E659' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 1 !important;
        transform: translateX(-50%) !important;
        position: absolute;
        top: 4px;
        left: 50%;
        width: 16px;
        height: 16px;
        z-index: 1;
        background-color: transparent;
        border-radius: 0;
    }
    
    .nav-menu li.nav-center a:hover::before,
    .nav-menu li.nav-center a:focus::before,
    .nav-menu li.nav-center a:active::before,
    .nav-menu li.nav-center a.active::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E");
        opacity: 1 !important;
    }
    
    /* Use ::after for hover background on Home link */
    .nav-menu li.nav-center a::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(230, 230, 89, 0.1);
        border-radius: 6px;
        opacity: 0;
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: scale(0.8);
        z-index: -1;
    }
    
    .nav-menu li.nav-center a:hover::after {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section - Light & Fresh */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding-top: 20px;
    padding-bottom: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 144, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(127, 176, 105, 0.05) 0%, transparent 50%);
}

/* Video Wall Style Background */
.video-wall {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(10, 14, 39, 0.05) 0px,
            rgba(10, 14, 39, 0.05) 1px,
            transparent 1px,
            transparent 2px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(10, 14, 39, 0.05) 0px,
            rgba(10, 14, 39, 0.05) 1px,
            transparent 1px,
            transparent 2px
        );
    background-size: 40px 40px;
    opacity: 0.6;
    z-index: 1;
    overflow: hidden;
}

.video-wall video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-brand-name {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin: 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 700px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cta-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    text-decoration: none;
    font-family: var(--font-display);
}

.cta-button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 176, 105, 0.4);
}

.cta-primary {
    background: var(--accent-green) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 4px 15px rgba(230, 230, 89, 0.4);
    white-space: nowrap;
}

.cta-primary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.5);
}

.cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.cta-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-tertiary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-tertiary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.3);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Services Section - Light & Fresh */
.services {
    padding: 120px 20px;
    background: var(--white);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-green);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Full width services grid on service pages */
body.service-page .services-grid {
    max-width: 100%;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.service-points {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    text-align: left;
}

.service-points li {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-points li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.75rem;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card-link:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.35);
}

/* Solutions Section - Light & Fresh */
.solutions {
    padding: 120px 20px;
    background: var(--light-bg);
    position: relative;
}

.solutions-content {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
}

.solution-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(127, 176, 105, 0.15);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
    font-weight: 700;
}

.benefit h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.benefit p {
    color: var(--text-secondary);
}

/* Features Preview Section - Light & Fresh */
.features-preview {
    padding: 120px 20px;
    background: var(--white);
    position: relative;
}

.features-preview .section-title {
    color: var(--text-primary);
}

.features-demo {
    max-width: 600px;
    margin: 0 auto;
}

.features-board {
    background: var(--light-bg);
    padding: 4rem 3rem;
    border-radius: 20px;
    border: 2px solid var(--light-gray);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-box {
    padding: 15px 25px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-box:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.cta-demo {
    text-align: center;
}

.demo-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.demo-btn:hover {
    background: var(--accent-green);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(127, 176, 105, 0.4);
}

/* Contact Section - Light & Fresh */
.contact {
    padding: 120px 20px;
    background: var(--light-bg);
    position: relative;
}

.contact-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--light-gray);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.submit-button {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.submit-button:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 176, 105, 0.4);
}

/* Footer - Enhanced Design */
.footer {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1f3a 100%);
    color: var(--white);
    padding: 50px 20px 24px;
    margin-top: auto;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 230, 89, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 144, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

body.login-page .footer {
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 120px;
}

.footer-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-main-logo {
    height: 72px;
    width: 72px;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 0;
    background: transparent;
}

/* Simple footer nav */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: flex-end;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links-main a,
.footer-links-secondary a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.25s ease;
}

.footer-links-main a:hover,
.footer-links-secondary a:hover {
    color: var(--accent-green);
    transform: translateY(-1px);
}

.footer-links-secondary a {
    font-size: 0.85rem;
    text-transform: none;
    opacity: 0.85;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Legal Pages Styles */
.legal-page {
    padding: 120px 0 80px;
    background: var(--white);
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-content a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.legal-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 40px 16px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-main-logo {
        height: 56px;
        width: 56px;
    }
    
    .footer-tagline {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-nav a {
        text-align: center;
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
        box-shadow: 0 5px 20px rgba(10, 14, 39, 0.15);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: 
            0 30px 90px rgba(10, 14, 39, 0.2),
            0 15px 40px rgba(10, 14, 39, 0.12),
            0 5px 15px rgba(10, 14, 39, 0.08),
            0 0 0 2px rgba(255, 255, 255, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.2);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes expandLine {
    from {
        transform: translateX(-50%) scaleX(0);
    }
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(230, 230, 89, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(230, 230, 89, 0.6);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nbn-tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        position: relative;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 100px !important;
        right: auto !important;
        flex-direction: column !important;
        background: var(--primary-dark) !important; /* Midnight blue for mobile menu */
        width: 100% !important;
        max-width: 100vw !important;
        text-align: center !important;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3) !important;
        padding: 2rem 0 !important;
        border-top: 2px solid var(--accent-green) !important; /* Acid green border */
        gap: 0.5rem !important;
        z-index: 999 !important;
        height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
        transform: translateX(0) !important;
        margin: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .nav-menu.active {
        left: 0 !important;
        transform: translateX(0) !important;
    }
    
    .nav-menu li.nav-center {
        order: 1;
    }
    
    .nav-menu li.nav-left {
        order: 2;
    }
    
    .nav-menu li.nav-right {
        order: 3;
    }
    
    .nav-menu a {
        color: var(--accent-green); /* Acid green for mobile menu links */
        padding: 12px 20px;
        margin: 0 1rem;
        display: block;
    }
    
    .nav-menu a:hover {
        color: var(--white);
    }
    
    .header-cta-group {
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 0 auto;
    }

    .header-cta-button,
    .header-cta-link {
        font-size: 0.8rem;
        padding: 8px 18px;
        min-width: 180px;
        max-width: 220px;
        text-align: center;
        white-space: nowrap;
    }
    
    .menu-toggle {
        display: flex;
        justify-self: end;
        z-index: 1001;
    }
    
    .header-logo {
        justify-self: start;
    }
    
    .header-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .hero {
        padding-top: 15px;
        padding-bottom: 40px;
    }
    
    .hero-content {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .hero-brand-name {
        font-size: 2.6rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Home \"What we do\" cards as horizontal scroll on mobile */
    #services .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #services .service-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
    }

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

    .contact-form {
        padding: 2rem;
    }

    /* Disable scroll animations on mobile - make all content visible immediately */
    .service-card,
    .benefit,
    .features-board,
    section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .loader-logo-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .loader-logo-img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    
    .hero-content {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .hero-brand-name {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

}

/* Signup Wizard Styles */
.signup-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.signup-wizard-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.signup-wizard-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Debossed Heardle logo background for signup wizard */
.signup-wizard-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('Style Guide/Heardle Logomark (Colour).png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%);
}

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

.wizard-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.wizard-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Progress Indicator */
.wizard-progress {
    padding: 2rem 2rem 1rem;
    background: var(--light-bg);
    border-bottom: 2px solid var(--light-gray);
    position: relative;
    z-index: 5;
    background: var(--white);
    flex-shrink: 0;
}

.progress-bar {
    height: 4px;
    background: var(--light-gray);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 20%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--light-gray);
    z-index: 0;
}

.progress-step:first-child::before {
    display: none;
}

.progress-step.active::before,
.progress-step.completed::before {
    background: var(--accent-green);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.progress-step.completed .step-number {
    background: var(--accent-green);
    color: var(--white);
}

.progress-step.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-step.active .step-label {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Wizard Steps */
.signup-wizard-form {
    padding: 2rem;
    padding-right: 2.5rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 117, 125, 0.5) transparent;
}

/* Custom scrollbar for wizard form */
.signup-wizard-form::-webkit-scrollbar {
    width: 8px;
}

.signup-wizard-form::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 10px;
}

.signup-wizard-form::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.signup-wizard-form::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 144, 255, 0.6);
    background-clip: padding-box;
}

.wizard-step {
    display: none;
    animation: fadeInSlide 0.4s ease;
}

.wizard-step.active {
    display: block;
}

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

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Plan Selection */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--white);
    border: 3px solid var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.15);
}

.plan-card.selected {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(230, 230, 89, 0.05), rgba(30, 144, 255, 0.05));
    box-shadow: 0 10px 30px rgba(230, 230, 89, 0.2);
}

.plan-card.featured {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.plan-badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    min-height: 250px;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

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

.plan-select-btn {
    width: 100%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.plan-select-btn:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.4);
}

.plan-card.selected .plan-select-btn {
    background: var(--accent-green);
}

/* Hardware Preview */
.hardware-preview {
    margin-bottom: 2rem;
}

.hardware-package {
    background: var(--light-bg);
    border: 2px solid var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
}

.hardware-package h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.hardware-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.hardware-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--light-gray);
    text-align: center;
}

.hardware-item-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hardware-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.hardware-item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hardware-placeholder {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.hardware-note {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05), rgba(230, 230, 89, 0.05));
    border-left: 4px solid var(--accent-green);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.hardware-note p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hardware-note p:last-child {
    margin-bottom: 0;
}

/* NBN Setup */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nbn-note {
    background: var(--light-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.nbn-note h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.nbn-note ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.nbn-note li {
    color: var(--text-primary);
    font-weight: 500;
}

/* Review Summary */
.review-summary {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-item {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.review-item strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.review-item span {
    color: var(--text-secondary);
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    accent-color: var(--primary-blue);
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
    margin-top: 2rem;
}

.wizard-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wizard-btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    margin-left: auto;
}

.wizard-btn-primary:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.4);
}

.wizard-btn-secondary {
    background: var(--light-gray);
    color: var(--text-primary);
}

.wizard-btn-secondary:hover {
    background: var(--text-secondary);
    color: var(--white);
}

/* Form Elements in Wizard */
.signup-wizard-form .form-group {
    margin-bottom: 1.5rem;
}

.signup-wizard-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.signup-wizard-form .form-group input,
.signup-wizard-form .form-group select,
.signup-wizard-form .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.signup-wizard-form .form-group input:focus,
.signup-wizard-form .form-group select:focus,
.signup-wizard-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.signup-wizard-form .form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .signup-wizard-container {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .signup-wizard-container::before {
        width: 300px;
        height: 300px;
        opacity: 0.03;
    }
    
    .signup-wizard-form {
        padding: 2rem 1.5rem;
        padding-right: 1.25rem;
    }
    
    .wizard-progress {
        padding: 1.5rem 1rem 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .wizard-btn {
        width: 100%;
    }
    
    .wizard-btn-primary {
        margin-left: 0;
    }
}

/* Legal Modal Styles */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.legal-modal-overlay.active {
    display: flex;
}

.legal-modal-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.legal-modal-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('Style Guide/Heardle Logomark (Colour).png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%);
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.legal-modal-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.legal-modal-content {
    padding: 3rem;
    padding-right: 2.5rem; /* Space for scrollbar */
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* Custom scrollbar that respects rounded corners */
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 117, 125, 0.5) transparent;
}

/* Custom scrollbar styling for webkit browsers */
.legal-modal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 144, 255, 0.6);
    background-clip: padding-box;
}

.legal-modal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    padding-right: 50px;
}

.legal-modal-content .last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

.legal-modal-content section {
    margin-bottom: 2.5rem;
}

.legal-modal-content section:last-child {
    margin-bottom: 0;
}

.legal-modal-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.5rem;
}

.legal-modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-modal-content p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-modal-content ul,
.legal-modal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-primary);
}

.legal-modal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-modal-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.legal-modal-content a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.legal-modal-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.legal-modal-content .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* ============================================
   REUSABLE MODAL CLASSES - Use for all modals
   ============================================ */

/* Generic Modal Overlay - Use for any modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

/* Generic Modal Container - Includes rounded corners and logo background */
.modal-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Debossed Heardle logo background for all modals */
.modal-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('Style Guide/Heardle Logomark (Colour).png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    filter: grayscale(100%);
}

/* Generic Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Generic Modal Content - Scrollable area with custom scrollbar */
.modal-content {
    padding: 3rem;
    padding-right: 2.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 117, 125, 0.5) transparent;
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 144, 255, 0.6);
    background-clip: padding-box;
}

/* Modal Loading State */
.modal-content .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-container::before {
        width: 300px;
        height: 300px;
        opacity: 0.03;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 768px) {
    .legal-modal-container {
        max-width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .legal-modal-container::before {
        width: 300px;
        height: 300px;
        opacity: 0.03;
    }
    
    .legal-modal-content {
        padding: 2rem 1.5rem;
        padding-right: 1.25rem;
    }
    
    .legal-modal-content h1 {
        font-size: 2rem;
        padding-right: 40px;
    }
    
    .legal-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-modal-content h3 {
        font-size: 1.2rem;
    }
}

/* Scroll to Top FAB */
.scroll-to-top-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(230, 230, 89, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.scroll-to-top-fab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-fab:hover {
    background: var(--accent-green);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 230, 89, 0.6);
    filter: brightness(1.1);
}

.scroll-to-top-fab:active {
    transform: translateY(-2px) scale(1);
}

.scroll-to-top-fab svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Image optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Preload critical resources */
video {
    will-change: transform;
}

/* ============================================
   NBN CHECKER PAGE
   ============================================ */

/* Floating Scroll Alert */
.scroll-alert {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    animation: floatUpDown 3s ease-in-out infinite;
    pointer-events: none;
}

.scroll-alert-content {
    background: var(--accent-green);
    color: var(--primary-dark);
    padding: 12px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(230, 230, 89, 0.4);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.scroll-alert-content svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Hide scroll alert after scrolling or after 10 seconds */
.scroll-alert.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .scroll-alert {
        right: 10px;
        top: auto;
        bottom: 100px;
        transform: none;
    }
    
    .scroll-alert-content {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}

.nbn-checker-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a4e 100%);
    padding: 60px 0 40px;
    text-align: center;
    color: var(--white);
}

.nbn-checker-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}

.nbn-checker-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.nbn-checker-section {
    padding: 50px 0;
    background: var(--white);
}

.nbn-checker-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Full width cards for service pages */
body.service-page .nbn-checker-container {
    max-width: 100%;
    padding: 0 20px;
}

body.service-page .nbn-checker-form-wrapper {
    max-width: 100%;
}

body.service-page .services-grid {
    max-width: 100%;
}

.nbn-checker-form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Full width form wrapper on service pages */
body.service-page .nbn-checker-form-wrapper {
    max-width: 100%;
}

.nbn-checker-form-wrapper h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.nbn-check-button {
    width: 100%;
    padding: 16px 32px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.nbn-check-button:hover {
    background: #d4d44a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 230, 89, 0.4);
}

.nbn-check-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.nbn-results-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

.nbn-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.nbn-results-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--primary-dark);
}

.nbn-results-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nbn-results-close:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

.nbn-result-address h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.nbn-status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.nbn-result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nbn-detail-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.nbn-detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.nbn-detail-content h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.nbn-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.nbn-speeds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.nbn-speed-badge {
    background: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    border: 1px solid var(--accent-green);
}

.nbn-result-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2a4e 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 30px;
}

.nbn-cta-text {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.nbn-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.nbn-cta-primary,
.nbn-cta-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nbn-cta-primary {
    background: var(--accent-green);
    color: var(--primary-dark);
}

.nbn-cta-primary:hover {
    background: #d4d44a;
    transform: translateY(-2px);
}

.nbn-cta-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.nbn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nbn-result-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #f4a261;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

/* Address Autocomplete Styles */
.address-autocomplete-wrapper {
    position: relative;
    width: 100%;
}

#checker-address {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s ease;
}

#checker-address:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: -2px;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.selected {
    background: var(--light-bg);
    color: var(--primary-dark);
}

.address-suggestion-item .suggestion-main {
    font-weight: 500;
    margin-bottom: 2px;
}

.address-suggestion-item .suggestion-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.nbn-info-section {
    margin-top: 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, var(--white) 100%);
    width: 100%;
}

.nbn-info-section .container {
    max-width: 100%;
    padding: 0 20px;
}

.nbn-info-hero {
    text-align: center;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.nbn-info-hero h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.nbn-info-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.nbn-tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.nbn-tech-card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.nbn-tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-green);
}

.nbn-tech-card.featured {
    border-color: var(--accent-green);
    box-shadow: 0 4px 20px rgba(230, 230, 89, 0.2);
    background: linear-gradient(135deg, #fffef0 0%, var(--white) 100%);
    padding-bottom: 45px;
}

.nbn-tech-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-green);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    white-space: nowrap;
}

.nbn-tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.nbn-tech-card h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    text-align: center;
}

.nbn-tech-name {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.nbn-tech-desc {
    color: var(--text-primary);
    line-height: 1.4;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.nbn-pros-cons {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nbn-pros,
.nbn-cons {
    font-size: 0.75rem;
}

.nbn-pros h5,
.nbn-cons h5 {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nbn-pros h5 {
    color: #7fb069;
}

.nbn-cons h5 {
    color: #e63946;
}

.nbn-pros ul,
.nbn-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nbn-pros li,
.nbn-cons li {
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
    color: var(--text-primary);
}

.nbn-pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7fb069;
    font-weight: bold;
}

.nbn-cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #e63946;
    font-weight: bold;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

body.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--mint-green) 0%, #a8e6a8 50%, #b8f0b8 100%);
    position: relative;
    overflow-x: hidden;
}

body.login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.05) 100px,
            rgba(255, 255, 255, 0.05) 200px
        );
    pointer-events: none;
    z-index: 0;
    animation: subtleMove 20s linear infinite;
}

/* Duplicate rules removed - using body.login-page::before and ::after instead */

@keyframes subtleMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 1;
    min-height: 0;
    width: 100%;
}

.login-main::before {
    content: '';
    position: fixed;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.login-main::after {
    content: '';
    position: fixed;
    bottom: 15%;
    left: 15%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
}

.login-container {
    width: 100%;
    max-width: 650px; /* Significantly wider */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 40px;
    z-index: -1;
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-card:hover ~ .login-container::before,
.login-container:hover::before {
    opacity: 1;
}

.login-card {
    background: var(--white);
    border-radius: 28px;
    padding: 50px 70px;
    box-shadow: 
        0 30px 90px rgba(10, 14, 39, 0.2),
        0 15px 40px rgba(10, 14, 39, 0.12),
        0 5px 15px rgba(10, 14, 39, 0.08),
        0 0 0 2px rgba(255, 255, 255, 0.5),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: floatIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform-origin: center;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.1) 0%, 
        rgba(10, 14, 39, 0.05) 50%,
        rgba(10, 14, 39, 0.1) 100%);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    border-radius: 28px 28px 0 0;
}

.login-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 40px 120px rgba(10, 14, 39, 0.25),
        0 25px 60px rgba(10, 14, 39, 0.15),
        0 12px 30px rgba(10, 14, 39, 0.1),
        0 0 0 2px rgba(255, 255, 255, 0.7),
        0 0 0 6px rgba(255, 255, 255, 0.3),
        0 0 100px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.3) 100%);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

/* Logo removed - keeping styles commented in case needed later
.login-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    animation: logoFadeIn 0.6s ease 0.2s both;
}
*/

.login-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
    animation: slideInScale 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    position: relative;
}

.login-header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: var(--accent-green);
    border-radius: 2px;
    animation: expandLine 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    animation: fadeInUp 0.6s ease 0.5s both;
    opacity: 0;
}

.login-form {
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 24px !important;
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
    opacity: 0;
}

.login-form .form-group:nth-child(1) {
    animation-delay: 0.6s;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.75s;
}

.login-form .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    transition: color 0.3s ease;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100% !important;
    padding: 16px 18px !important;
    border: 2px solid var(--light-gray) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: var(--white) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-primary) !important;
    box-sizing: border-box !important;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none !important;
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 0 3px rgba(230, 230, 89, 0.15), 
                0 4px 12px rgba(230, 230, 89, 0.2) !important;
    transform: translateY(-2px) scale(1.01) !important;
    background: #fefefe !important;
}

.login-form input[type="email"]:hover,
.login-form input[type="password"]:hover {
    border-color: rgba(230, 230, 89, 0.6) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.login-form input::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.6 !important;
}

.password-input-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.password-input-wrapper:focus-within {
    transform: translateY(-2px);
}

.password-input-wrapper:focus-within .password-toggle {
    color: var(--accent-green);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--primary-dark);
    background: rgba(230, 230, 89, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.login-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    animation: fadeInUp 0.6s ease 0.9s both;
    opacity: 0;
}

.forgot-password-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
    opacity: 0.8;
}

.forgot-password-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    opacity: 1;
    transform: translateX(2px);
}

.forgot-password-link:hover::after {
    width: 100%;
}

.login-submit-button {
    width: 100%;
    padding: 16px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease 0.9s both, pulseGlow 2s ease-in-out 1.5s infinite;
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.login-submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-submit-button:active::before {
    width: 400px;
    height: 400px;
}

.login-submit-button:hover {
    background: #d4d44a;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(230, 230, 89, 0.6);
}

.login-submit-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(230, 230, 89, 0.4);
}

.login-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-submit-button svg {
    transition: transform 0.3s ease;
}

.login-submit-button:hover svg {
    transform: translateX(3px);
}

.login-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--light-gray);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
}

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

.login-demo-note {
    display: none !important; /* Hidden as requested */
    margin-top: 15px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0066cc;
}

/* Wizard error and success messages */
.wizard-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #c33;
}

/* ============================================
   CUSTOMER PORTAL
   ============================================ */

.portal-page {
    background: #f5f7fa;
}

.portal-header {
    background: var(--primary-dark); /* Match main header */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.portal-header .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

.portal-header .header-logo {
    justify-self: start;
}

.portal-header .nav-menu a {
    color: var(--white);
}

.portal-header .nav-menu a:hover,
.portal-header .nav-menu a.active {
    color: var(--accent-green);
}

.portal-header .portal-user-name {
    color: var(--white);
}

.portal-header .portal-logout-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.portal-header .portal-logout-btn:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    border-color: var(--accent-green);
}

.portal-header-title {
    font-family: 'Urbane Rounded', 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0;
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    position: relative;
    padding-bottom: 8px;
}

.portal-header-title .your-text {
    text-transform: uppercase;
    margin-right: 4px;
}

.portal-header-title .heard-text {
    text-transform: lowercase;
    margin-left: 4px;
}

.portal-header-title .title-underline {
    position: absolute;
    width: 42px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(230, 230, 89, 0.4);
}

.portal-header-title .heard-superscript {
    font-size: 0.65em;
    vertical-align: super;
    line-height: 0;
    margin-left: 1px;
    color: var(--white);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.portal-header .portal-user-menu {
    justify-self: end;
    grid-column: 3;
}

.portal-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Portal Footer */
.portal-footer {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 16px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.portal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.portal-footer-copyright {
    justify-self: start;
    grid-column: 1;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.portal-footer-brand {
    display: flex;
    align-items: center;
    justify-self: center;
    grid-column: 2;
}

.portal-footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.portal-footer-logo-link:hover {
    opacity: 0.8;
}

.portal-footer-logo {
    height: 60px;
    width: auto;
    display: block;
    margin: -18px 0; /* Negative margin to prevent footer height increase */
}

.portal-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-self: end;
    grid-column: 3;
}

.portal-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-divider {
    color: var(--light-gray);
    margin: 0 4px;
}

/* Portal Footer */
.portal-footer {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 16px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.portal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.portal-footer-copyright {
    justify-self: start;
    grid-column: 1;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.portal-footer-brand {
    display: flex;
    align-items: center;
    justify-self: center;
    grid-column: 2;
}

.portal-footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.portal-footer-logo-link:hover {
    opacity: 0.8;
}

.portal-footer-logo {
    height: 60px;
    width: auto;
    display: block;
    margin: -18px 0; /* Negative margin to prevent footer height increase */
}

.portal-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    justify-self: end;
    grid-column: 3;
}

.portal-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-divider {
    color: var(--light-gray);
    margin: 0 4px;
}

.portal-user-dropdown {
    position: relative;
}

.portal-user-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portal-user-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.portal-user-trigger .user-icon {
    width: 20px;
    height: 20px;
}

.portal-user-trigger .dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--white);
}

.portal-user-dropdown.active .portal-user-trigger .dropdown-arrow {
    transform: rotate(180deg);
}

.portal-user-name {
    font-weight: 500;
    color: var(--white);
}

.portal-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 8px;
}

.dropdown-user-header {
    padding: 16px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 4px;
    min-width: 220px;
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
}

.dropdown-account-number {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-support-code-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.dropdown-support-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.dropdown-support-code {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary-dark);
    letter-spacing: 1px;
    flex: 1;
    white-space: nowrap;
    min-width: 0;
}

.support-code-copy {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.support-code-copy:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-dark);
}

.support-code-copy:active {
    transform: scale(0.95);
}

.portal-user-dropdown.active .portal-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 14px;
}

.dropdown-logout-btn:hover {
    background: rgba(230, 57, 70, 0.08);
    color: #e63946;
}

.dropdown-logout-btn svg {
    color: #e63946;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.dropdown-logout-btn:hover svg {
    transform: translateX(2px);
}

.portal-main {
    padding: 40px 0 80px; /* Add bottom padding for fixed footer */
}

.portal-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.portal-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portal-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portal-nav-item:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

.portal-nav-item.active {
    background: var(--accent-green);
    color: var(--primary-dark);
}

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

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.portal-section-header {
    margin-bottom: 30px;
}

.portal-section-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.portal-section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.portal-stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portal-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.portal-stat-content h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}

.portal-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.portal-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.portal-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.portal-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portal-card h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.portal-activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portal-activity-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.portal-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-title {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.portal-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.portal-action-btn {
    padding: 15px;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--primary-dark);
}

.portal-action-btn:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

.portal-action-btn span:first-child {
    font-size: 2rem;
}

.portal-services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portal-service-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-card-header h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.service-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-status-badge.active {
    background: #7fb06920;
    color: #7fb069;
}

.service-card-details {
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.8;
}

.service-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.service-action-btn {
    padding: 10px 20px;
    border: 2px solid var(--accent-green);
    background: var(--white);
    color: var(--primary-dark);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-action-btn:hover {
    background: var(--accent-green);
}

.service-action-btn.secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.service-action-btn.secondary:hover {
    background: var(--text-secondary);
    color: var(--white);
}

.portal-chart-placeholder {
    padding: 60px;
    text-align: center;
    background: var(--light-gray);
    border-radius: 8px;
    color: var(--text-secondary);
}

.chart-note {
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: italic;
}

.portal-usage-stats {
    margin-top: 20px;
}

.usage-stat {
    margin-bottom: 20px;
}

.usage-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.usage-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.usage-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.billing-plan-info {
    line-height: 2;
    color: var(--text-primary);
}

.billing-cards-wrapper,
.usage-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.invoice-info {
    flex: 1;
}

.invoice-date {
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.invoice-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.invoice-download-btn {
    padding: 8px 16px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invoice-download-btn:hover {
    background: #d4d44a;
}

.portal-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.support-form {
    margin-top: 20px;
}

.support-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.support-submit-btn:hover {
    background: #d4d44a;
}

.support-contact-info {
    line-height: 2.5;
    color: var(--text-primary);
    margin-top: 20px;
}

.settings-form {
    margin-top: 20px;
}

.settings-save-btn {
    padding: 12px 24px;
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.settings-save-btn:hover {
    background: #d4d44a;
}

/* Portal Responsive */
@media (max-width: 968px) {
    .portal-container {
        flex-direction: column;
    }

    .portal-sidebar {
        width: 100%;
        position: static;
    }

    .portal-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .portal-nav-item {
        white-space: nowrap;
    }

    .portal-content-grid {
        grid-template-columns: 1fr;
    }

    .portal-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nbn-checker-title {
        font-size: 2rem;
    }

    .nbn-checker-hero {
        padding: 40px 0 30px;
    }

    .nbn-checker-section {
        padding: 40px 0;
    }

    .nbn-checker-form-wrapper {
        padding: 25px 20px;
    }

    .nbn-checker-form-wrapper,
    .nbn-results-wrapper {
        padding: 25px;
    }

    .nbn-result-details {
        grid-template-columns: 1fr;
    }

    .nbn-tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nbn-tech-card {
        padding: 15px 12px;
    }

    .nbn-tech-icon {
        font-size: 1.8rem;
    }

    .nbn-tech-card h4 {
        font-size: 1rem;
    }

    .nbn-pros-cons {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }

    .header-cta-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-cta-button,
    .header-cta-link {
        font-size: 0.75rem;
        padding: 8px 14px;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }

    .nbn-info-hero h2 {
        font-size: 2rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    .portal-section-header h1 {
        font-size: 2rem;
    }

    .portal-stats-grid {
        grid-template-columns: 1fr;
    }

    .portal-support-grid {
        grid-template-columns: 1fr;
    }

    .login-container {
        max-width: 100%;
        padding: 20px;
    }

    .login-card {
        padding: 40px 35px;
        border-radius: 24px;
    }

    .login-container {
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }

    /* Portal header responsive */
    .portal-header-title {
        font-size: 18px;
        letter-spacing: 1px;
        gap: 6px;
    }

    .portal-header-title .title-underline {
        width: 30px;
        height: 3px;
    }

    .portal-header .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 1rem 15px;
        min-height: 70px;
    }

    .portal-header .header-logo {
        position: static;
        justify-self: start;
    }

    .portal-header-title {
        grid-column: 2;
        font-size: 16px;
    }

    .portal-user-menu {
        grid-column: 3;
        justify-self: end;
    }

    .portal-user-trigger {
        width: 36px;
        height: 36px;
    }

    .portal-user-trigger .user-icon {
        width: 18px;
        height: 18px;
    }

    /* Hide menu-toggle on portal (portal uses sidebar navigation, not header menu) */
    .portal-header .menu-toggle {
        display: none;
    }

    /* Portal footer responsive */
    .portal-footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .portal-footer-copyright {
        grid-column: 1;
        justify-self: center;
    }

    .portal-footer-brand {
        grid-column: 1;
        justify-self: center;
    }

    .portal-footer-links {
        grid-column: 1;
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portal-footer-logo {
        height: 50px;
        margin: -15px 0;
    }

    /* Portal sidebar mobile */
    .portal-sidebar {
        margin-bottom: 20px;
    }

    .portal-nav {
        gap: 8px;
    }

    .portal-nav-item {
        padding: 10px 12px;
        font-size: 14px;
    }

    .portal-nav-item svg {
        width: 18px;
        height: 18px;
    }
}
