:root {
    --primary-color: #204080;
    --secondary-color: #5AC8FA;
    --dark-color: #0056CC;
    --light-color: #E3F2FD;
    --success-color: #48bb78;
    --warning-color: #f6ad55;
    --error-color: #e53e3e;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(32, 64, 128, 0.1);
    --shadow-heavy: 0 10px 25px rgba(32, 64, 128, 0.15);
    --gradient-primary: linear-gradient(135deg, #204080 0%, #5AC8FA 100%);
    --gradient-light: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    --marriage-rose: #e91e63;
    --marriage-gold: #ffd700;
    --partner-blue: #3f51b5;
    --partner-pink: #e91e63;
}

* {
    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: #f8fafc;
    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: linear-gradient(135deg, var(--marriage-rose) 0%, var(--marriage-gold) 100%);
    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(
        45deg,
        transparent,
        transparent 30px,
        rgba(255, 215, 0, 0.1) 30px,
        rgba(255, 215, 0, 0.1) 60px
    );
    animation: marriageGlimmer 30s linear infinite;
}

@keyframes marriageGlimmer {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(30px); }
}

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

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

@keyframes marriageFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-10px) rotate(2deg) scale(1.05); }
}

.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: 650px;
    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(233, 30, 99, 0.1);
}

.calculator-header {
    background: linear-gradient(135deg, var(--marriage-rose) 0%, var(--marriage-gold) 100%);
    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: white;
    border-radius: 2px;
    opacity: 0.8;
}

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

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

.calculator-form {
    padding: 3rem;
}

/* Partner Sections */
.partner-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--light-color);
    position: relative;
    overflow: hidden;
}

.partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--partner-blue), var(--partner-pink));
}

.partner-section 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);
}

.joint-section {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--marriage-gold);
    position: relative;
}

.joint-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--marriage-gold);
}

.joint-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--marriage-rose);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--marriage-gold);
}

.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: var(--error-color);
    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(--marriage-rose);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.input-field.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
    animation: marriageShake 0.5s ease-in-out;
}

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

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

.error-message {
    color: var(--error-color);
    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(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--marriage-rose) 0%, var(--marriage-gold) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

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

.btn-secondary:hover {
    background: var(--marriage-rose);
    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%, #f8fafc 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(233, 30, 99, 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(--marriage-rose), var(--marriage-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: linear-gradient(135deg, #fff0f5 0%, #fff 100%);
    margin: 0 -1rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 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(--marriage-rose);
    font-size: 1.3rem;
}

/* Filing, Strategy, and Timing Sections */
.filing-section, .strategy-section, .timing-section {
    margin-top: 3rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(233, 30, 99, 0.1);
}

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

.filing-grid, .strategy-grid, .timing-grid {
    display: grid;
    gap: 1rem;
}

.filing-item, .strategy-item, .timing-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--marriage-rose);
    transition: all 0.3s ease;
}

.filing-item:hover, .strategy-item:hover, .timing-item:hover {
    background: var(--light-color);
    transform: translateX(4px);
}

.filing-item h4, .strategy-item h4, .timing-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.filing-item p, .strategy-item p, .timing-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 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(233, 30, 99, 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(--marriage-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;
}

.info-content h3, .strategy-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem 0;
}

.info-content ul, .strategy-content ul {
    list-style: none;
    padding: 0;
}

.info-content li, .strategy-content 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;
}

.info-content li:before, .strategy-content li:before {
    content: '•';
    color: var(--marriage-rose);
    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;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 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(233, 30, 99, 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(233, 30, 99, 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(233,30,99,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

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

@keyframes marriageGlow {
    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: modalMarriageRise 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--marriage-rose) 0%, var(--marriage-gold) 100%);
    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;
    }

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

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

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

    .partner-section, .joint-section {
        padding: 1.5rem;
    }
}

@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;
    }

    .filing-section, .strategy-section, .timing-section {
        padding: 1.5rem;
    }
} 