/* Design System & Variables */
:root {
    --primary-color: #000000;
    /* Black */
    --secondary-color: #C5A059;
    /* Gold */
    --accent-color: #C5A059;
    /* Gold */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a16207;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-gold {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 1rem;
    /* Reduce side padding */
}

.logo {
    font-size: 1.35rem;
    /* Slightly smaller */
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevent shrinking */
    margin-right: 1rem;
    letter-spacing: 0.5px;
    /* Expand name slightly */
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    /* Tight but readable */
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
    /* Smaller text */
}

/* Desktop Navbar Layout */
@media (min-width: 769px) {
    .nav-container {
        justify-content: space-between;
        /* Space out logo and nav/button group */
        gap: 2rem;
    }

    .nav-links {
        flex: 1;
        justify-content: flex-end;
        /* Align links to the right */
        margin-right: 1rem;
        /* Space between links and button */
    }

    .nav-links .btn-primary {
        margin-left: 0;
        /* Reset auto margin */
    }
}

/* Info Card Theme */
.info-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown:hover .dropbtn {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    z-index: 1001;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
    border: 1px solid #f1f5f9;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--secondary-color);
    padding-left: 1.75rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    /* Luxury homey background image */
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    overflow: hidden;
    /* Prevent image overflow */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-headshot {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
    /* Subtle gold glow */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Features / Info Grid */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Education Cards */
.edu-card {
    background: var(--white);
    padding: 2.5rem;
    height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.edu-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.edu-icon-wrapper {
    background: rgba(197, 160, 89, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-icon {
    color: var(--secondary-color);
    width: 32px;
    height: 32px;
}

/* Rates Section */
.rates-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.rate-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

.rate-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    padding-bottom: 2rem;
    /* Add some bottom padding */
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-right: 100px;
        /* Prevent content from being blocked by chat widget */
    }

    .footer-bottom-container {
        flex-direction: row-reverse;
        /* Logos Left, Text Right */
        justify-content: space-between;
        align-items: flex-end;
        text-align: right;
    }

    .footer-bottom-container>div:first-child {
        flex: 1;
        padding-left: 2rem;
        /* Space between logos and text */
    }

    .footer-bottom-container>div:last-child {
        flex-shrink: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Card Images */
.card-image {
    height: 200px;
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem -2rem;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    background-color: #e2e8f0;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0;
}

.headshot-container {
    flex-shrink: 0;
}

.headshot-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* Focus on face */
    border: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Chat Widget */
.chat-widget-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.8;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-light);
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background-color: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
}

.message.user {
    background-color: var(--secondary-color);
    color: var(--white);
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}

.chat-input-area {
    padding: 1rem;
    background-color: var(--white);
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    outline: none;
}

.chat-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.chat-send {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Options */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 480px) {
    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-widget-btn {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Chat Typing Indicator */
.message.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 1rem;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Interactive Timeline */
.timeline-container {
    max-width: 900px;
    margin: 3rem auto;
    position: relative;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.timeline-progress-bar {
    position: absolute;
    top: 25px;
    /* Center vertically with steps (50px height / 2) */
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-progress {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0%;
    transition: width 0.4s ease;
}

.timeline-step {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
    width: 100px;
    /* Fixed width for alignment */
}

.step-circle {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    /* Above progress bar */
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
    text-align: center;
}

/* Active State */
.timeline-step.active .step-circle {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(197, 160, 89, 0.2);
}

.timeline-step.active .step-label {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Completed State (Optional - for steps before active) */
.timeline-step.completed .step-circle {
    border-color: var(--secondary-color);
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Timeline Content */
.timeline-content-wrapper {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid #f1f5f9;
    min-height: 200px;
    position: relative;
}

.timeline-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.timeline-content.active {
    display: block;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.content-icon {
    width: 32px;
    height: 32px;
    color: var(--secondary-color);
}

.content-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.content-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.time-estimate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
}

.time-estimate i {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
    .timeline-steps {
        flex-direction: row;
        /* Keep horizontal but scrollable if needed, or wrap */
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
        gap: 1rem;
    }

    .timeline-progress-bar {
        display: none;
        /* Hide bar on mobile for cleaner look, or adjust */
    }

    .timeline-step {
        min-width: 80px;
    }
}

/* Calculator Menu Styles */
.calculator-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.calculator-card h3 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.calculator-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--secondary-color);
}

.btn-back i {
    width: 20px;
    height: 20px;
}

/* Hide tabs container in new layout if we decide to keep the HTML but hide it via CSS */
.tabs-container {
    display: none;
}


/* Calculator Page Specific Styles */

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Modern Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tabs {
    display: inline-flex;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 3rem;
    box-shadow: var(--shadow-md);
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.tab-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(197, 160, 89, 0.1);
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

/* Calculator Grid Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        border-radius: 1rem;
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

/* Calculator Cards */
.calc-inputs.card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
}

.calc-inputs h3,
.calc-results h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.calc-inputs h3 i,
.calc-results h3 i {
    color: var(--secondary-color);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
    font-family: var(--font-main);
    background-color: #f8fafc;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Result Cards - Highlight Style */
.highlight-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: var(--white);
    border: 1px solid #334155;
}

.highlight-card h3 {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.result-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 2rem 0;
    line-height: 1;
}

.currency-symbol {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    margin-right: 0.25rem;
}

.result-value {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.result-text-block {
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
}

.result-text-block strong {
    color: var(--secondary-color);
    font-size: 1.5rem;
    display: block;
    margin: 0.5rem 0;
}

.break-even-text {
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Readiness Scorecard Styles */
.scorecard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: var(--white);
    border: 1px solid #334155;
    border-radius: var(--radius);
}

.scorecard-image-container {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    height: 150px;
}

.scorecard-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Loan Comparison Tool */
.comparison-card {
    padding: 1.5rem;
    background: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.loan-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}

.loan-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.comparison-content {
    flex: 1;
}

.comparison-feature {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.comparison-feature:last-child {
    border-bottom: none;
}

.feature-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.quiz-group {
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.quiz-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--text-dark);
    font-weight: 600;
}

.quiz-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.quiz-options.vertical {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.quiz-option-btn {
    display: block;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

.quiz-options.vertical .quiz-option-btn {
    text-align: left;
    padding-left: 1rem;
}

.btn-check:checked+.quiz-option-btn {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.quiz-option-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background-color: rgba(197, 160, 89, 0.05);
}

/* Score Display */
.score-display {
    text-align: center;
    margin-bottom: 3rem;
}

.score-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.score-progress-container {
    position: relative;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 500px;
}

.score-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444 0%, #eab308 50%, #22c55e 100%);
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-scale {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0.5rem auto 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.score-status-text {
    font-size: 2rem;
    margin-top: 2rem;
    color: var(--white);
}

.score-summary-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

/* Action Plan */
.action-plan {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-plan h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.advice-list {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advice-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
}

.advice-list li i {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.score-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Info Cards */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--secondary-color);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.info-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-text {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}