/* =============================================
   LLC vs S-Corp Tax Calculator - Premium Styles
   ============================================= */

/* CSS Variables - Exact Katherine M. Johnson CPA Website Theme */
:root {
    /* Exact colors from kmjohnsoncpa.com */
    --primary: #364A70;
    --primary-dark: #2d3d5c;
    --primary-light: #4a5f88;
    --primary-glow: rgba(54, 74, 112, 0.2);

    --secondary: #364A70;
    --secondary-dark: #2d3d5c;
    --secondary-light: #4a5f88;
    --secondary-glow: rgba(54, 74, 112, 0.2);

    --accent: #364A70;
    --accent-light: #4a5f88;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: #fca5a5;

    /* Neutral Palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;

    --white: #ffffff;

    /* Premium Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-green: 0 0 40px var(--secondary-glow);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Clean Professional Background (matching CPA website) */
    --glass-bg: #ffffff;
    --glass-border: #e5e7eb;
    --glass-blur: none;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: transparent;
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* App Container - Clean Professional Style */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass-bg);
    min-height: 100vh;
    overflow: hidden;
}

@keyframes containerSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1140px) {
    .app-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
}

/* Header - Exact Match to CPA Website Navigation Bar */
.header {
    background: #364A70;
    color: #ffffff;
    padding: 20px 40px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.phone-link:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.btn-consultation {
    background: #364A70;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(54, 74, 112, 0.3);
    border: 2px solid #364A70;
}

.btn-consultation:hover {
    background: #2d3d5c;
    box-shadow: 0 4px 12px rgba(54, 74, 112, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
    border-color: #2d3d5c;
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
    }
    
    .header-content {
        justify-content: center;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #364A70;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.75;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Main Content */
.main-content {
    padding: 0;
    background: var(--white);
}

/* Hero Section - Clean Professional Style Matching CPA Website */
.hero {
    background: #364A70;
    color: var(--white);
    padding: 50px 40px;
    text-align: center;
    position: relative;
}


.hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
    letter-spacing: 0.01em;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.7;
    font-weight: 400;
    color: var(--white);
}

.hero-location {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 500;
    color: var(--white);
    margin-top: 8px;
    font-style: italic;
}

/* Calculator Section - Clean White Background */
.calculator-section {
    padding: 40px;
    background: var(--white);
}

/* Calculator Cards */
.calculator-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calculator-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(54, 74, 112, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.card-header.collapsible {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-header.collapsible:hover {
    background: var(--gray-100);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #364A70;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(54, 74, 112, 0.25);
    transition: all 0.3s ease;
}

.calculator-card:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    flex: 1;
    letter-spacing: -0.01em;
}

.toggle-icon {
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.collapsed-card.open .toggle-icon {
    transform: rotate(180deg);
}

.card-body {
    padding: 24px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
}

.label-text {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.label-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--gray-500);
    font-weight: 500;
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 18px 16px 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
    color: var(--gray-800);
}

.input-wrapper input:hover {
    border-color: var(--gray-300);
    background: var(--white);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow), 0 4px 12px rgba(72, 197, 216, 0.15);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-800);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 45px;
}

select:hover {
    border-color: var(--gray-300);
    background-color: var(--white);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px var(--primary-glow), 0 4px 12px rgba(72, 197, 216, 0.15);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .input-row {
        grid-template-columns: 1fr;
    }
}

/* Auto Calculate Button */
.btn-auto-calculate {
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(72, 197, 216, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-auto-calculate:hover {
    background: #364A70;
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(54, 74, 112, 0.3);
}

/* Profit Display */
.profit-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--secondary) 0%, #0d9488 50%, var(--secondary-dark) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-top: 28px;
    box-shadow: 0 4px 16px var(--secondary-glow);
    position: relative;
    overflow: hidden;
}

.profit-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.profit-label {
    font-weight: 500;
    font-size: 0.95rem;
}

.profit-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Distribution Preview */
.distribution-preview {
    margin-top: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px dashed var(--gray-300);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
}

.preview-item:first-child {
    border-bottom: 1px solid var(--gray-200);
}

.preview-item span:last-child {
    font-weight: 600;
    color: var(--gray-700);
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 18px 40px;
    background: #364A70;
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(54, 74, 112, 0.3);
    text-transform: none;
    letter-spacing: 0.01em;
}

.btn-calculate:hover {
    background: #2d3d5c;
    box-shadow: 0 6px 20px rgba(54, 74, 112, 0.4);
    transform: translateY(-2px);
}

.btn-calculate:active {
    background: #243349;
    box-shadow: 0 2px 8px rgba(54, 74, 112, 0.3);
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Results Section - Clean White Background */
.results-section {
    padding: 40px;
    background: var(--white);
}

/* Savings Hero - Clean Professional Style */
.savings-hero {
    background: var(--secondary);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 36px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.savings-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.savings-amount {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.savings-percentage {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 700px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* Comparison Cards */
.comparison-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.card-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 4px 12px;
    background: #364A70;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(54, 74, 112, 0.3);
}

.card-tag.recommended {
    background: #364A70;
}

.comparison-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 12px 0 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.llc-card {
    border-top: 4px solid var(--gray-400);
}

.scorp-card {
    border-top: 4px solid #364A70;
}

/* Tax Breakdown */
.tax-breakdown {
    margin-bottom: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.item-label {
    color: var(--gray-600);
}

.item-value {
    font-weight: 600;
    color: var(--gray-800);
}

.highlight-se {
    background: #fef2f2;
    margin: 0 -24px;
    padding: 10px 24px !important;
}

.highlight-se .item-label,
.highlight-se .item-value {
    color: var(--danger);
}

.highlight-savings {
    background: #ecfdf5;
    margin: 0 -24px;
    padding: 10px 24px !important;
}

.highlight-savings .item-label,
.highlight-savings .item-value {
    color: var(--secondary-dark);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.total-value {
    font-size: 1.3rem;
    color: var(--gray-900);
}

/* Explanation Card */
.explanation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.explanation-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.explanation-content p {
    margin-bottom: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

.explanation-content p:last-child {
    margin-bottom: 0;
}

.explanation-content strong {
    color: var(--gray-800);
}

/* AI Explanation Card */
.ai-explanation-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9d5ff;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-icon {
    font-size: 1.5rem;
}

.ai-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-text {
    color: var(--gray-700);
    line-height: 1.7;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-pdf {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-pdf:hover {
    background: var(--gray-200);
}

.btn-email {
    background: var(--primary);
    color: var(--white);
}

.btn-email:hover {
    background: var(--primary-dark);
}

.btn-recalculate {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.btn-recalculate:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

/* Email Modal */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

.modal-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.modal-content .input-group {
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.btn-send {
    flex: 1;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-send:hover {
    background: var(--primary-dark);
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel:hover {
    background: var(--gray-200);
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-300);
    padding: 32px;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer p:last-child {
    margin-bottom: 0;
}

.footer-brand {
    color: var(--white);
    font-weight: 500;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 32px 20px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .calculator-section {
        padding: 20px;
    }

    .results-section {
        padding: 20px;
    }

    .savings-amount {
        font-size: 2.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        min-width: 100%;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .action-buttons,
    .btn-calculate {
        display: none !important;
    }

    .app-container {
        box-shadow: none;
    }

    .results-section {
        padding: 0;
    }
}

/* =============================================
   Step-by-Step Comparison Layout
   ============================================= */

/* Side-by-side comparison container */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
}

/* Comparison columns */
.comparison-column {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.llc-column {
    border-top: 4px solid var(--gray-500);
}

.scorp-column {
    border-top: 4px solid var(--secondary);
}

/* Column headers */
.column-header {
    background: var(--gray-50);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.column-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.column-header.recommended {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.recommended-badge {
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Step cards */
.step-card {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.step-card:last-child {
    border-bottom: none;
}

.step-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-formula {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.step-calculation {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

/* Step breakdown rows */
.step-breakdown {
    margin: 12px 0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--gray-200);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row span:first-child {
    color: var(--gray-600);
}

.breakdown-row span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

/* Step results */
.step-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.result-label {
    font-weight: 500;
    color: var(--gray-700);
}

.result-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.step-result.highlight-negative {
    background: #fef2f2;
}

.step-result.highlight-negative .result-value {
    color: var(--danger);
}

.step-result.highlight-positive {
    background: #ecfdf5;
}

.step-result.highlight-positive .result-value {
    color: var(--secondary-dark);
}

/* Total card */
.step-card.total-card {
    background: var(--gray-50);
}

.step-result.total-result {
    background: var(--gray-800);
    color: var(--white);
}

.step-result.total-result .result-label {
    color: var(--gray-300);
}

.step-result.total-result .result-value {
    color: var(--white);
    font-size: 1.3rem;
}

.step-result.total-result.highlight-positive {
    background: var(--secondary-dark);
}

/* Info card */
.step-card.info-card {
    background: #f0f9ff;
    border-left: 4px solid var(--primary);
}

.info-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Summary card */
.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.summary-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 700px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.summary-item.highlight {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid var(--secondary);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-value.negative {
    color: var(--danger);
}

.summary-value.positive {
    color: var(--secondary-dark);
}

.summary-value.savings {
    color: var(--secondary);
    font-size: 1.8rem;
}

/* Disclaimer card */
.disclaimer-card {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.disclaimer-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
}

.disclaimer-card ul {
    margin: 0;
    padding-left: 20px;
}

.disclaimer-card li {
    font-size: 0.85rem;
    color: #78350f;
    margin-bottom: 8px;
    line-height: 1.5;
}

.disclaimer-card li:last-child {
    margin-bottom: 0;
}

.disclaimer-card strong {
    color: #92400e;
}

/* Toggle styling */
.toggle-group {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.toggle-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.toggle-text {
    font-weight: 500;
    color: var(--gray-700);
}

.toggle-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
    margin-left: 32px;
}

/* Input suffix styling */
.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--gray-500);
    font-weight: 500;
}

.input-wrapper input+.input-suffix {
    right: 16px;
}

/* Adjust input padding for suffix */
#sutaRate {
    padding-right: 40px;
}

/* =============================================
   AI Explanation Card Styles
   ============================================= */

.ai-explanation-card {
    background: linear-gradient(135deg, #e8ecf1 0%, #d4dae3 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-icon {
    font-size: 2rem;
}

.ai-header h4 {
    flex: 1;
    margin: 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-regenerate {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-regenerate:hover {
    background: var(--primary);
    color: var(--white);
}

.ai-content {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-600);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-explanation {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.ai-explanation p {
    margin-bottom: 12px;
}

.ai-explanation p:last-child {
    margin-bottom: 0;
}

.ai-error {
    color: var(--danger);
    font-size: 0.9rem;
}

/* Email Modal Improvements */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    color: var(--gray-800);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-send,
.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-send {
    background: #364A70;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(54, 74, 112, 0.25);
}

.btn-send:hover {
    background: #2d3d5c;
    box-shadow: 0 4px 12px rgba(54, 74, 112, 0.35);
    transform: translateY(-1px);
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-cancel:hover {
    background: var(--gray-300);
}

.email-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.email-status.success {
    background: #ecfdf5;
    color: var(--secondary-dark);
}

.email-status.error {
    background: #fef2f2;
    color: var(--danger);
}

/* =============================================
   Input Validation Styles
   ============================================= */

.input-validation-message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--danger);
    animation: fadeIn 0.3s ease;
}

.input-validation-message.warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #b45309;
}

.validation-icon {
    flex-shrink: 0;
}

.validation-text {
    line-height: 1.4;
}

/* Input error state */
.input-wrapper input.input-error,
.input-wrapper input:invalid {
    border-color: var(--danger);
    background-color: #fef2f2;
}

.input-wrapper input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Input warning state */
.input-wrapper input.input-warning {
    border-color: var(--warning);
    background-color: #fffbeb;
}

.input-wrapper input.input-warning:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Input success state */
.input-wrapper input.input-success {
    border-color: var(--secondary);
}

/* =============================================
   Error Modal Styles
   ============================================= */

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.error-modal-content {
    max-width: 450px;
    text-align: left;
}

.error-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.error-modal-icon {
    font-size: 2rem;
}

.error-modal-header h4 {
    font-size: 1.25rem;
    color: var(--danger);
    margin: 0;
}

.error-modal-body {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
}

.error-modal-body p {
    margin: 0 0 12px 0;
}

.error-modal-body p:last-child {
    margin-bottom: 0;
}

.error-modal-body strong {
    color: var(--gray-800);
}

.error-modal-body .error-tip {
    display: block;
    margin-top: 16px;
    padding: 12px;
    background: var(--gray-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* =============================================
   Enhanced Tooltips
   ============================================= */

.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background: var(--gray-200);
    border-radius: 50%;
    font-size: 0.7rem;
    color: var(--gray-600);
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-trigger:hover {
    background: var(--primary);
    color: var(--white);
}

/* Filing status select option styling */
select option {
    padding: 8px;
}