/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lato:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* --- CSS Variables for "Modern Blue" Theme --- */
:root {
    --bg-color: #f0f2f5;
    --card-bg-color: #ffffff;
    --text-color: #4a4a4a;
    --heading-color: #2c3e50;
    --primary-color: #3498db;
    --primary-hover-color: #2980b9;
    --border-color: #e0e6ed;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

/* --- General Body & Reset Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Montserrat', 'Orbitron', sans-serif; }

/* --- Header & Navigation Bar --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 10px var(--shadow-light);
    padding: 0 4%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1300px; margin: 0 auto; height: 80px; }
.logo-group { display: flex; align-items: center; gap: 18px; }
.logo-img-wrapper { display: flex; align-items: center; text-decoration: none; }
.site-logo { height: 45px; width: auto; transition: transform 0.3s ease; }
.secondary-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.secondary-logo-img { height: 40px; }
.logo-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 4px; }
.site-logo:hover { transform: scale(1.05); }
.main-nav a { color: var(--text-color); text-decoration: none; margin-left: 35px; font-weight: 600; font-size: 1.05em; position: relative; transition: color 0.3s ease; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

/* --- Mobile Navigation --- */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger { display: block; position: relative; width: 25px; height: 2px; background-color: var(--heading-color); transition: all 0.3s ease; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--heading-color); transition: all 0.3s ease; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- Homepage Hero --- */
.home-hero {
    margin: 0 auto 60px;
    margin-top: 80px;
    padding: 120px 7%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.88), rgba(52, 152, 219, 0.85));
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
    color: #f5f9ff;
    position: relative;
    overflow: hidden;
    text-align: left;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 55%);
    pointer-events: none;
}
.home-hero-content {
    position: relative;
    z-index: 1;
    flex: 1.1;
}
.home-hero h1 {
    font-size: 3.6em;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.home-hero p {
    font-size: 1.25em;
    max-width: 560px;
    margin: 28px 0 40px;
    color: rgba(240, 247, 255, 0.9);
    line-height: 1.7;
}
.home-hero .button-group {
    justify-content: flex-start;
    gap: 20px;
}
.home-hero .secondary-button {
    border-color: rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
}
.home-hero-visual {
    position: relative;
    z-index: 1;
    flex: 0.9;
    display: grid;
    gap: 25px;
}
.hero-stat-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    max-width: 320px;
}
.hero-stat-card.primary-card { justify-self: flex-start; }
.hero-stat-card.secondary-card { justify-self: flex-end; }
.stat-value {
    display: block;
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-stat-card p {
    margin: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.85);
}

/* --- Secondary Page Hero (Services, Financing, Deals, Quotes) --- */
.page-hero {
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1581362534298-e73e9289d3a5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    margin-bottom: 60px; /* Add space below hero */
}
.page-hero h1 { color: #ffffff; font-size: 3em; text-transform: none; letter-spacing: 0; }
.page-hero p { font-size: 1.2em; color: rgba(255, 255, 255, 0.9); margin-bottom: 0; }

.hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.hero-action-button {
    font-size: 1.1em;
    padding: 18px 40px;
    letter-spacing: 0.05em;
}

.hero-action-button.is-active {
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

/* --- Main Content & Section Styles --- */
.main-content { max-width: 1300px; margin: 0 auto; padding: 0 40px; text-align: center; } /* Adjusted margin */
section {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    padding: 60px;
    margin-bottom: 60px;
}
section.section--frameless {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}
section h1 { font-size: 3em; margin-bottom: 20px; color: var(--heading-color); text-transform: uppercase; letter-spacing: 1px; }
section p { font-size: 1.1em; max-width: 800px; margin: 0 auto 40px auto; }

/* --- Homepage Feature Grid --- */
.feature-section h2 { text-align: center; font-size: 2.5em; margin-bottom: 40px; }
.feature-grid { margin-top: 40px; }
.feature-section .service-card-3d { text-align: center; }
.feature-section .service-card-3d-content { padding: 45px 35px; }
.feature-section .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-section .service-icon span { font-size: 2.5rem; }
.feature-section .service-card-3d h3 { font-size: 1.6em; }
.feature-section .service-card-3d p { font-size: 1em; line-height: 1.7; }

/* --- Services Page 3D Card Grid --- */
.services-section { padding: 0; background-color: transparent; box-shadow: none; border: none; backdrop-filter: none; margin-bottom: 60px; } /* Ensures full glass effect sections appear below it */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; perspective: 1000px; }
.service-card-3d { background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,245,250,0.9)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-radius: 15px; transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; transform-style: preserve-3d; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.3); }
.service-card-3d-content { padding: 40px; text-align: center; transform: translateZ(20px); }
.service-card-3d:hover { transform: rotateY(10deg) rotateX(5deg) scale(1.05); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.service-icon { margin-bottom: 25px; }
.service-icon svg { width: 60px; height: 60px; stroke: var(--primary-color); }
.service-card-3d h3 { font-size: 1.6em; color: var(--heading-color); margin-bottom: 15px; }
.service-card-3d p { font-size: 1em; color: var(--text-color); margin: 0; max-width: 100%; }

/* --- Call to Action & Buttons --- */
.call-to-action { background: linear-gradient(45deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.9)); color: #ffffff; text-align: center; }
.call-to-action h2 { font-size: 3.2em; margin-bottom: 25px; color: #ffffff; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); }
.call-to-action p { font-size: 1.3em; max-width: 800px; margin: 0 auto 50px auto; color: rgba(255, 255, 255, 0.9); }
.button-group { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-bottom: 30px; }
.action-button { background-color: var(--primary-color); color: #ffffff; padding: 15px 30px; border-radius: 8px; font-weight: 600; font-size: 1.05em; border: none; cursor: pointer; font-family: 'Montserrat', sans-serif; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-transform: uppercase; text-decoration: none; }
.action-button:hover { background-color: var(--primary-hover-color); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.call-to-action .action-button { background-color: #ffffff; color: var(--primary-color); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.call-to-action .action-button:hover { background-color: #f0f0f0; color: var(--primary-hover-color); transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.secondary-button { background-color: transparent !important; border: 2px solid #ffffff !important; color: #ffffff !important; margin-left: 20px; }
.secondary-button:hover { background-color: rgba(255, 255, 255, 0.1) !important; transform: translateY(-5px) scale(1.02); box-shadow: none !important; }
.info-banner {
    margin: 0 auto 25px auto;
    max-width: 800px;
    padding: 18px 24px;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.35);
    color: var(--heading-color);
    font-size: 1em;
    text-align: left;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.08);
}

/* --- Forms & Other Specific Styles --- */
h2.section-title { font-size: 1.8em; font-weight: 600; color: var(--heading-color); margin: 60px 0 30px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; text-align: center; }
.action-button.disabled-button, .action-button.disabled-button:hover { background-color: #ced4da; color: #a0a8b3; cursor: not-allowed; box-shadow: none; transform: none; }
.action-button svg { width: 22px; height: 22px; stroke-width: 2.5; }

.embedded-form-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.embedded-form-page iframe {
    width: 100%;
    min-height: 650px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-link::before {
    content: '←';
    font-size: 1.1em;
    line-height: 1;
}

@media (max-width: 768px) {
    .embedded-form-page {
        padding: 30px 16px 60px;
    }

    .embedded-form-page iframe {
        min-height: 75vh;
    }
}
.reset-button { background-color: #f1f3f5; color: var(--text-color); padding: 10px 20px; border: 1px solid var(--border-color); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: 'Lato', sans-serif; }
.reset-button:hover { background-color: #e9ecef; border-color: #adb5bd; }
[data-aos] { transition-property: opacity, transform; transition-duration: 0.8s; transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1); opacity: 0; transform: translateY(20px); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0) translateX(0); }

/* --- Deals & Quotes Specific Styles --- */
.form-card { /* This is the general card style used for the deals list and the deal form */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 30px var(--shadow-medium);
    padding: 40px;
    margin-bottom: 30px; /* Space between cards */
    text-align: left; /* Ensure text alignment is natural within the card */
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(233, 244, 255, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.form-card.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(233, 244, 255, 0.72));
}
.form-card.form-card--frameless {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
}
.form-card.form-card--frameless .form-card-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 20px;
}
.form-card.form-card--frameless .form-card-description {
    margin-bottom: 25px;
}

.form-card-header {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Space between title and button */
    border-bottom: 1px solid var(--border-color); /* Light separator */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.form-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.action-button.is-active {
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.25);
    transform: translateY(-2px);
}

.action-button.secondary-button.is-active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.form-card-header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.8em;
    color: var(--heading-color);
    flex-grow: 1; /* Allows title to take available space */
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.form-card-description {
    margin: 0 0 20px 0;
    font-size: 1em;
    color: var(--text-color);
    max-width: none;
}

#quote-form-wrapper {
    margin-top: 30px;
}

#quote-form-wrapper .form-card-description {
    margin-top: 0;
}

.embedded-form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.embedded-form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.embedded-form-body iframe,
.embedded-form-body form,
.embedded-form-body .proposal-preview {
    width: 100%;
}

.embedded-form-body iframe {
    flex: 1 1 auto;
    min-height: 520px;
}

.deal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between list items */
}

.deal-list li {
    background-color: rgba(248, 249, 250, 0.8); /* Lighter background for list items */
    border: 1px solid rgba(224, 230, 237, 0.7);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Subtle shadow for list items */
    transition: transform 0.2s ease;
}

.deal-list li:hover {
    transform: translateY(-2px);
}

.deal-title {
    font-weight: 600;
    color: var(--primary-color); /* Highlight deal titles */
    font-size: 1.1em;
}

.deal-meta {
    font-size: 0.9em;
    color: #6c7a89;
}

.deal-notes {
    font-size: 0.95em;
    color: var(--text-color);
    margin-top: 8px;
    line-height: 1.5;
}

.empty-state {
    background-color: rgba(248, 249, 250, 0.7);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #6c7a89;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Form Layout (Grid for inputs) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min-width for inputs */
    gap: 20px;
    margin-bottom: 30px; /* Space before buttons */
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: var(--heading-color);
    text-align: left; /* Ensure label text is left-aligned */
}

.form-control span {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.form-control input,
.form-control select,
.form-control textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.7); /* Frosted background for inputs */
    font-size: 1em;
    font-family: 'Lato', sans-serif;
    color: var(--heading-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.form-control--full {
    grid-column: 1 / -1; /* Make this field span full width */
}

.form-control textarea {
    resize: vertical;
    min-height: 90px;
}

.form-control-label {
    display: block;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.optional {
    font-weight: 400;
    font-size: 0.85em;
    color: #64748b;
}

.option-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.option-list--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    font-weight: 500;
    color: var(--text-color);
}

.embedded-form-body {
    display: grid;
    gap: 24px;
}

.proposal-items-header {
    text-align: left;
    margin-bottom: 20px;
}

.proposal-items-header h4 {
    margin-bottom: 8px;
    font-size: 1.25em;
    color: var(--heading-color);
}

.proposal-items-header p {
    margin: 0;
    font-size: 0.95em;
    color: #6c7a89;
}

.proposal-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.proposal-price-control .price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 12px;
}

.proposal-price-control .price-input-wrapper input {
    border: none;
    background: transparent;
    padding: 10px 0;
    width: 100%;
}

.proposal-price-control .price-input-wrapper input:focus {
    outline: none;
}

.icon-button {
    align-self: center;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    background-color: rgba(52, 152, 219, 0.12);
    color: var(--primary-hover-color);
}

.icon-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.financial-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    text-align: left;
}

.financial-summary-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.financial-summary-item span {
    display: block;
    font-size: 0.9em;
    color: #6c7a89;
    margin-bottom: 6px;
}

.financial-summary-item strong {
    font-size: 1.2em;
    color: var(--heading-color);
}

.proposal-preview {
    margin-top: 30px;
    margin-bottom: 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.proposal-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.proposal-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.proposal-preview-body {
    display: grid;
    gap: 24px;
}

.proposal-preview-section h4 {
    margin-bottom: 12px;
    font-size: 1.2em;
    color: var(--heading-color);
}

.proposal-details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 24px;
}

.proposal-details-list div {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
}

.proposal-details-list dt {
    font-weight: 600;
    font-size: 0.9em;
    color: #6c7a89;
}

.proposal-details-list dd {
    margin: 6px 0 0;
    font-size: 1.05em;
    color: var(--heading-color);
}

.proposal-items-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    overflow: hidden;
}

.proposal-items-table th,
.proposal-items-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.proposal-items-table th {
    background: rgba(52, 152, 219, 0.12);
    font-weight: 700;
    color: var(--heading-color);
}

.proposal-items-table tbody tr:last-child td {
    border-bottom: none;
}

.proposal-items-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.proposal-zoho-sign-note {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 10px;
    padding: 16px;
    color: var(--heading-color);
}

.action-button.tertiary-button {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid rgba(52, 152, 219, 0.35);
}

.action-button.tertiary-button:hover {
    background-color: rgba(52, 152, 219, 0.08);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .proposal-item-row {
        grid-template-columns: 1fr;
    }

    .proposal-item-row .icon-button {
        justify-self: flex-start;
    }
}

@media (max-width: 700px) {
    .proposal-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .proposal-preview-actions {
        width: 100%;
    }

    .proposal-preview-actions .action-button,
    .proposal-preview-actions .secondary-button,
    .proposal-preview-actions .tertiary-button,
    .proposal-preview-actions .reset-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1200;
}

.modal[hidden] {
    display: none;
}

.modal-dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 40px 45px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    color: var(--heading-color);
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--heading-color);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    outline: none;
}

.modal-description {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--text-color);
}

fieldset {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 25px;
    margin: 0 0 25px 0;
    background-color: rgba(248, 249, 250, 0.7);
}

legend {
    font-weight: 700;
    color: var(--heading-color);
    padding: 0 10px;
}

.modal-open {
    overflow: hidden;
}

.modal-open .site-header {
    z-index: 1000;
}

.button-group--left {
    justify-content: flex-start; /* Align buttons to the left */
    gap: 15px; /* Adjust spacing between buttons */
}

.form-feedback {
    color: var(--primary-color);
    font-weight: 600;
    min-height: 1.2em;
    margin-top: 15px;
    text-align: left;
}

body.quote-form-overlay-open {
    overflow: hidden;
}

#quote-form-wrapper.is-overlay {
    display: flex;
}

@media (max-width: 900px) {
    #quote-form-wrapper.is-overlay .form-card-header {
        align-items: stretch;
    }
}


/* --- MOBILE OPTIMIZATION & RESPONSIVE STYLES --- */
@media (max-width: 900px) {
    .main-nav { display: flex; flex-direction: column; align-items: center; position: fixed; top: 80px; left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px 0; transform: translateY(-150%); transition: transform 0.4s ease-in-out; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    .main-nav.active { transform: translateY(0); }
    .main-nav a { margin: 10px 0; font-size: 1.2em; }
    .nav-toggle { display: block; }
    .nav-toggle.active .hamburger { background-color: transparent; }
    .nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }
    .home-hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 8% 80px;
        gap: 50px;
    }
    .home-hero::after { background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 65%); }
    .home-hero-content { flex: none; }
    .home-hero h1 { font-size: 3em; }
    .home-hero p { margin: 20px auto 35px; }
    .home-hero .button-group { justify-content: center; }
    .home-hero-visual {
        width: 100%;
        justify-items: center;
    }
    .hero-stat-card,
    .hero-stat-card.secondary-card {
        justify-self: center;
        max-width: 360px;
        width: 100%;
    }
    .page-hero { padding: 60px 30px; }
    .page-hero h1 { font-size: 2.5em; }
    .main-content { padding: 0 20px; margin: 40px auto; }
    section { padding: 40px 30px; }
    section h1 { font-size: 2.2em; }
    h2, .feature-section h2, .call-to-action h2 { font-size: 2.2em; }
    .call-to-action p { font-size: 1.1em; }
    .secondary-button { margin-left: 0; margin-top: 15px; }
    .button-group { flex-direction: column; }
    .action-button { width: 100%; }
    .form-card-header { flex-direction: column; align-items: flex-start; }
    .button-group--left { justify-content: center; } /* Center buttons on mobile for forms */
    .modal-dialog { width: 100%; padding: 30px 25px; }
    fieldset { padding: 20px; }
}

@media (max-width: 768px) {
    #quote-form-wrapper.is-overlay {
        position: fixed;
        inset: 0;
        z-index: 1200;
        padding: 20px 16px 30px;
        background: rgba(15, 23, 42, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        overflow-y: auto;
        justify-content: center;
        align-items: flex-start;
    }

    #quote-form-wrapper.is-overlay .embedded-form-card {
        margin: auto;
        width: 100%;
        max-width: 680px;
        border-radius: 16px;
        padding: 28px 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    }

    #quote-form-wrapper.is-overlay .form-card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    #quote-form-wrapper.is-overlay .reset-button {
        width: auto;
        align-self: flex-end;
    }

    #quote-form-wrapper.is-overlay iframe {
        min-height: 75vh;
    }
}
@media (max-width: 600px) {
    .site-logo { height: 40px; }
    .header-container { height: 70px; }
    .main-nav { top: 70px; }
    .home-hero { padding: 90px 7% 70px; }
    .home-hero h1 { font-size: 2.4em; }
    .home-hero p { font-size: 1.05em; }
    .page-hero h1 { font-size: 2em; }
    section h1, h2, .feature-section h2, .call-to-action h2 { font-size: 1.8em; }
    .services-grid { grid-template-columns: 1fr; }
    .form-card { padding: 30px 20px; }
    .form-grid { grid-template-columns: 1fr; } /* Stack form inputs on very small screens */
    .modal-dialog { padding: 25px 18px; }
}

