/* --- Variables & Configuration --- */
:root {
    /* Colors */
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --bg-main: #f7f9fc;
    --bg-alt: #dfedf8;
    --white: #ffffff;

    /* Text Colors */
    --text-darkest: #111111;
    --text-dark: #222222;
    --text-base: #333333;
    --text-light: #444444;
    --text-muted: #666666;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 4px 12px rgba(33, 150, 243, 0.3);
    --shadow-primary-hover: 0 6px 16px rgba(33, 150, 243, 0.4);

    /* Transitions & Radii */
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
}

/* --- Scrollbar --- */
/* 1. Firefox */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-main);
}

/* 2. Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-dark);
}

/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-base);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Shared Components --- */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-align: center;
    display: inline-block;
}

.btn-outline {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    box-shadow: var(--shadow-md);
    background-color: #f8fbff;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-primary-hover);
}

/* --- Navbar Section --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: background-color var(--transition-med), box-shadow var(--transition-med), padding var(--transition-med);
    z-index: 1000;
    background-color: var(--white);
    padding: 15px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    width: 246px;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-darkest);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-base);
    font-size: 15px;
    transition: color var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.auth-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.transparent-btn {
    text-decoration: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.transparent-btn:hover {
    color: var(--primary-dark);
}

.login-btn {
    text-decoration: none;
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #aee2ff 0%, #e8f4f8 50%, #f4f7f9 100%);
    padding: 160px 40px 100px 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 46px;
    color: var(--text-darkest);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-base);
    line-height: 1.5;
    margin-bottom: 60px;
    max-width: 550px;
    font-weight: 600;
}

.hero-text {
    font-size: 16px;
    color: var(--text-base);
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 100px;
    bottom: 0;
    width: 60%;
    display: flex;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* --- About Section --- */
.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    width: 100%;
    scroll-margin-top: 100px;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-lead {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-darkest);
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

.about-highlight-box {
    background-color: var(--bg-alt);
    border-left: 5px solid var(--primary);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 10px;
}

.highlight-quote {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    font-style: italic;
}

.about-visual-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(33, 150, 243, 0.1);
    position: relative;
    overflow: hidden;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}

.visual-card-icon {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.visual-card-icon i {
    color: var(--primary);
    font-size: 24px;
}

.about-visual-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-darkest);
    margin-bottom: 12px;
}

.about-visual-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.visual-card-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visual-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-base);
}

.visual-card-list i {
    color: #2e7d32;
    font-size: 14px;
}

/* --- Features Section --- */
.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 10px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 26px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-darkest);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center;
    gap: 40px;
}

.card {
    min-width: 240px;
    max-width: 240px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card .image {
    height: 120px;
    background-color: #d8dbe2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content {
    font-size: 16px;
    padding: 12px 8px;
    flex-grow: 1;
}

.card .button-container {
    width: fit-content;
    margin: auto auto 12px auto;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-main);
    padding: 80px 20px;
    width: 100%;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.stats-column {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.stats-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-md);
}

.stat-blue {
    background-color: #e3f2fd;
    color: var(--primary);
}

.stat-green {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.stat-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.carousel-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.carousel-arrow {
    font-size: 24px;
    color: var(--text-base);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 10px;
}

.carousel-arrow:hover {
    color: var(--primary);
}

.carousel-cards {
    display: flex;
    gap: 20px;
    overflow: hidden;
    flex: 1;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 0;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    color: var(--primary);
    font-size: 18px;
}

.user-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.user-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
}

/* --- Packages Section --- */
.packages-section {
    background-color: #f4f8fc;
    background-image: radial-gradient(at 0% 100%, rgba(33, 150, 243, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(33, 150, 243, 0.03) 0px, transparent 50%);
    padding: 100px 20px;
    width: 100%;
    scroll-margin-top: 100px;
}

.packages-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.packages-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-darkest);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.packages-header p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.packages-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

/* Individual Package Card Structure */
.package-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.07);
    border-color: rgba(33, 150, 243, 0.2);
}

/* Header Decor inside Cards */
.package-card-header {
    margin-bottom: 30px;
    text-align: left;
}

.package-icon {
    width: 54px;
    height: 54px;
    background-color: #f0f7ff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.package-icon i {
    color: var(--primary);
    font-size: 24px;
}

.package-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-darkest);
    margin-bottom: 8px;
}

.package-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    min-height: 40px;
}

/* Body and Feature lists */
.package-card-body {
    flex-grow: 1;
    margin-bottom: 35px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.package-features .checkmark {
    width: 22px;
    height: 22px;
    background-color: #e6f7ed;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* Footer layout */
.package-card-footer {
    width: 100%;
}

.package-card-footer .btn {
    width: 100%;
    display: block;
    padding: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.btn-outline-primary:hover {
    background-color: #f0f7ff;
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Popular Card Override Highlights */
.package-card.popular-card {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15);
}

.package-card.popular-card:hover {
    box-shadow: 0 20px 35px rgba(33, 150, 243, 0.22);
}

.package-card.popular-card .package-icon {
    background-color: var(--primary);
}

.package-card.popular-card .package-icon i {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Bottom Action Container Layout */
.packages-action-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.calc-trigger-btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

/* --- Services Section --- */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    width: 100%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 240px);
    justify-content: center;
    gap: 40px;
}

/* --- Contact Section --- */
.contact-section {
    padding: 60px 20px;
    background-color: var(--bg-main);
    scroll-margin-top: 100px;
}

.contact-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.contact-header .header-icon i {
    color: var(--primary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.message-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 16px;
}

/* --- Call to Action (CTA) Section --- */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-main);
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- Footer Section --- */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 40px 40px 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-brand h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 60px;
}

.footer-brand .copyright {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.9;
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.footer-col ul a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.calc-section-embedded {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 100px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}

.calc-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
}

.calc-group {
    margin-bottom: 25px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-darkest);
}

/* --- PRIMEFACES CUSTOM SPINNER RESET --- */
.calc-group .ui-spinner {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 200px !important;
    height: 44px !important;
    border: 1px solid #ccc !important;
    border-radius: var(--radius-sm) !important;
    background-color: var(--white) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.calc-group .ui-spinner .ui-spinner-input {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 40px 0 12px !important;
    margin: 0 !important;
    font-size: 15px !important;
    color: var(--text-base) !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

.calc-group .ui-spinner .ui-spinner-button {
    position: absolute !important;
    right: 0 !important;
    width: 35px !important;
    height: 22px !important;
    background: #f1f5f9 !important;
    border-left: 1px solid #cbd5e1 !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    color: #475569 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.calc-group .ui-spinner .ui-spinner-up {
    top: 0 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

.calc-group .ui-spinner .ui-spinner-down {
    bottom: 0 !important;
}

.calc-group .ui-spinner .ui-spinner-button:hover {
    background: #e2e8f0 !important;
    color: var(--primary) !important;
}

.calc-group .ui-spinner .ui-icon {
    position: static !important;
    margin: 0 !important;
}

/* --- RADIO PACKAGE CONTEXT LAYOUT --- */
.package-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.package-option {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.package-option.option-start.ui-state-active {
    border-color: #e040fb;
    background-color: #fdf4ff;
}

.package-option.option-balance.ui-state-active {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.package-option.option-pro.ui-state-active {
    border-color: #2196F3;
    background-color: #f0f7ff;
}

/* --- RESULT CARD SUMMARY --- */
.result-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-primary-hover);
    height: 100%;
    box-sizing: border-box;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.result-row.total-row {
    border-bottom: none;
    margin-top: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--radius-md);
}

.promo-alert-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    color: #b45309;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.savings-showcase-box {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-left: 5px solid #10b981;
    padding: 25px;
    border-radius: var(--radius-xl);
    color: #065f46;
    margin-top: 30px;
    width: 100%;
}

.savings-value-text {
    font-size: 28px;
    font-weight: 800;
    color: #047857;
    margin: 10px 0;
}

/* --- PACKAGES GRID MODERN INLINE HEADERS --- */
.package-card-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 25px !important;
}

.package-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.package-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-darkest);
    margin: 0 !important;
}

.package-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 !important;
}

.package-icon {
    width: 54px !important;
    height: 54px !important;
    border-radius: var(--radius-lg);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.package-icon i {
    font-size: 24px;
}

/* --- THEME OVERRIDES FOR CARDS --- */
.package-card.card-start .package-icon {
    background-color: #fdf4ff;
}

.package-card.card-start .package-icon i {
    color: #e040fb;
}

.package-card.card-start .btn-outline-primary {
    color: #e040fb;
    border-color: rgba(224, 64, 251, 0.4);
}

.package-card.card-start .btn-outline-primary:hover {
    background-color: #fdf4ff;
    border-color: #e040fb;
}

.package-card.card-balance {
    border: 2px solid #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.package-card.card-balance:hover {
    box-shadow: 0 20px 35px rgba(16, 185, 129, 0.22);
}

.package-card.card-balance .package-icon {
    background-color: #10b981;
}

.package-card.card-balance .package-icon i {
    color: var(--white);
}

.package-card.card-balance .popular-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.package-card.card-balance .btn-primary {
    background-color: #10b981;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.package-card.card-balance .btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
}

.package-card.card-pro .package-icon {
    background-color: #f0f7ff;
}

.package-card.card-pro .package-icon i {
    color: #2196F3;
}

.package-card.card-pro .btn-outline-primary {
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.4);
}

.package-card.card-pro .btn-outline-primary:hover {
    background-color: #f0f7ff;
    border-color: #2196F3;
}

.features-comparison-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    width: 100%;
    scroll-margin-top: 100px;
}

/* Container limits horizontal space and activates custom scroll on overflow */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.features-comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
    color: var(--text-base);
}

/* Headings and Base Rows */
.features-comparison-table th,
.features-comparison-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.features-comparison-table thead th {
    background-color: var(--white);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-darkest);
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

/* Column assigned properties */
.col-feature-title {
    width: 40%;
}

th.col-pkg-start {
    width: 20%;
    text-align: center;
    background-color: rgba(224, 64, 251, 0.3) !important;
}

th.col-pkg-balance {
    width: 20%;
    text-align: center;
    background-color: rgba(16, 185, 129, 0.3) !important;
}

th.col-pkg-pro {
    width: 20%;
    text-align: center;
    background-color: rgba(33, 150, 243, 0.3) !important;
}

.col-pkg-start {
    width: 20%;
    text-align: center;
    background-color: rgba(224, 64, 251, 0.04) !important;
}

.col-pkg-balance {
    width: 20%;
    text-align: center;
    background-color: rgba(16, 185, 129, 0.06) !important;
}

.col-pkg-pro {
    width: 20%;
    text-align: center;
    background-color: rgba(33, 150, 243, 0.04) !important;
}

/* Align values accurately inside headers */
.features-comparison-table thead th.col-pkg-start,
.features-comparison-table thead th.col-pkg-balance,
.features-comparison-table thead th.col-pkg-pro {
    text-align: center;
}

/* Category rows style separating groups */
.features-comparison-table tr.category-row td {
    background-color: var(--bg-alt);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.15);
}

/* Hover over feature items */
.features-comparison-table tr.feature-row:hover {
    background-color: rgba(33, 150, 243, 0.02);
}

.features-comparison-table tr.feature-row:hover td.col-pkg-start {
    background-color: rgba(224, 64, 251, 0.06);
}

.features-comparison-table tr.feature-row:hover td.col-pkg-balance {
    background-color: rgba(16, 185, 129, 0.08);
}

.features-comparison-table tr.feature-row:hover td.col-pkg-pro {
    background-color: rgba(33, 150, 243, 0.06);
}

/* Left-align titles precisely */
.feature-name {
    font-weight: 500;
    color: var(--text-dark);
}

/* Icons indicators matching exact standard colors */
.icon-yes {
    color: #10b981; /* Package Feature green checkmark */
    font-size: 18px;
}

.icon-no {
    color: #ef4444; /* Standard alert-red X */
    font-size: 16px;
    opacity: 0.85;
}

/* =========================================================================
   MEDIA QUERIES - THE RESPONSIVE FIXES
   ========================================================================= */

@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
    }

    header.scrolled {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        flex-wrap: wrap;
    }

    .nav-links, .auth-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 15px;
    }

    .nav-links {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }

    .nav-links.active, .auth-actions.active {
        display: flex;
    }

    .hero-section {
        padding: 140px 20px 60px 20px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    /* Fixed visibility of text steps inside mobile views */
    .hero-subtitle-steps {
        overflow: visible; /* Prevents text clipping during or after the transitions */
    }

    .hero-subtitle-steps span {
        margin-left: 0 !important; /* Removes massive desktop offset margins */
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: 500px;
        height: auto;
        margin-top: 20px;
    }

    .hero-image img {
        object-position: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonials-container {
        flex-direction: column;
        gap: 40px;
    }

    .stats-column {
        flex: none;
        width: 100%;
        align-items: center;
    }

    .stats-header h2 {
        justify-content: center;
    }

    .stats-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .packages-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .package-card:nth-child(3) {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
        width: 100%;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .result-card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-brand p {
        margin-bottom: 30px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .carousel-cards {
        flex-direction: column;
    }
    .carousel-arrow {
        display: none;
    }
    .calc-section-embedded {
        padding: 40px 20px;
    }

    .calc-card, .result-card {
        padding: 30px 20px;
    }

    .features-comparison-table {
        font-size: 14px;
    }

    .features-comparison-table th,
    .features-comparison-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 768px) {
    .packages-header h2 {
        font-size: 30px;
    }
    .packages-container {
        grid-template-columns: 1fr;
    }
    .package-card:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    nav {
        padding-top: 0px;
    }

    .logo {
        text-align: left;
        width: 180px;
    }

    .features-section, .packages-section, .services-section {
        padding-left: 0px;
        padding-right: 0px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .feature-grid,
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .card {
        max-width: 100%;
    }

    .stats-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .feature-grid, .service-grid {
        grid-template-columns: 1fr;
        padding: 0 40px;
    }

    .carousel-container .carousel-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .package-select-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .package-option {
        padding: 12px;
    }

    .calc-group .ui-spinner {
        max-width: 100% !important;
    }

    .savings-value-text {
        font-size: 24px;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .result-row strong, .result-row span:last-child {
        align-self: flex-end;
    }

    .result-row.total-row {
        align-items: stretch;
    }
}

/* --- Base Animations & Layout for Steps --- */
.hero-subtitle-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.hero-subtitle-steps span {
    display: block;
    opacity: 0;
    transform: translateX(140px);
    animation: heroWordSlideIn 0.7s ease forwards;
    white-space: nowrap;
}

.hero-subtitle-steps span:nth-child(1) {
    margin-left: 25%;
    animation-delay: 0.1s;
}

.hero-subtitle-steps span:nth-child(2) {
    margin-left: calc(25% + 38px);
    animation-delay: 0.25s;
}

.hero-subtitle-steps span:nth-child(3) {
    margin-left: calc(25% + 76px);
    animation-delay: 0.4s;
}

.hero-subtitle-steps span:nth-child(4) {
    margin-left: calc(25% + 114px);
    animation-delay: 0.55s;
}

@keyframes heroWordSlideIn {
    from {
        opacity: 0;
        transform: translateX(140px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}