/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    gap: 5px;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-large {
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 50px;
    font-size: 20px;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-large:hover {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2d3748;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.feature-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.8;
}

.card-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Info Section */
.info-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.info-content {
    max-width: 900px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2d3748;
}

.info-content h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: #4a5568;
}

.info-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 15px;
}

.info-content ul {
    margin: 20px 0 20px 40px;
}

.info-content li {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 10px;
}

.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e0;
    margin: 5px 0;
}

.disclaimer {
    font-size: 14px;
    font-style: italic;
}

/* Calculator Specific Styles */
.calculator-page {
    padding: 40px 20px;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-card,
.info-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.calculator-card h1,
.info-card h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2d3748;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.info-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2d3748;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 16px;
}

.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.calculate-btn:hover {
    transform: scale(1.02);
}

.results {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 10px;
    margin-top: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #cbd5e0;
    font-size: 16px;
}

.result-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 22px;
    color: #667eea;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #667eea;
}

.result-label {
    color: #4a5568;
}

.result-value {
    font-weight: 600;
    color: #2d3748;
}

.info-section-card {
    margin-bottom: 30px;
}

.info-section-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #4a5568;
}

.info-section-card p {
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 10px;
}

.info-section-card ul {
    margin-left: 25px;
    line-height: 1.8;
}

.info-section-card li {
    margin-bottom: 10px;
    color: #4a5568;
}

.law-reference {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.law-reference strong {
    color: #92400e;
    display: block;
    margin-bottom: 10px;
}

.law-reference p {
    color: #78350f;
    line-height: 1.8;
}

.alert {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.alert strong {
    color: #1e40af;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .calculator-layout {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero {
        padding: 50px 20px;
    }
    
    .features,
    .info-section,
    .cta-section {
        padding: 50px 20px;
    }
}