/* ============================================
   Cost Segregation Study - Stylesheet
   ============================================ */

:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef1f5;
    --bg-hover: #e4e8ee;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5e;
    --text-muted: #7a7a8e;
    
    --frute-blue: #2D7FF9;
    --frute-blue-light: #5a9fff;
    --frute-blue-glow: rgba(45, 127, 249, 0.1);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    
    --border-light: rgba(0, 0, 0, 0.08);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Sora', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--frute-blue);
    box-shadow: 0 0 0 3px var(--frute-blue-glow);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--frute-blue);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-menu {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-home:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.back-home svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--frute-blue-light);
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Hero Card */
.hero-card {
    background: linear-gradient(135deg, var(--frute-blue), #1a5fd4);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: white;
}

.hero-content h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.hero-content p {
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 24px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.hero-stats .stat.highlight {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stats .stat.highlight .stat-value {
    color: #10b981;
}

.hero-visual {
    flex-shrink: 0;
}

.hero-visual svg {
    width: 200px;
    height: 150px;
}

/* Property Search Card */
.property-search-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.property-search-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.property-search-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--frute-blue);
}

.search-container {
    max-width: 700px;
}

.search-input-wrapper {
    display: flex;
    gap: 12px;
}

.search-input-wrapper input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
}

.search-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Address Autocomplete */
.autocomplete-wrapper {
    position: relative;
    flex: 1;
}

.autocomplete-wrapper input {
    width: 100%;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}

.address-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--frute-blue-glow);
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-icon svg {
    width: 18px;
    height: 18px;
    color: var(--frute-blue);
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-main {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.suggestion-secondary {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item mark {
    background: rgba(45, 127, 249, 0.2);
    color: var(--frute-blue);
    padding: 0 2px;
    border-radius: 2px;
}

.suggestions-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.suggestions-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-light);
    border-top-color: var(--frute-blue);
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.no-suggestions p {
    margin-bottom: 12px;
}

.btn-manual-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--frute-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-manual-entry:hover {
    background: var(--frute-blue-dark);
    transform: translateY(-1px);
}

.property-details-card.manual-entry {
    border: 2px solid var(--frute-orange);
}

.property-details-card.manual-entry::before {
    content: 'Manual Entry';
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--frute-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Property Details Card */
.property-details-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.property-header {
    display: flex;
    gap: 24px;
}

.property-image {
    width: 280px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder,
.image-loading {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
}

.image-loading .loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top-color: var(--frute-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.image-loading span {
    font-size: 0.85rem;
}

.property-info {
    flex: 1;
}

.property-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 8px 14px;
    border-radius: 8px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--frute-blue);
}

.data-source {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-badge {
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.source-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Analysis Form Card */
.analysis-form-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.analysis-form-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.analysis-form-card h3 svg {
    width: 24px;
    height: 24px;
    color: var(--frute-blue);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-with-prefix {
    position: relative;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.input-with-prefix input {
    padding-left: 42px;
}

.input-with-prefix.readonly input {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

/* Results Card */
.results-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid var(--success);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.results-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.results-header h3 svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

.estimate-badge {
    background: var(--success-glow);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.results-summary {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, var(--success-glow), rgba(16, 185, 129, 0.05));
    border-radius: 12px;
    margin-bottom: 32px;
}

.main-result .result-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.main-result .result-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--success);
}

.result-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-note .obbba-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
}

/* OBBBA Styling */
.obbba-hint {
    color: var(--success) !important;
    font-weight: 500;
}

.obbba-notice {
    background: linear-gradient(135deg, var(--success-glow), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.obbba-notice strong {
    display: block;
    color: var(--success);
    margin-bottom: 6px;
}

.obbba-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bonus-rates li.highlight {
    background: var(--success-glow);
    margin: 0 -16px;
    padding: 12px 16px !important;
    border-radius: 8px;
    border-bottom: none !important;
}

.bonus-rates li.highlight strong {
    color: var(--success);
}

.rate-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
}

/* Results Breakdown */
.results-breakdown {
    margin-bottom: 32px;
}

.results-breakdown h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.breakdown-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.breakdown-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.breakdown-percent {
    font-weight: 600;
    color: var(--frute-blue);
}

.breakdown-bar {
    height: 8px;
    background: var(--bg-hover);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-fill.five-year {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-fill.seven-year {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar-fill.fifteen-year {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.bar-fill.remaining {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.breakdown-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.breakdown-values .cost {
    color: var(--text-primary);
    font-weight: 500;
}

.breakdown-values .deduction {
    color: var(--success);
}

.breakdown-item.remaining .breakdown-values .deduction {
    color: var(--text-muted);
}

/* Tax Savings */
.tax-savings-estimate {
    margin-bottom: 32px;
}

.tax-savings-estimate h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.savings-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.savings-item.highlight {
    background: var(--frute-blue-glow);
    border: 1px solid var(--frute-blue);
}

.tax-rate {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.savings-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--success);
}

.savings-item.highlight .savings-value {
    color: var(--frute-blue);
}

/* Disclaimer */
.results-disclaimer {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--warning-glow);
    border-radius: 10px;
    margin-bottom: 24px;
}

.results-disclaimer.success {
    background: var(--success-glow);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.results-disclaimer svg {
    width: 20px;
    height: 20px;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 2px;
}

.results-disclaimer.success svg {
    color: var(--success);
}

.results-disclaimer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Cost Segregation Study Tool */
.study-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 0.8;
}

.progress-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-num {
    background: var(--frute-blue);
    border-color: var(--frute-blue);
    color: white;
}

.progress-step.completed .step-num {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step .step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--frute-blue);
    font-weight: 500;
}

/* Study Steps */
.study-step {
    display: none;
}

.study-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-light);
}

.step-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.step-card h3 svg {
    width: 28px;
    height: 28px;
    color: var(--frute-blue);
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--frute-blue-glow);
    border-radius: 8px;
    border-left: 3px solid var(--frute-blue);
}

.subsection-title {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 28px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* Three Column Grid */
.form-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Input with Prefix */
.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
}

.input-with-prefix .prefix {
    padding: 12px 14px;
    background: var(--border-light);
    color: var(--text-muted);
    font-weight: 500;
}

.input-with-prefix input {
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.checkbox-item:hover {
    border-color: var(--frute-blue);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item input:checked + .checkmark {
    background: var(--frute-blue);
    border-color: var(--frute-blue);
}

.checkbox-item input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-item .label-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.step-navigation .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-navigation .btn svg {
    width: 18px;
    height: 18px;
}

#generateReportBtn {
    margin-left: auto;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Study Results Preview */
.study-results-preview {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--frute-blue), #1a5fd4);
    border-radius: 16px;
    color: white;
}

.study-results-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    text-align: center;
}

.results-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.summary-card.highlight {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Form Error States */
input.error,
select.error,
textarea.error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-with-prefix.error {
    border-color: var(--error) !important;
}

/* Submission Success */
.submission-success {
    text-align: center;
    padding: 40px 20px;
}

.submission-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.submission-success .success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.submission-success h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--success);
}

.submission-success p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.submission-success .confirmation-details {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

/* Responsive for Study Tool */
@media (max-width: 992px) {
    .study-progress {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .progress-step {
        flex: 1 1 30%;
    }
    
    .form-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .study-progress {
        padding: 16px;
    }
    
    .progress-step {
        flex: 1 1 45%;
    }
    
    .progress-step .step-label {
        font-size: 0.7rem;
    }
    
    .form-grid.three-col,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .results-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Reports List */
.reports-list {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.report-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.report-info .report-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.report-amount {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success);
}

/* Reports Sections */
.reports-section {
    margin-bottom: 32px;
}

.reports-section-header {
    margin-bottom: 20px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.reports-section-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.reports-section-header h2 svg {
    width: 24px;
    height: 24px;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Official Badge for Study Reports */
.official-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.official-badge svg {
    width: 14px;
    height: 14px;
}

/* Estimate Badge for Analyzer Reports */
.estimate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

/* Official Reports Section Styling */
.official-reports .reports-list {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(16, 185, 129, 0.08));
    border: 2px solid var(--success);
    position: relative;
}

.official-reports .reports-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), #059669);
    border-radius: 14px 14px 0 0;
}

.official-reports .report-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.official-reports .report-card:hover {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Analyzer Reports Section Styling */
.analyzer-reports .reports-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}

/* Report Card with Actions */
.report-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.report-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.report-card:last-child {
    margin-bottom: 0;
}

.report-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.report-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.official-reports .report-card-icon {
    background: var(--success-glow);
    color: var(--success);
}

.analyzer-reports .report-card-icon {
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
}

.report-card-icon svg {
    width: 24px;
    height: 24px;
}

.report-card-details {
    flex: 1;
}

.report-card-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.report-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.report-card-meta .meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.report-card-value {
    text-align: right;
    margin-right: 16px;
}

.report-card-value .value-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-card-value .value-amount {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
}

/* Report Card Actions */
.report-card-actions {
    display: flex;
    gap: 8px;
}

.report-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.report-action-btn:hover {
    background: var(--bg-hover);
}

.report-action-btn.edit-btn:hover {
    color: var(--frute-blue);
    border-color: var(--frute-blue);
    background: var(--frute-blue-glow);
}

.report-action-btn.delete-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-glow);
}

.report-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Empty State Button */
.empty-state .btn {
    margin-top: 20px;
}

/* Study Report Official Badge on Card */
.report-card .card-official-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.official-reports .report-card {
    position: relative;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .section-title-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .report-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .report-card-content {
        width: 100%;
    }
    
    .report-card-value {
        text-align: left;
        margin-right: 0;
    }
    
    .report-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Learn Grid */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.learn-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-light);
}

.learn-icon {
    width: 50px;
    height: 50px;
    background: var(--frute-blue-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.learn-icon svg {
    width: 24px;
    height: 24px;
    color: var(--frute-blue);
}

.learn-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.learn-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.learn-card ul {
    list-style: none;
    font-size: 0.9rem;
}

.learn-card ul li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.learn-card ul li:last-child {
    border-bottom: none;
}

.bonus-rates li {
    display: flex;
    justify-content: space-between;
}

/* Toast */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success { border-left: 3px solid var(--success); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--frute-blue); }

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top-color: var(--frute-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .hero-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 70px;
    }
    
    .logo span,
    .nav-item span,
    .back-home span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .property-header {
        flex-direction: column;
    }
    
    .property-image {
        width: 100%;
    }
    
    .learn-grid {
        grid-template-columns: 1fr;
    }
    
    .savings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    
    .hero-card {
        padding: 24px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .results-actions {
        flex-direction: column;
    }
}

/* Study Tool Address Autocomplete */
.address-autocomplete-wrapper {
    position: relative;
}

.cs-address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}

.cs-address-suggestions.active {
    display: block;
}

.cs-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

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

.cs-suggestion-item:hover {
    background: var(--frute-blue-glow);
}

.cs-suggestion-item svg {
    width: 16px;
    height: 16px;
    color: var(--frute-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-suggestion-text {
    flex: 1;
}

.cs-suggestion-main {
    font-weight: 500;
    color: var(--text-primary);
}

.cs-suggestion-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.cs-suggestion-source {
    font-size: 0.65rem;
    color: var(--frute-blue);
    background: var(--frute-blue-glow);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
    font-weight: 500;
}

.cs-suggestion-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
}

/* Generate Report Actions */
.generate-report-actions {
    margin-top: 24px;
    text-align: center;
}

/* Engineering Report Styles */
.engineering-report {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 32px;
}

/* Professional Letterhead (mirroring US Tax Advisors Group style) */
.report-letterhead {
    background: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 3px solid #2f6b4f;
}

.letterhead-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.letterhead-company {
    display: flex;
    flex-direction: column;
}

.letterhead-company .company-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f6b4f;
    letter-spacing: 0.02em;
}

.letterhead-company .company-tagline {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.letterhead-right {
    text-align: right;
}

.letterhead-credentials {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.credential-item {
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(47, 107, 79, 0.1), rgba(47, 107, 79, 0.05));
    border: 1px solid rgba(47, 107, 79, 0.2);
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #2f6b4f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.letterhead-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
    color: #666;
}

.report-header {
    background: linear-gradient(135deg, #2f6b4f, #1e3a5f);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.report-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.report-logo svg {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
}

.report-logo span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.report-title-block {
    text-align: center;
}

.report-title-block h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.report-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
    font-weight: 400;
    color: #c8e6c9;
}

.report-property-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.property-address {
    font-size: 1.2rem;
    font-weight: 500;
}

.report-date {
    text-align: right;
    font-size: 0.9rem;
}

.report-date span:first-child {
    opacity: 0.7;
}

.report-section {
    padding: 32px;
    border-bottom: 1px solid var(--border-light);
}

.report-section:last-of-type {
    border-bottom: none;
}

.report-section h3 {
    font-size: 1.2rem;
    color: var(--frute-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--frute-blue);
}

.report-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.report-section ul {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.report-section ul li {
    margin-bottom: 8px;
}

/* Cover Section */
.cover-section .cover-info {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.cover-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cover-info .info-row:last-child {
    border-bottom: none;
}

.cover-info .label {
    color: var(--text-muted);
}

.cover-info .value {
    font-weight: 600;
}

.executive-summary-box {
    background: linear-gradient(135deg, var(--frute-blue), #1a5fd4);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.executive-summary-box h4 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.executive-summary-box .summary-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.executive-summary-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Legal Citations */
.legal-citations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.citation {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--frute-blue);
}

.citation h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.citation p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Property Description */
.property-description {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
}

.property-description .desc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.property-description .desc-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.property-description .desc-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.property-description .desc-item .value {
    font-weight: 600;
}

/* Asset Tables */
.asset-table-section {
    margin-bottom: 32px;
}

.asset-table-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.asset-table-section .table-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.asset-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.asset-table th,
.asset-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.asset-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-secondary);
}

.asset-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.asset-table tfoot td {
    background: var(--frute-blue-glow);
    font-weight: 600;
}

/* Depreciation Summary Table */
.depreciation-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.depreciation-summary-table th,
.depreciation-summary-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.depreciation-summary-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.depreciation-summary-table .total-row td {
    background: linear-gradient(135deg, var(--frute-blue-glow), rgba(45, 127, 249, 0.05));
    font-weight: 600;
}

/* Tax Impact Grid */
.tax-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tax-impact-card {
    background: var(--bg-tertiary);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.tax-impact-card.highlight {
    background: linear-gradient(135deg, var(--success-glow), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--success);
}

.tax-impact-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tax-impact-card .impact-amount {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--success);
}

.tax-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Certification Section */
.certification-section .certification-box {
    background: var(--bg-tertiary);
    padding: 32px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
}

.certification-box ul {
    margin-bottom: 20px;
}

.certification-statement {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 24px;
}

.signature-block {
    text-align: center;
    padding-top: 24px;
}

.signature-line {
    width: 250px;
    height: 2px;
    background: var(--text-primary);
    margin: 0 auto 12px;
}

.signature-block p {
    margin-bottom: 4px;
}

.signature-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Report Actions */
.report-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: var(--bg-tertiary);
}

/* Print Styles */
@media print {
    .sidebar,
    .section-header,
    .study-progress,
    .step-navigation,
    .study-results-preview,
    .generate-report-actions,
    .report-actions {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .engineering-report {
        display: block !important;
        border: none;
        border-radius: 0;
    }
    
    .report-section {
        page-break-inside: avoid;
    }
    
    .asset-table-section {
        page-break-inside: avoid;
    }
}

/* Responsive Engineering Report */
@media (max-width: 992px) {
    .legal-citations {
        grid-template-columns: 1fr;
    }
    
    .property-description .desc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tax-impact-grid {
        grid-template-columns: 1fr;
    }
    
    .report-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .report-date {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .property-description .desc-grid {
        grid-template-columns: 1fr;
    }
    
    .asset-table {
        font-size: 0.8rem;
    }
    
    .asset-table th,
    .asset-table td {
        padding: 8px 12px;
    }
}

/* ============================================
   Cost Segregation Visual Explainer
   ============================================ */

.cost-seg-visual-explainer {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fd 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(45, 127, 249, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.visual-section {
    margin-bottom: 32px;
}

.visual-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 28px;
    position: relative;
}

.before-section .visual-title {
    color: #475569;
}

.after-section .visual-title {
    color: var(--frute-blue);
}

.visual-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Property Box */
.property-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 140px;
}

.sold-sign {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    transform: rotate(-15deg);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.house-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.house-icon-small {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.house-icon-tiny {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.price-tag {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.price-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Equals & Plus Signs */
.equals-sign,
.plus-sign {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #94a3b8;
}

.plus-sign.small {
    font-size: 1.5rem;
}

/* Component Boxes */
.component-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(0, 0, 0, 0.05);
    min-width: 140px;
    text-align: center;
    transition: all var(--transition-normal);
}

.component-box.small {
    padding: 16px;
    min-width: 110px;
}

.component-box.accelerated {
    border-color: var(--success);
    background: linear-gradient(to bottom, white, rgba(16, 185, 129, 0.03));
}

.component-box.accelerated-alt {
    border-color: #8b5cf6;
    background: linear-gradient(to bottom, white, rgba(139, 92, 246, 0.05));
}

.component-box.no-depreciate {
    border-color: var(--warning);
    background: linear-gradient(to bottom, white, rgba(245, 158, 11, 0.03));
}

.component-box.building-component {
    border-color: var(--frute-blue);
    background: linear-gradient(to bottom, white, rgba(45, 127, 249, 0.03));
}

.component-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.component-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.component-box.small .component-value {
    font-size: 0.95rem;
}

.depreciation-info {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.depreciation-info strong {
    color: var(--text-secondary);
}

.depreciation-info.bonus {
    color: var(--success);
}

.depreciation-info.bonus strong {
    color: var(--success);
}

.depreciation-info.bonus-alt {
    color: #8b5cf6;
}

.depreciation-info.bonus-alt strong {
    color: #8b5cf6;
}

.depreciation-info.warning {
    color: var(--warning);
}

.depreciation-info.warning strong {
    color: #d97706;
}

/* Icons in component boxes */
.land-icon,
.land-icon-small {
    margin-bottom: 8px;
}

.land-icon {
    width: 60px;
    height: 40px;
}

.land-icon-small {
    width: 45px;
    height: 30px;
}

.appliance-icon,
.improvements-icon {
    width: 50px;
    height: 40px;
    margin-bottom: 8px;
}

/* Segregated Components Container */
.segregated-components {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Visual Divider */
.visual-divider {
    display: flex;
    justify-content: center;
    margin: 28px 0;
}

.visual-divider svg {
    width: 32px;
    height: 32px;
    color: var(--frute-blue);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* Visual Summary */
.visual-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px dashed rgba(45, 127, 249, 0.2);
}

.summary-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.summary-box.benefit {
    border-color: #7c3aed;
    background: linear-gradient(135deg, white, rgba(124, 58, 237, 0.08));
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.summary-box.savings {
    border-color: #d97706;
    background: linear-gradient(135deg, white, rgba(217, 119, 6, 0.08));
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-box.benefit .summary-icon {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.summary-box.savings .summary-icon {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.summary-icon svg {
    width: 24px;
    height: 24px;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-box.benefit .summary-value {
    color: #7c3aed;
}

.summary-box.savings .summary-value {
    color: #d97706;
}

.summary-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Visual Legend */
.visual-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-color.accelerated {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.legend-color.accelerated-alt {
    background: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.legend-color.standard {
    background: rgba(45, 127, 249, 0.15);
    border-color: var(--frute-blue);
}

.legend-color.non-depreciable {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
}

.legend-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Visual Explainer */
@media (max-width: 992px) {
    .cost-seg-visual-explainer {
        padding: 28px 20px;
    }
    
    .visual-row {
        gap: 16px;
    }
    
    .segregated-components {
        gap: 12px;
    }
    
    .component-box {
        min-width: 120px;
        padding: 16px;
    }
    
    .component-box.small {
        min-width: 90px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .cost-seg-visual-explainer {
        padding: 24px 16px;
    }
    
    .visual-title {
        font-size: 1.25rem;
    }
    
    .visual-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .segregated-components {
        flex-direction: column;
    }
    
    .equals-sign,
    .plus-sign {
        font-size: 1.5rem;
        transform: rotate(90deg);
    }
    
    .plus-sign.small {
        font-size: 1.25rem;
    }
    
    .component-box {
        width: 100%;
        max-width: 200px;
    }
    
    .component-box.small {
        width: 100%;
        max-width: 180px;
    }
    
    .visual-summary {
        grid-template-columns: 1fr;
    }
    
    .visual-legend {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

