/* Custom Properties */
:root {
    --primary-color: #0066ff;
    --dark-bg: #222;
    --text-color: #333;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004dc9 100%);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 100%;
}

.header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

.header-content:hover {
    transform: scale(1.01);
}

.header-content h1 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.header-content p {
    font-size: clamp(0.8rem, 2vw, 1rem);
    opacity: 0.9;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    width: 100%;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    background: transparent;
    max-width: var(--container-width);
    margin: 0 auto;
}

.nav-item {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    padding: 0 25px;
    white-space: nowrap;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #64b5f6;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 80%;
}

/* Featured Image Section */
.featured-image-section {
    width: 100%;
    background-color: #f5f9ff;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.featured-image-container {
    margin: 0;
    width: 100%;
    max-width: 800px;
    max-height: 420px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.1);
    position: relative;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 420px;
    display: block;
    object-fit: cover;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

.image-caption {
    background-color: rgba(0, 102, 255, 0.85);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .featured-image-section {
        padding: 1rem 0;
    }
    
    .featured-image-container {
        border-radius: 6px;
        max-width: 90%;
        max-height: 350px;
    }
    
    .featured-image {
        max-height: 350px;
    }
    
    .image-caption {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-image-section {
        padding: 0.75rem 0;
    }
    
    .featured-image-container {
        border-radius: 4px;
        max-width: 95%;
        max-height: 250px;
    }
    
    .featured-image {
        max-height: 250px;
    }
    
    .image-caption {
        position: relative;
        font-size: 0.7rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        height: 45px;
    }
    
    .nav-item {
        font-size: 14px;
        padding: 0 10px;
    }

    .nav-item::after {
        height: 2px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 40px;
    }
    
    .nav-item {
        font-size: 11px;
        padding: 0 5px;
        letter-spacing: 0;
    }
}

@media screen and (max-width: 320px) {
    .nav-item {
        font-size: 10px;
        padding: 0 3px;
        letter-spacing: -0.3px;
    }
}

/* Section Container */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Calculator Sections */
.calculator-section {
    background-color: #ffffff;
    padding: 2rem 0;
    width: 100%;
    transition: background-color 0.3s ease;
}

.calculator-section:hover {
    background-color: #f9f9f9;
}

.calculator-section h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.calculator-card h3 {
    margin-bottom: 0.75rem;
    width: 100%;
}

.card-title {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: #0052cc;
}

.calculator-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    width: 100%;
}

.calculate-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    width: auto;
    min-width: 180px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    text-decoration: none;
}

.calculate-btn:hover {
    background-color: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-section.about {
    grid-column: 1;
}

.footer-section.links {
    grid-column: 2;
}

.footer-section.social {
    grid-column: 3;
}

.footer-section.disclaimer {
    grid-column: 4;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 0.5rem;
}

.footer-section.links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-section.links a:hover {
    opacity: 1;
}

/* Social Media Links Styling */
.footer-section.social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section.social ul li {
    margin-bottom: 0.8rem;
    padding: 0;
    width: 100%;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
}

.social-link::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-link[href*="facebook"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231877f2' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm3 8h-1.35c-.538 0-.65.221-.65.778V10h2l-.209 2H13v7h-3v-7H8v-2h2V7.692C10 5.923 10.931 5 13.029 5H15v3z'/%3E%3C/svg%3E");
}

.social-link[href*="twitter"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231da1f2' viewBox='0 0 24 24'%3E%3Cpath d='M23.643 4.937c-.835.37-1.732.62-2.675.733.962-.576 1.7-1.49 2.048-2.578-.9.534-1.897.922-2.958 1.13-.85-.904-2.06-1.47-3.4-1.47-2.572 0-4.658 2.086-4.658 4.66 0 .364.042.718.12 1.06-3.873-.195-7.304-2.05-9.602-4.868-.4.69-.63 1.49-.63 2.342 0 1.616.823 3.043 2.072 3.878-.764-.025-1.482-.234-2.11-.583v.06c0 2.257 1.605 4.14 3.737 4.568-.392.106-.803.162-1.227.162-.3 0-.593-.028-.877-.082.593 1.85 2.313 3.198 4.352 3.234-1.595 1.25-3.604 1.995-5.786 1.995-.376 0-.747-.022-1.112-.065 2.062 1.323 4.51 2.093 7.14 2.093 8.57 0 13.255-7.098 13.255-13.254 0-.2-.005-.402-.014-.602.91-.658 1.7-1.477 2.323-2.41z'/%3E%3C/svg%3E");
}

.social-link[href*="instagram"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e4405f' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z'/%3E%3C/svg%3E");
}

.social-link[href*="linkedin"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230077b5' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.social-link[href*="youtube"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff0000' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E");
}

.social-link[href*="telegram"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230088cc' viewBox='0 0 24 24'%3E%3Cpath d='M23.91 3.79L20.3 20.84c-.25 1.21-.98 1.5-2 .94l-5.5-4.07-2.66 2.57c-.3.3-.55.56-1.1.56-.72 0-.6-.27-.84-.95L6.3 13.7l-5.45-1.7c-1.18-.35-1.19-1.16.26-1.75l21.26-8.2c.97-.43 1.9.24 1.53 1.73z'/%3E%3C/svg%3E");
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-section.about {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .footer-section.about,
    .footer-section.links,
    .footer-section.social,
    .footer-section.disclaimer {
        grid-column: 1;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .footer-section.social ul {
        width: 100%;
    }

    .footer-section.social ul li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .social-link {
        width: 100%;
        padding: 0.5rem 0;
    }
}

/* Calculator Single Page Styles */
.calculator-single {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form h2,
.calculator-form h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
    margin-top: 0.25rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    padding: 0.75rem;
    background-color: #ffffff;
    color: #333;
    border: none;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.form-group select:hover {
    border-color: #4CAF50;
}

/* Remove default select arrow in IE */
.form-group select::-ms-expand {
    display: none;
}

/* Custom dropdown arrow */
.form-group::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: calc(50% + 0.5rem);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .calculator-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .calculator-form {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

.result-section {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
    display: none;
}

.result-section.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.result-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.result-section-divider {
    margin: 2rem 0;
    border-top: 1px solid #dee2e6;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-item {
    padding: 1.25rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
}

.result-item.highlight {
    background: #f0f7ff;
    border: 1px solid var(--primary-color);
}

.result-item.highlight-success {
    background: #f0fff4;
    border: 1px solid #38a169;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.premium-note {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Graph Styles */
.installments-graph-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    height: 300px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.facility-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.facility-item:hover {
    transform: translateY(-2px);
}

.facility-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.facility-icon.loan {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066ff'%3E%3Cpath d='M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h2V7h-2v2z'/%3E%3C/svg%3E");
}

.facility-icon.tax {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066ff'%3E%3Cpath d='M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z'/%3E%3C/svg%3E");
}

.facility-icon.surrender {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066ff'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.facility-icon.rider {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066ff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.facility-item h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.facility-item p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* Policy Features */
.policy-features {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-features h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .result-section {
        padding: 1.5rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .installments-graph-container {
        height: 250px;
        padding: 1rem 0.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .result-section {
        padding: 1rem;
    }

    .result-item {
        padding: 1rem;
    }

    .facility-item {
        padding: 1rem;
    }

    .installments-graph-container {
        height: 200px;
        padding: 0.75rem 0.25rem;
        margin: 0.75rem 0;
    }
}

/* Details Section Styles */
.details-section {
    background-color: #ffffff;
    padding: 2rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.details-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.details-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.details-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.details-card ul {
    list-style: none;
    padding: 0;
}

.details-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.details-card li:last-child {
    border-bottom: none;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .calculator-single {
        padding: 1.5rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .calculator-single {
        padding: 1rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
    }

    .result-item {
        padding: 0.75rem;
    }
}

/* Policy Selection Styles */
.policy-select {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.policy-dropdown {
    font-size: 1.1rem !important;
    padding: 1rem !important;
    background-color: #f8f9fa;
    font-weight: 500;
}

.age-group {
    margin-bottom: 2rem;
}

.age-input-container {
    position: relative;
}

.age-input-container select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
}

.age-input-container select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.1);
}

/* Payment Schedule Styles */
.payment-details {
    margin-top: 2rem;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.payment-details h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.schedule-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.schedule-info p {
    margin: 0.5rem 0;
}

/* Schedule Grid Styles */
.schedule-grid {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 1rem;
    background-color: #ffffff;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
}

.schedule-item:last-child {
    border-bottom: none;
}

/* Graph Container Styles */
.graph-container {
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.graph-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 400px;
}

/* Graph Container Mobile Styles */
@media (max-width: 992px) {
    .graph-container {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .graph-container canvas {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .graph-container {
        padding: 1.25rem;
        min-height: 300px;
    }
    
    .graph-container canvas {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .graph-container {
        padding: 1rem;
        min-height: 250px;
        margin: 1.5rem auto;
    }
    
    .graph-container canvas {
        max-height: 250px;
    }
}

/* Form Validation Styles */
.form-group .validation-message {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:invalid + .validation-message,
.form-group select:invalid + .validation-message {
    display: block;
}

.form-group input:focus:invalid,
.form-group select:focus:invalid {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input:valid,
.form-group select:valid {
    border-color: #28a745;
}

.form-group input:focus:valid,
.form-group select:focus:valid {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Helper Text Styles */
.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.form-help.error {
    color: #dc3545;
}

.form-help.success {
    color: #28a745;
}

/* Loading State Styles */
.calculator-form.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.calculator-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Copyright Section */
.copyright {
    width: 100%;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.copyright p {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .copyright {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .copyright {
        padding: 1rem 0.5rem;
    }
    
    .copyright p {
        font-size: 0.8rem;
    }
}

/* Tool Details Section */
.tool-details {
    padding: 3rem 1rem;
    background-color: #f8f9fa;
}

.tool-details h2 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.tool-details p {
    color: #424242;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: #0d47a1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

/* Usage Guide */
.usage-guide {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    max-width: 80%;
    text-align: center;
}

.usage-guide li {
    position: relative;
    padding-left: 0;
    margin-bottom: 1rem;
    color: #424242;
    display: inline-block;
    text-align: left;
    width: auto;
    margin-left: 1.5rem;
}

.usage-guide li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: #0d47a1;
}

@media (max-width: 768px) {
    .usage-guide {
        max-width: 100%;
        text-align: left;
        margin: 2rem 0;
    }
    
    .usage-guide li {
        display: block;
        padding-left: 1.5rem;
        margin-left: 0;
    }
    
    .usage-guide li::before {
        left: 0;
    }
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.benefit-card h3 {
    color: #0d47a1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: #1a237e;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tool-details {
        padding: 2rem 1rem;
    }

    .tool-details h2 {
        font-size: 1.5rem;
    }

    .step, .benefit-card, .faq-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tool-details {
        padding: 1.5rem 0.75rem;
    }

    .tool-details h2 {
        font-size: 1.3rem;
    }

    .step h3, .benefit-card h3 {
        font-size: 1.1rem;
    }
}

.main-heading {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    width: 100%;
    display: block;
}

/* Heading Center Alignment for All Calculator Pages */
.section-heading,
.calculator-heading,
#calculator-heading,
#form-heading,
.calculator-single h2,
.result-section h3,
.calculator-title h2,
.details-section h2,
.calculator-form h2,
.calculator-section h2,
.tool-details h2,
#posb h2,
#other h2,
#pli h2,
#rpli h2 {
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure consistent heading alignment in all calculator sections */
.calculator-section h2.section-heading,
.tool-details h2.section-heading,
#posb h2.section-heading,
#other h2.section-heading {
    text-align: center;
    width: 100%;
    display: block;
}

/* Prevent unwanted popups */
.calculator-modal,
.calculator-popup,
.popup-overlay {
    display: none !important;
}

/* Clean transitions for calculator buttons */
.calculate-btn {
    transition: all 0.3s ease;
}

.footer-section {
    transition: transform 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .main-header {
        padding: 1.5rem 1rem;
    }
    
    .main-heading {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }
    
    .header-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1.2rem 0.75rem;
    }
    
    .main-heading {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    }
    
    .header-content p {
        font-size: 0.8rem;
    }
}

/* Policy Detailed Information Section */
.policy-detailed-info {
    background-color: #f7fbff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid #e0e9f5;
    box-shadow: 0 2px 10px rgba(0, 30, 80, 0.05);
}

.policy-detailed-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 102, 255, 0.2);
}

.policy-info-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.2rem;
}

.info-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    background-color: rgba(0, 102, 255, 0.03);
    padding: 1rem;
    border-radius: 6px;
}

.info-highlight-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.highlight-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0053cc;
    margin-bottom: 0.3rem;
}

.highlight-value {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.policy-info-text h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 1.5rem 0 0.8rem;
}

.detailed-benefits {
    list-style-type: none;
    padding-left: 0.5rem;
}

.detailed-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.detailed-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .info-highlights {
        grid-template-columns: 1fr;
    }
    
    .policy-detailed-info {
        padding: 1rem;
    }
    
    .policy-info-text p {
        font-size: 0.9rem;
    }
    
    .highlight-value {
        font-size: 0.95rem;
    }
} 