/* 
========================================================================
   ANTIGRAVITY DIGITAL MARKETING LANDING PAGE - PREMIUM STYLESHEET
========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Theme Variables --- */
:root {
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    
    /* Dark Theme (Default) */
    --bg-base: #070612;
    --bg-surface: rgba(18, 16, 35, 0.6);
    --bg-surface-solid: #100e22;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    
    --hero-glow-1: rgba(99, 102, 241, 0.15);
    --hero-glow-2: rgba(168, 85, 247, 0.15);
    
    --scrollbar-bg: #0d0c1d;
    --scrollbar-thumb: #312e81;
}

/* Light Theme Variables */
html.light {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(99, 102, 241, 0.1);
    --border-focus: rgba(99, 102, 241, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.05);
    --card-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
    
    --hero-glow-1: rgba(99, 102, 241, 0.08);
    --hero-glow-2: rgba(168, 85, 247, 0.08);
    
    --scrollbar-bg: #f1f5f9;
    --scrollbar-thumb: #cbd5e1;
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- Background Blob Animations --- */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
    transition: background-color 0.4s ease;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--hero-glow-1);
    top: -10%;
    left: -10%;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background-color: var(--hero-glow-2);
    bottom: -10%;
    right: -10%;
    animation: floatBlob 25s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background-color: rgba(236, 72, 153, 0.08);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatBlob 30s infinite alternate ease-in-out;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 80px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -40px) scale(0.9);
    }
}

/* --- Layout Containers --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(var(--bg-base), 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo svg {
    width: 32px;
    height: 32px;
    stroke: url(#logo-grad);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Toggle Switch Styling */
.theme-toggle-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-toggle-btn .sun-icon {
    display: none;
}

html.light .theme-toggle-btn .moon-icon {
    display: none;
}

html.light .theme-toggle-btn .sun-icon {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 180px;
    padding-bottom: 80px;
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-blur);
    animation: fadeInDown 0.8s ease;
}

.hero-badge svg {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-title span.grad-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-focus);
    transform: translateY(-3px);
}

html.light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* --- Trust / Badges Section --- */
.trust-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: var(--glass-blur);
    margin-bottom: 5rem;
}

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

.trust-card {
    padding: 1rem;
}

.trust-value {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Main Workspace Section (Calculator & Sidebar) --- */
.workspace-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: start;
    margin-bottom: 8rem;
}

/* --- Left Side: Services Catalog --- */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.category-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-group:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.category-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* --- Service Card --- */
.service-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

html.light .service-card {
    background: rgba(255, 255, 255, 0.4);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.08);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

html.light .service-card.selected {
    background: rgba(99, 102, 241, 0.05);
}

/* Custom Checkbox Design */
.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.checkbox-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.selected .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.service-card.selected .custom-checkbox::after {
    display: block;
}

.service-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.service-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* --- Right Side: Sticky Sidebar --- */
.sidebar-sticky {
    position: sticky;
    top: 110px;
    z-index: 10;
}

.summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-count {
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.selected-services-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.selected-services-scroll:empty::after {
    content: "No services selected yet. Choose from the builder on the left to start.";
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem 0;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.selected-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    color: var(--text-secondary);
}

.selected-item-price {
    font-weight: 700;
}

/* GST Toggle Styles */
.gst-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.gst-label {
    display: flex;
    flex-direction: column;
}

.gst-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.gst-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--primary-gradient);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Price Breakdown */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.breakdown-row.total {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.breakdown-row.total .total-price-val {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.delivery-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* --- Customer Details Form (Anchor/Target of CTAs) --- */
.quote-form-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.form-title-group {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.form-desc {
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.form-group-full {
    grid-column: span 2;
}

/* Floating Labels Styling */
.form-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

html.light .form-input {
    background: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.floating-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input-group.textarea-group .floating-label {
    top: 1.5rem;
    transform: none;
}

/* Input state check for moving label up */
.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: 0.75rem;
    transform: translateY(-50%) scale(0.85);
    background: var(--bg-surface-solid);
    padding: 0 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.form-input.error {
    border-color: var(--error-color);
}

.form-input.error ~ .floating-label {
    color: var(--error-color);
}

.error-message {
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 0.35rem;
    font-weight: 600;
    display: none;
}

/* Budget and Selection Style */
select.form-input {
    appearance: none;
    cursor: pointer;
}

.form-input-group.select-group::after {
    content: "▼";
    font-size: 0.8rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* --- Submit and CTA Actions --- */
.submit-btn-wrapper {
    text-align: center;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.15rem;
    border-radius: 14px;
    border: none;
}

/* --- Success Popup Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 7, 16, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3.5rem;
    max-width: 550px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.success-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--success-color);
}

.success-icon-container svg {
    width: 40px;
    height: 40px;
    stroke-width: 3;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Loader Animation --- */
.loader-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================================================
   PDF INVOICE STYLING (HIDDEN FROM LAYOUT, USED FOR EXPORT)
======================================================================== */
.pdf-invoice-template {
    width: 800px;
    padding: 40px;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.pdf-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.5px;
}

.pdf-meta-area {
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
}

.pdf-meta-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.pdf-grid-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    font-size: 14px;
}

.pdf-block-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 10px;
}

.pdf-details-block {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 20px;
    border-radius: 12px;
}

.pdf-detail-row {
    margin-bottom: 6px;
}

.pdf-detail-row span {
    font-weight: 600;
    color: #334155;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.pdf-table th {
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
}

.pdf-table th:first-child {
    border-top-left-radius: 8px;
}

.pdf-table th:last-child {
    border-top-right-radius: 8px;
    text-align: right;
}

.pdf-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.pdf-table td:last-child {
    text-align: right;
    font-weight: 700;
}

.pdf-table tr:last-child td {
    border-bottom: none;
}

.pdf-summary-flex {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.pdf-summary-box {
    width: 320px;
    font-size: 14px;
}

.pdf-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.pdf-sum-row.grand-total {
    border-bottom: none;
    font-size: 20px;
    font-weight: 800;
    color: #4f46e5;
    padding-top: 14px;
}

.pdf-footer {
    border-top: 2px solid #e2e8f0;
    padding-top: 24px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.pdf-terms {
    margin-bottom: 16px;
}

.pdf-terms-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.pdf-contact-info {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    font-weight: 600;
}

/* ========================================================================
   RESPONSIVE MEDIA QUERIES
======================================================================== */
@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        top: auto;
        z-index: 100;
    }
    .summary-card {
        border-radius: 24px 24px 0 0;
        padding: 1.5rem 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    }
    .summary-title, .selected-services-scroll, .gst-toggle-container, .delivery-badge {
        display: none !important;
    }
    .price-breakdown {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
    .breakdown-row {
        display: none;
    }
    .breakdown-row.total {
        display: flex;
        align-items: center;
        gap: 1rem;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        font-size: 1.5rem;
    }
    .summary-card .btn-primary {
        padding: 0.8rem 1.5rem;
    }
    .hero-section {
        padding-top: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    .form-container {
        padding: 2.5rem 1.5rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .form-group-full {
        grid-column: span 1;
    }
    .category-group {
        padding: 1.5rem;
    }
    .services-list {
        grid-template-columns: 1fr;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========================================================================
   PRINT MEDIA STYLES (FALLBACK FOR BROWSERS AND OFFLINE MODE)
======================================================================== */
@media print {
    #pdf-template-wrapper {
        display: block !important;
    }
    body * {
        visibility: hidden;
    }
    #invoice-template, #invoice-template * {
        visibility: visible;
    }
    #invoice-template {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        z-index: 99999;
    }
}
