:root {
    --bg-color: #080c14;
    --card-bg: #111827;
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-blue: #0ea5e9;
    --accent-green: #10b981;
    --text-primary: #f9fafb;
    --text-muted: #9ca3af;
    --error-color: #f87171;
    --success-color: #34d399;
    --focus-outline: #38bdf8;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(8, 12, 20, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.025em;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-cta {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px; /* Mobile touch accessibility */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-cta:hover, .nav-cta:focus-visible {
    background-color: var(--accent-blue);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.nav-cta:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Main Content Layout */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 6rem 5% 4rem 5%;
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Postcode Checker Card */
.checker-box {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.checker-box h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

@media (min-width: 640px) {
    .form-group {
        flex-direction: row;
        align-items: flex-end;
    }
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    height: 52px; /* Large accessible touch target height */
    padding: 0 1.25rem;
    border-radius: 12px;
    border: 2px solid #374151;
    background-color: #0b0f19;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
    color: #6b7280;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

input[type="text"].invalid,
input[type="email"].invalid,
input[type="tel"].invalid {
    border-color: var(--error-color);
}

input[type="text"].invalid:focus,
input[type="email"].invalid:focus,
input[type="tel"].invalid:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

button[type="submit"] {
    height: 52px; /* Large accessible touch target height */
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Accessible Status message area */
.status-message {
    margin-top: 1rem;
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.status-message.error {
    color: var(--error-color);
    background-color: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-message.success {
    color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.info {
    color: var(--accent-blue);
    background-color: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5% 6rem 5%;
    max-width: 1200px;
    width: 100%;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Responsive improvements */
@media (max-width: 480px) {
    .hero {
        padding-top: 4rem;
    }
    .checker-box {
        padding: 1.5rem;
    }
}

/* Exclusive Badge on Hero */
.exclusive-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeIn 0.8s ease-out;
}

/* Pricing Section & Grid */
.pricing-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 5% 4rem 5%;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
}

/* Pricing Cards */
.price-card {
    flex: 1 1 230px;
    max-width: 280px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Featured Price Card */
.price-card.featured {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transform: scale(1.03);
    z-index: 2;
}

.price-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 25px 45px rgba(14, 165, 233, 0.25);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    color: var(--bg-color);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

/* Price Header */
.price-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.price-header .speed {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-header .speed-type {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

/* Price Amount */
.price-amount {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
}

.price-amount .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-amount .value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin: 0 2px;
}

.price-amount .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features List */
.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.925rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features li::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 700;
}

.plan-features li.bold {
    font-weight: 600;
    color: var(--text-primary);
}

/* Plan Buttons */
.plan-cta-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 2px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-cta-btn:hover {
    background-color: var(--accent-blue);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.plan-cta-btn.featured-btn {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
    border: none;
    color: white;
}

.plan-cta-btn.featured-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

/* Order Form Section */
.order-section {
    width: 100%;
    max-width: 800px;
    padding: 2rem 5% 6rem 5%;
    margin: 0 auto;
}

.order-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.order-box h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subheading {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .form-row {
        flex-direction: row;
    }
    .form-row .form-field {
        flex: 1;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-field select {
    width: 100%;
    height: 52px;
    padding: 0 1.25rem;
    border-radius: 12px;
    border: 2px solid #374151;
    background-color: #0b0f19;
    color: var(--text-primary);
    font-size: 1.025rem;
    font-family: var(--font-family);
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-field select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-field select.invalid {
    border-color: var(--error-color);
}

input.invalid {
    border-color: var(--error-color);
}

#submit-order-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

#submit-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Success State Styles */
.order-success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.order-success-state h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.order-success-state p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
}

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

/* Additional Responsive Tweaks */
@media (max-width: 768px) {
    .pricing-hero {
        padding-top: 4rem;
    }
    .price-card.featured {
        transform: none;
    }
    .price-card.featured:hover {
        transform: translateY(-6px);
    }
    .order-box {
        padding: 2rem;
    }
}

/* Contract Toggle Switch styling */
.contract-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem auto 3.5rem auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    width: fit-content;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
    user-select: none;
}

.toggle-label.active {
    color: var(--accent-blue);
}

.contract-toggle {
    width: 56px;
    height: 30px;
    background-color: #1f2937;
    border: 2px solid var(--card-border);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.contract-toggle:focus-visible {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

.toggle-slider {
    width: 22px;
    height: 22px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Toggle Active State */
.contract-toggle.active {
    background-color: var(--accent-blue);
}

.contract-toggle.active .toggle-slider {
    transform: translateX(26px);
}

/* Contract Info Label inside pricing card */
.contract-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -1.25rem;
    margin-bottom: 2rem;
}

/* G.hn Coax Disclaimer Footnote styling */
.coax-disclaimer {
    width: 100%;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 2.5rem auto 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* No-Bloat Section Styling */
.nobloat-section {
    padding: 6rem 5% 4rem 5%;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.nobloat-section .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.nobloat-section .section-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.6;
}

.nobloat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.nobloat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nobloat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.3); /* Subtle red border on hover */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.nobloat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.nobloat-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nobloat-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Enquiries Content Styling */
.enquiries-content {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.enquiries-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.enquiries-email {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--accent-blue);
    text-decoration: none;
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    border-bottom: 2px dashed rgba(56, 189, 248, 0.4);
    padding-bottom: 4px;
    display: inline-block;
}

.enquiries-email:hover {
    border-bottom-color: #34d399;
    transform: scale(1.02);
}

.enquiries-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}


