:root {
    --primary-color: #1c3a5e;
    --secondary-color: #f4c430;
    --dark-color: #0f2339;
    --light-color: #e8f0f7;
    --success-color: #059669;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: #cbd5e1;
    --shadow-light: 0 1px 3px rgba(28, 58, 94, 0.1);
    --shadow-heavy: 0 10px 25px rgba(28, 58, 94, 0.15);
    --gradient-primary: linear-gradient(135deg, #1c3a5e 0%, #f4c430 100%);
    --gradient-light: linear-gradient(135deg, #e8f0f7 0%, #ffffff 100%);
    --bayou-blue: #1c3a5e;
    --louisiana-gold: #f4c430;
    --pelican-white: #f8fafc;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

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

/* Breadcrumb */
.breadcrumb {
    background: #f1f5f9;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        30deg,
        transparent,
        transparent 25px,
        rgba(244, 196, 48, 0.1) 25px,
        rgba(244, 196, 48, 0.1) 50px
    );
    animation: bayouWaves 18s linear infinite;
}

@keyframes bayouWaves {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(50px) translateY(-25px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-animation {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: oysterBob 5s ease-in-out infinite;
}

@keyframes oysterBob {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-1deg); }
    50% { transform: scale(1.1) rotate(0deg); }
    75% { transform: scale(1.05) rotate(1deg); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
    padding: 5rem 0;
    background: var(--gradient-light);
}

.calculator-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    border: 1px solid rgba(28, 58, 94, 0.1);
}

.calculator-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.calculator-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--louisiana-gold);
    border-radius: 2px;
}

.calculator-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.calculator-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.calculator-form {
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-label.required::after {
    content: '*';
    color: #dc2626;
    margin-left: 4px;
    font-weight: 700;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: var(--text-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(28, 58, 94, 0.1);
    transform: translateY(-1px);
}

.input-field.error {
    border-color: #dc2626;
    background-color: #fef2f2;
    animation: bayouShake 0.5s ease-in-out;
}

@keyframes bayouShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244,196,48,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(28, 58, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 58, 94, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.results-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(28, 58, 94, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--louisiana-gold));
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.result-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.result-item.highlight {
    background: var(--gradient-light);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(28, 58, 94, 0.1);
}

.result-item .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.result-item .value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.result-item.highlight .value {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Comparison Section */
.comparison-section {
    margin-top: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(28, 58, 94, 0.1);
}

.comparison-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    gap: 1rem;
}

.comparison-item {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 2fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.comparison-item:hover {
    background: var(--light-color);
    transform: translateX(4px);
}

.state-name {
    font-weight: 600;
    color: var(--text-primary);
}

.state-rate {
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.state-tax {
    font-weight: 600;
    text-align: center;
}

.savings {
    font-weight: 700;
    text-align: right;
}

.savings.savings {
    color: var(--success-color);
}

.savings.higher {
    color: #dc2626;
}

/* Information Sections */
.info-section {
    padding: 5rem 0;
    background: var(--gradient-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(28, 58, 94, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--louisiana-gold);
    border-radius: 0 0 2px 2px;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tax-structure h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.tax-structure ul {
    list-style: none;
    padding: 0;
}

.tax-structure li {
    padding: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--text-secondary);
    border-left: 3px solid var(--light-color);
    margin-bottom: 0.25rem;
}

.tax-structure li:before {
    content: '•';
    color: var(--louisiana-gold);
    font-weight: bold;
    position: absolute;
    left: -8px;
    background: white;
    padding: 0 4px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.benefits-list li:before {
    content: '🦪';
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.residency-rules h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem 0;
}

.residency-rules p {
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(28, 58, 94, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Related Calculators */
.related-calculators {
    padding: 5rem 0;
    background: var(--gradient-light);
}

.related-calculators h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(28, 58, 94, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(244,196,48,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.calculator-card:hover::before {
    opacity: 1;
    animation: bayouGlow 1.5s ease-in-out;
}

@keyframes bayouGlow {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.calculator-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 2;
}

.calculator-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.calculator-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalBayouRise 0.3s ease-out;
}

@keyframes modalBayouRise {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-body {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-form {
        padding: 2rem;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .comparison-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .calculator-section {
        padding: 3rem 0;
    }

    .calculator-header {
        padding: 2rem;
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .info-card, .faq-item {
        padding: 1.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }
} 