/* Global Styles & Variables */
:root {
    --bb-blue: #62A9D9;
    --bb-green: #70BE94;
    --bb-grey: #616161;
    --bb-dark-grey: #333;
    --bb-light-grey: #f4f4f4;
    --bb-white: #ffffff;
    --bb-text-dark: #333;
    --bb-text-light: #555;
    --bb-border-color: #ddd;
    --bb-gradient-start: #eef6fc; /* Lighter blue for gradient */
    --bb-gradient-end: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bb-white);
    color: var(--bb-text-dark);
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    color: var(--bb-dark-grey);
    margin-bottom: 0.8em;
}

a {
    color: var(--bb-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"] {
    padding: 10px;
    border: 1px solid var(--bb-border-color);
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 10px;
    width: 100%; /* Default to full width */
    box-sizing: border-box;
}

/* Header Styles (Inspired by BigBenMedical.com) */
.site-header {
    background-color: var(--bb-white);
    border-bottom: 1px solid var(--bb-border-color);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo img {
    height: 40px; /* Adjust as needed */
}

.header-nav a {
    margin: 0 15px;
    color: var(--bb-text-dark);
    font-weight: 500;
}

.header-icons a {
    margin-left: 15px;
    color: var(--bb-text-dark);
    font-size: 1.2em;
}

/* Hero Section (Inspired by TrueNorth) */
.hero-section {
    background: linear-gradient(135deg, var(--bb-blue) 0%, var(--bb-green) 100%);
    /* Optional: Add subtle pattern or texture */
    /* background-image: url('path/to/subtle-pattern.png'); */
    color: var(--bb-white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential pseudo-elements */
}

/* Optional: Add subtle futuristic elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 0.3em;
    color: var(--bb-white);
    font-weight: 600;
}

.hero-section h2 {
    font-size: 1.5em;
    margin-bottom: 0.8em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-section p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

/* Diamond Membership Section (Modernized) */
#diamond-membership-features {
    padding: 40px 20px;
    background-color: var(--bb-light-grey);
}

#diamond-membership-features h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 15px;
}

#diamond-membership-features > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--bb-text-light);
}

.membership-box {
    background-color: var(--bb-white);
    border: 1px solid var(--bb-border-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.membership-box h3 {
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--bb-blue);
}

.membership-box > p {
    text-align: center;
    margin-bottom: 25px;
    color: var(--bb-text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5em;
    color: var(--bb-green);
    margin-bottom: 10px;
    display: inline-block;
}

.feature-item h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--bb-dark-grey);
}

.feature-item p {
    font-size: 0.95em;
    color: var(--bb-text-light);
}

/* Calculator Form Section */
#calculator-form {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 20px auto;
}

#calculator-form h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Accordion Styles */
.accordion {
    margin-bottom: 30px;
}

.accordion-button {
    background-color: var(--bb-white);
    color: var(--bb-dark-grey);
    cursor: pointer;
    padding: 18px 25px;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--bb-border-color);
    outline: none;
    font-size: 1.2em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    position: relative;
}

.accordion-button::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--bb-blue);
    float: right;
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    transform: rotate(-180deg);
}

.accordion-button:hover,
.accordion-button.active {
    background-color: var(--bb-light-grey);
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid var(--bb-border-color);
}

.accordion-content p {
    padding: 15px 0;
}

/* Product Item Styles */
.product-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--bb-light-grey);
    gap: 15px;
}

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

.product-image-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image-container span {
    font-size: 0.8em;
    color: #999;
}

.product-details {
    flex-grow: 1;
    display: flex;
    align-items: center; /* Align name and inputs */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px;
}

.product-name {
    flex-basis: 50%; /* Adjust basis for name width */
    flex-grow: 1;
    font-size: 0.95em;
    color: var(--bb-text-dark);
}

.product-inputs {
    display: flex;
    gap: 10px;
    flex-basis: 45%; /* Adjust basis for inputs */
    flex-grow: 1;
    justify-content: flex-end; /* Align inputs to the right */
}

.product-inputs input {
    width: 120px; /* Fixed width for inputs */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Practice Info Section */
.practice-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px 20px;
    background-color: var(--bb-light-grey);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.practice-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9em;
}

/* Calculate Button */
#calculate-button {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    background-color: var(--bb-green);
    color: var(--bb-white);
    font-size: 1.2em;
    padding: 12px 30px;
    border-radius: 25px; /* Pill shape */
    font-weight: 600;
}

#calculate-button:hover {
    background-color: #5aa77e; /* Darker green */
}

/* Results Section */
#results {
    padding: 40px 20px;
    background-color: var(--bb-light-grey);
    margin-top: 30px;
    text-align: center;
}

#results h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#results p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--bb-text-light);
}

#results span[id^="total-"] {
    font-weight: 600;
    font-size: 1.3em;
    color: var(--bb-green);
}

#results span#total-annual-savings {
    color: var(--bb-blue);
    font-size: 1.5em;
}

.impact-timeframe {
    font-size: 0.8em;
    color: var(--bb-grey);
    font-weight: normal;
}

.impact-items-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
    max-width: 800px;
}

.impact-item {
    background-color: var(--bb-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.impact-icon {
    font-size: 2.5em;
    color: var(--bb-blue);
    margin-bottom: 10px;
}

.impact-value {
    display: block;
    font-size: 2em;
    font-weight: 600;
    color: var(--bb-green);
    margin-bottom: 5px;
}

.impact-label {
    font-size: 0.95em;
    color: var(--bb-text-light);
}

#patient-impact-inputs-summary {
    font-size: 0.9em;
    color: var(--bb-grey);
    margin-top: 20px;
}

#generate-pdf-button {
    background-color: var(--bb-blue);
    color: var(--bb-white);
    font-size: 1.1em;
    padding: 10px 25px;
    border-radius: 20px;
    margin-top: 20px;
}

#generate-pdf-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#generate-pdf-button:hover:not(:disabled) {
    background-color: #4a90c1; /* Darker blue */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#user-info-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#user-info-form input {
    margin-bottom: 15px;
}

#user-info-form button[type="submit"] {
    background-color: var(--bb-green);
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

#user-info-form button[type="submit"]:hover {
    background-color: #5aa77e;
}

/* Footer Styles (Inspired by BigBenMedical.com) */
.site-footer-dark {
    background-color: var(--bb-dark-grey);
    color: #ccc;
    padding: 40px 0 0 0;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
    /* filter: brightness(0) invert(1); /* Make logo white - Removed as it might hide logo if original is light */
}

.footer-about p {
    color: #aaa;
    line-height: 1.5;
}

.footer-column h4 {
    color: var(--bb-white);
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--bb-white);
    text-decoration: none;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--bb-green);
}

.footer-social a {
    color: #ccc;
    margin-right: 10px;
    font-size: 1.3em;
}

.footer-social a:hover {
    color: var(--bb-white);
}

.footer-badges {
    display: flex;
    flex-direction: column; /* Or row */
    gap: 10px;
}

.footer-badge {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    background-color: #555; /* Placeholder */
}

.footer-bottom {
    background-color: #222;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85em;
}

.footer-copyright {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-policy-links a {
    color: #aaa;
    margin: 0 8px;
}

.footer-policy-links a:hover {
    color: var(--bb-white);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-nav {
        display: none; /* Simple hide for mobile, consider burger menu */
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section h2 {
        font-size: 1.2em;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack features */
    }

    .product-details {
        flex-direction: column; /* Stack name and inputs */
        align-items: flex-start;
    }

    .product-name {
        flex-basis: auto;
        margin-bottom: 5px;
    }

    .product-inputs {
        flex-basis: auto;
        justify-content: flex-start;
        width: 100%;
    }

    .product-inputs input {
        width: calc(50% - 5px); /* Make inputs take half width */
    }

    .practice-info {
        grid-template-columns: 1fr; /* Stack practice info */
    }

    .impact-items-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }

    .footer-logo {
        margin: 0 auto 15px auto;
    }
}

@media (max-width: 480px) {
    .product-image-container {
        display: none; /* Hide image on very small screens */
    }
}

