/* Threiva - Professional & Clean Design */

/* CSS Variables for Professional Color Palette */
:root {
    --brand-teal: #22B5A0;
    --brand-dark: #1E293B;
    --brand-medium: #475569;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-gray: #F1F5F9;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.10);
    --shadow-card: rgba(0, 0, 0, 0.08);
    --accent-blue: #3B82F6;
    --accent-green: #10B981;
    --accent-purple: #8B5CF6;
    --accent-orange: #F59E0B;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure all text elements respect container boundaries */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border: none;
    box-shadow: 0 1px 3px var(--shadow-light);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 600;
    font-size: 2rem;
    color: var(--brand-teal) !important;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar-brand:hover {
    color: var(--brand-teal) !important;
    text-decoration: none;
    opacity: 0.8;
}

.navbar-brand .fa-sparkles {
    display: none;
}

.nav-link-enhanced {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 100;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.nav-link-enhanced:hover,
.nav-link-enhanced:focus,
.nav-link-enhanced:active {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Navbar responsive fixes */
.navbar-nav {
    position: relative;
    z-index: 100;
}

.navbar-collapse {
    position: relative;
    z-index: 100;
}

/* Main Content Area */
main {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--shadow-card);
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--shadow-medium);
    border-color: var(--border-medium);
}

.card-body {
    padding: 3rem 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: var(--brand-teal);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(34, 181, 160, 0.1);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.hero-tagline .badge {
    background: none !important;
    color: var(--text-primary);
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-icon {
    display: none;
}

.hero-cta {
    display: none;
}

/* Section Styling */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Personal Information Section */
.personal-info-section {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

/* Form Styling */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--brand-teal);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(34, 181, 160, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* SMS Consent Section */
.sms-consent-section {
    margin-bottom: 2rem;
}

.form-check-input:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

.form-check-input:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 0.2rem rgba(34, 181, 160, 0.25);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-left: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
}

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

.category-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 100px;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-medium);
    border-color: var(--brand-teal);
}

.category-card[data-category="relationships"]:hover,
.category-card[data-category="emotional"]:hover,
.category-card[data-category="everyday"]:hover,
.category-card[data-category="digital"]:hover,
.category-card[data-category="home"]:hover {
    border-color: var(--brand-teal);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.category-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    height: 100%;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.category-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: all 0.2s ease;
    color: var(--brand-teal);
}

.category-icon i {
    transition: all 0.2s ease;
}

.category-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.125rem;
}

.category-subtitle {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Selected State */
.category-input:checked + .category-label {
    background: var(--brand-teal);
    color: white;
    position: relative;
}

.category-input:checked + .category-label .category-name,
.category-input:checked + .category-label .category-subtitle {
    color: white;
}

.category-input:checked + .category-label .category-icon i {
    color: white;
}

.category-card:has(.category-input:checked) {
    border-color: var(--brand-teal);
    box-shadow: 0 4px 12px rgba(34, 181, 160, 0.3);
    transform: none;
}

/* Button Styling */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

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

.btn-primary:hover {
    background: #1E9E8A;
    border-color: #1E9E8A;
    transform: none;
    box-shadow: 0 2px 4px var(--shadow-light);
    color: white;
}

.cta-button {
    font-size: 1rem;
    padding: 1rem 2rem;
    background: var(--brand-teal);
    border: none;
    box-shadow: 0 2px 4px var(--shadow-light);
    width: 100%;
}

.cta-button:hover {
    background: #1E9E8A;
    transform: none;
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-outline-primary {
    background: var(--creamy-white);
    border: 2px solid var(--soft-blue);
    color: var(--text-primary);
}

.btn-outline-primary:hover {
    background: var(--soft-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.btn-outline-secondary {
    background: var(--creamy-white);
    border: 2px solid var(--text-light);
    color: var(--text-secondary);
}

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

/* Icon Styling */
.fa-sparkles {
    background: linear-gradient(45deg, var(--vibrant-orange), var(--electric-purple), var(--sunny-yellow));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: sparkle 2s ease-in-out infinite, gradient-shift 3s ease infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.15) rotate(10deg); }
}

.fa-user, .fa-phone, .fa-bullseye, .fa-info-circle {
    color: var(--soft-blue);
}

.fa-home {
    color: var(--warm-peach);
}

.fa-laptop {
    color: var(--mint-green);
}

.fa-heart, .fa-brain {
    color: var(--dusty-rose);
}

.fa-users {
    color: var(--light-lavender);
}

.fa-sync {
    color: var(--soft-blue);
}

.fa-check-circle {
    color: var(--mint-green);
}

.fa-check {
    color: var(--mint-green);
}

.fa-robot, .fa-sms, .fa-trophy, .fa-calendar-week {
    color: var(--soft-blue);
}

/* Focus Area Definitions */
.focus-definitions {
    background: var(--bg-gray);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.definition-item {
    background: var(--bg-primary);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: all 0.2s ease;
    height: 100%;
}

.definition-item:hover {
    transform: none;
    box-shadow: 0 2px 6px var(--shadow-medium);
}

.definition-item h6 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.definition-item p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Alert Styling */
.alert {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow-light);
}

.alert-success {
    background: #F0FDF4;
    color: #166534;
    border-color: #BBF7D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-color: #FED7AA;
}

/* Info Box */
.bg-light {
    background: var(--bg-gray) !important;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px var(--shadow-light);
    margin-top: 2rem;
    border: 1px solid var(--border-light);
}

.bg-light h6 {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.bg-light .text-dark {
    color: var(--text-primary) !important;
}

.bg-light .fa-check {
    color: var(--accent-green) !important;
}

.bg-light li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.875rem;
}

.footer-text .fa-heart {
    color: var(--brand-teal) !important;
}

/* Admin Dashboard Styles */
.table {
    background: var(--creamy-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-light);
}

.table thead th {
    background: linear-gradient(135deg, var(--soft-blue), var(--mint-green));
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: var(--gentle-gray);
    transform: scale(1.01);
}

.table td {
    padding: 1.25rem 1rem;
    border: none;
    vertical-align: middle;
}

.badge {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--text-light), var(--gentle-gray)) !important;
    color: var(--text-primary);
}

/* Statistics Cards */
.bg-info {
    background: linear-gradient(135deg, var(--soft-blue), #90CDF4) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
}

.bg-info:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px var(--shadow-medium) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--mint-green), #9AE6B4) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
}

.bg-success:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px var(--shadow-medium) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warm-peach), #FBD38D) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
}

.bg-warning:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px var(--shadow-medium) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, var(--dusty-rose), #D69E2E) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
}

.bg-secondary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px var(--shadow-medium) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--light-lavender), var(--soft-blue)) !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
}

.bg-primary:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px var(--shadow-medium) !important;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Main Layout */
    main {
        padding: 2rem 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100vw;
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        overflow-x: hidden;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-tagline {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
        max-width: 100%;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: break-word;
    }

    /* Card Layout */
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .hero-section {
        margin-bottom: 2rem;
    }

    /* Form Elements */
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    /* Personal Info Section */
    .personal-info-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    /* Pricing Cards */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card {
        min-height: 80px;
    }
    
    .category-label {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-subtitle {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    /* Focus Definitions */
    .focus-definitions {
        padding: 1rem;
    }
    
    .definition-item {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .definition-item h6 {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .definition-item p {
        font-size: 0.75rem;
    }

    /* SMS Consent */
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .text-sm {
        font-size: 0.8rem;
    }

    /* Info Box */
    .bg-light {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .bg-light h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .bg-light li {
        font-size: 0.85rem;
        margin-bottom: 0.375rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2.8rem;
        font-weight: 700;
        word-wrap: break-word;
        line-height: 1.2;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
        word-wrap: break-word;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .hero-description,
    .hero-subtitle {
        font-size: 0.85rem;
        word-wrap: break-word;
        line-height: 1.4;
    }
    
    .card-body {
        padding: 1.25rem 0.75rem;
    }
    
    .personal-info-section {
        padding: 1rem;
    }
    
    .category-label {
        padding: 0.875rem;
    }
    
    .category-icon {
        font-size: 1.125rem;
        margin-right: 0.625rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
    }
}

/* Focus Areas Toggle Styling */
.focus-areas-section {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-light);
}

.focus-toggle-card {
    position: relative;
    height: 100%;
}

.focus-toggle-input {
    display: none; /* Hide the actual checkbox */
}

.focus-toggle-label {
    display: block;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.focus-toggle-label:hover {
    border-color: var(--brand-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

/* When checkbox is checked (ON state) */
.focus-toggle-input:checked + .focus-toggle-label {
    background: linear-gradient(135deg, var(--brand-teal) 0%, #1ea085 100%);
    border-color: var(--brand-teal);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 181, 160, 0.25);
}

/* When checkbox is unchecked (OFF state) */
.focus-toggle-input:not(:checked) + .focus-toggle-label {
    background: #9CA3AF;
    border-color: #9CA3AF;
    color: white;
}

.focus-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.focus-icon i {
    font-size: 1.5rem;
    color: inherit;
}

.focus-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: inherit;
}

.focus-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: inherit;
}

.toggle-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 60px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
    transition: all 0.3s ease;
}

/* Update toggle status text based on state */
.focus-toggle-input:checked + .focus-toggle-label .toggle-status::before {
    content: "ON";
}

.focus-toggle-input:not(:checked) + .focus-toggle-label .toggle-status::before {
    content: "OFF";
}
    
    .btn,
    .cta-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}m;
        font-size: 0.9rem;
    }

    main {
        padding: 2rem 0;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .category-grid .category-card:nth-child(4),
    .category-grid .category-card:nth-child(5) {
        grid-column: span 1;
        grid-row: auto;
    }

    .category-card {
        min-height: 100px;
    }

    .category-label {
        padding: 1rem 0.5rem;
    }

    .category-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .personal-info-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem 1rem;
    }

    .card-title.h3 {
        font-size: 1.6rem;
    }

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

    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .category-card {
        min-height: 80px;
    }

    .category-label {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        padding: 1rem;
    }

    .category-icon {
        font-size: 1.25rem;
        margin-bottom: 0;
        margin-right: 0.75rem;
    }

    .category-text {
        align-items: flex-start;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Smooth Transitions */
* {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--soft-blue);
    outline-offset: 2px;
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional Breathing Room */
.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
}

.category-card.selected .category-label {
    background: linear-gradient(135deg, var(--soft-blue), var(--light-lavender));
    border-color: var(--soft-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.category-card.selected .category-icon {
    color: white;
}

.category-card.selected .category-text .category-name {
    color: white;
    font-weight: 600;
}

.category-card.selected .category-text .category-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.category-card.disabled .category-label {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gentle-gray);
    border-color: #e0e0e0;
}

.category-card.disabled .category-icon {
    color: #ccc;
}

.category-card.disabled .category-text .category-name,
.category-card.disabled .category-text .category-subtitle {
    color: #999;
}

.selection-counter {
    margin-top: 1rem;
    font-weight: 500;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}

.hero-icon {
    position: relative;
    z-index: 2;
}

.hero-icon i {
    background: linear-gradient(135deg, var(--ocean-teal), var(--mint-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: bounce 2s ease-in-out infinite;
}

.hero-icon:nth-child(3) i {
    background: linear-gradient(135deg, var(--mint-green), var(--warm-peach));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce 2s ease-in-out infinite 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.hero-tagline .badge {
    background: linear-gradient(135deg, var(--vibrant-orange), var(--electric-purple)) !important;
    animation: pulse-badge 3s ease-in-out infinite;
    border: none;
    font-weight: 500;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(251, 146, 60, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }
}

.hero-title {
    position: relative;
    z-index: 2;
    background: var(--brand-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--brand-teal);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-cta {
    position: relative;
    z-index: 2;
}

.cta-text {
    background: linear-gradient(135deg, var(--ocean-teal), var(--mint-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
    }
    
    .hero-icon i {
        font-size: 1rem !important;
    }
    
    .hero-tagline .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .cta-text {
        font-size: 0.85rem !important;
    }
}

/* Pricing Section Styles */
.pricing-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-rows: 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-light);
    display: flex;
    flex-direction: column;
    height: 350px;
    min-height: 350px;
}

.pricing-card.featured {
    border-color: var(--brand-teal);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-teal);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pricing-card.selected {
    border-color: var(--brand-teal);
    box-shadow: 0 4px 12px rgba(34, 181, 160, 0.15);
}

.pricing-card:hover {
    border-color: var(--brand-teal);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.pricing-input {
    display: none;
}

.pricing-label {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem;
    cursor: pointer;
    height: 100%;
    margin: 0;
    flex: 1;
}

.pricing-card.featured .pricing-label {
    padding-top: 2.5rem;
}

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

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-price {
    margin-bottom: 0.75rem;
}

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

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature i {
    color: var(--accent-green);
    margin-right: 0.75rem;
    font-size: 0.875rem;
    width: 14px;
    flex-shrink: 0;
}

/* Pricing Button Styles */
.pricing-button {
    margin-top: auto;
    text-align: center;
}

.plan-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.plan-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.plan-button:focus {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

/* Override Bootstrap button styles for plan buttons */
.btn-outline-primary.plan-button {
    background: var(--bg-primary);
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal);
}

.btn-outline-primary.plan-button:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: white;
}

.btn-primary.plan-button {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: white;
}

.btn-primary.plan-button:hover {
    background: #1E9E8A;
    border-color: #1E9E8A;
    color: white;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-title {
        font-size: 1.75rem;
    }
    
    .plan-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}