/**
 * CPI Calculator Page Styles
 */

/* Container */
.cpi-calculator-page {
    background: #f9f9f9;
    padding: 60px 0;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 60px;
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    margin: 0 0 30px;
    font-weight: 500;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 60px;
}

.calculator-container {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calculator-container h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin: 0 0 30px;
    text-align: center;
}

.calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
}

.calculator-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Calculator Results */
.calculator-results {
    margin-top: 50px;
    padding: 40px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 2px solid #0066cc;
}

.calculator-results h3 {
    font-size: 28px;
    color: #0066cc;
    margin: 0 0 30px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.result-item {
    background: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.result-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    display: block;
    font-size: 32px;
    color: #0066cc;
    font-weight: 700;
}

.projection-table {
    margin-top: 30px;
}

.projection-table h4 {
    font-size: 20px;
    color: #333;
    margin: 0 0 20px;
    text-align: center;
}

.projection-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.projection-table th {
    background: #0066cc;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.projection-table td {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.projection-table tr:last-child td {
    border-bottom: none;
}

.projection-table .positive {
    color: #00aa44;
    font-weight: 600;
}

.market-review-notice {
    background: #fff4e5;
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.market-review-notice h3 {
    color: #ff9800;
    margin: 0 0 15px;
}

/* Lead Capture Section */
.lead-capture-section {
    margin: 60px 0;
}

.lead-capture-container {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 60px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.lead-capture-container h2 {
    font-size: 36px;
    margin: 0 0 20px;
    text-align: center;
    color: white;
}

.lead-intro {
    font-size: 18px;
    text-align: center;
    margin: 0 auto 40px;
    max-width: 700px;
    line-height: 1.6;
}

.lead-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form label {
    color: white;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Content Section */
.content-section {
    margin: 60px 0;
}

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

.content-block {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.content-block h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.content-block p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* CTA Section */
.cta-section {
    margin: 60px 0;
}

.cta-container {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-radius: 12px;
}

.cta-container h2 {
    font-size: 36px;
    color: white;
    margin: 0 0 20px;
}

.cta-container p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .calculator-container,
    .lead-capture-container,
    .content-block,
    .hero-section {
        padding: 30px 20px;
    }

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

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

    .result-value {
        font-size: 24px;
    }

    .cta-container h2,
    .lead-capture-container h2 {
        font-size: 28px;
    }

    .projection-table th,
    .projection-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .calculator-container h2 {
        font-size: 24px;
    }

    .content-block h2 {
        font-size: 20px;
    }
}
