/* UPSC Age Calculator Styles */
.upsc-calculator-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.upsc-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.upsc-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.upsc-hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.upsc-hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.upsc-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.upsc-feature-icon {
    font-size: 1.5rem;
}

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

.upsc-calculator-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.upsc-calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.upsc-calculator-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.upsc-calculator-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Form Styles */
.upsc-calculator-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.upsc-form-group {
    margin-bottom: 25px;
}

.upsc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.upsc-label-icon {
    margin-right: 8px;
}

.upsc-input, .upsc-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.upsc-input:focus, .upsc-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.upsc-input-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Calculate Button */
.upsc-calculate-btn {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.upsc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.upsc-btn-icon {
    margin-right: 8px;
}

/* Result Section */
.upsc-result-section {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #3498db;
}

.upsc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.upsc-result-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
}

.upsc-result-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

.upsc-result-badge.eligible {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upsc-result-badge.not-eligible {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.upsc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.upsc-result-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.upsc-result-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.upsc-result-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upsc-result-value {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Detailed Results */
.upsc-success-message, .upsc-error-message {
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

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

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

.upsc-success-details, .upsc-error-details {
    margin-top: 15px;
}

.upsc-tip, .upsc-suggestion {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.3);
    border-radius: 8px;
}

.upsc-suggestion ul {
    margin: 10px 0 0 20px;
}

/* Info Cards */
.upsc-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.upsc-info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.upsc-info-card:hover {
    transform: translateY(-5px);
}

.upsc-info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.upsc-info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.upsc-info-card p {
    color: #666;
    line-height: 1.6;
}

/* Table Section */
.upsc-table-section {
    margin-bottom: 50px;
}

.upsc-table-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.upsc-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.upsc-age-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.upsc-age-table th {
    background: #3498db;
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.upsc-age-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e1e5e9;
    color: #333;
}

.upsc-age-table tr:nth-child(even) {
    background: #f8f9fa;
}

.upsc-age-table tr:hover {
    background: #e3f2fd;
}

/* FAQ Section */
.upsc-faq-section {
    margin-bottom: 50px;
}

.upsc-faq-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2rem;
}

.upsc-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.upsc-faq-item {
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
}

.upsc-faq-question {
    background: #f8f9fa;
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #2c3e50;
    transition: background 0.3s ease;
}

.upsc-faq-question:hover {
    background: #e9ecef;
}

.upsc-faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.upsc-faq-answer.active {
    padding: 25px;
    max-height: 500px;
}

.upsc-faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* SEO Content Styles */
.upsc-seo-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.upsc-seo-content h2, .upsc-seo-content h3 {
    color: #2c3e50;
    margin: 40px 0 20px 0;
}

.upsc-key-highlights, .upsc-important-notes {
    background: #e3f2fd;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    margin: 25px 0;
}

.upsc-conclusion {
    background: #e8f5e8;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    margin: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upsc-hero {
        padding: 40px 20px;
    }
    
    .upsc-hero h1 {
        font-size: 2.2rem;
    }
    
    .upsc-hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .upsc-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .upsc-calculator-card {
        padding: 25px 20px;
    }
    
    .upsc-result-grid {
        grid-template-columns: 1fr;
    }
    
    .upsc-info-cards {
        grid-template-columns: 1fr;
    }
    
    .upsc-result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .upsc-calculator-wrapper {
        padding: 15px;
    }
    
    .upsc-hero h1 {
        font-size: 1.8rem;
    }
    
    .upsc-calculator-header h2 {
        font-size: 1.6rem;
    }
}