/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #1a0a3b;
    color: #fff;
    text-align: center;
}

/* Header and Navigation */
header {
    background-color: #1a0a3b;
    padding: 20px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.nav-buttons .btn-primary, .nav-buttons .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #e85a4f;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

/* Hero Section */
.hero {
    padding: 100px 20px;
    background: linear-gradient(to bottom, #1a0a3b, #3c1053);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Calculator Section */
.calculator-section {
    background-color: #f4f4f9;
    padding: 50px 20px;
    color: #333;
}

.calculator-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.input-section, .output-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-section h2, .output-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding: 0;
    line-height: 1.2;
    width: 100%;
}

h2 {
    font-size: 24px;
    color: #1a0a3b;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

select, input[type="range"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider-wrapper input[type="range"] {
    flex: 1;
}

.value-display {
    font-weight: bold;
}
.calculation-section {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.calculation-tables {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.calculation-table {
    flex: 1;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.calculation-table h3 {
    margin: 0 0 15px 0;
    color: #1a0a3b;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #1a0a3b;
    padding-bottom: 8px;
}

.calculation-table table {
    width: 100%;
    border-collapse: collapse;
}

.calculation-table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.calculation-table td:first-child {
    font-weight: 500;
    color: #333;
    padding-right: 10px;
}

.calculation-table td:last-child {
    text-align: right;
    font-weight: bold;
    color: #1a0a3b;
}

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

.calculation-table .total-row {
    border-top: 2px solid #1a0a3b;
    background-color: #f8f9fa;
}

.calculation-table .total-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
}

.output-section {
    margin-top: 0;
    padding: 0;
    background-color: #fff;
    border-radius: 8px;
}

.output-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.tier-message {
    padding-top: 20px;
    color: #6c757d;
    font-style: italic;
}

.margin-calculation-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 2px solid #1a0a3b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.margin-calculation-section h4 {
    margin: 0 0 10px 0;
    color: #1a0a3b;
    font-size: 18px;
}

.clarification-section {
    margin: 30px auto 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 1200px;
}

.clarification-section h3 {
    margin: 0 0 15px 0;
    color: #1a0a3b;
    font-size: 18px;
}

.clarification-content p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Glossary Styles */
.glossary-content {
    margin-top: 15px;
}

.glossary-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #1a0a3b;
}

.glossary-item:last-child {
    margin-bottom: 0;
}

.glossary-item .term {
    flex: 0 0 25%;
    font-weight: bold;
    color: #1a0a3b;
    padding-right: 20px;
    font-size: 16px;
}

.glossary-item .definition {
    flex: 1;
    line-height: 1.6;
    color: #333;
}

/* Settings Button */
.settings-button {
    background-color: #1a0a3b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

.settings-button:hover {
    background-color: #2d1a4f;
}


.calculation-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.calculation-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.calculation-steps {
    margin: 15px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
    border-left: 4px solid #1a0a3b;
}

.calculation-steps h5 {
    margin: 0 0 10px 0;
    color: #1a0a3b;
    font-size: 14px;
}

.calculation-steps p {
    margin: 5px 0;
    font-family: monospace;
    font-size: 14px;
    color: #333;
}

.margin-result {
    font-weight: bold;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.margin-result span {
    color: #e85a4f;
    font-size: 18px;
}

.calculation-result {
    font-size: 16px;
    color: #495057;
}

.calculation-result span {
    font-weight: bold;
    color: #e85a4f;
    font-size: 18px;
}

.calculation-result #price-per-credit-label {
    font-weight: normal;
    color: #495057;
    font-size: 16px;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.info-icon {
    color: #6c757d;
    cursor: help;
    font-size: 14px;
    font-weight: normal;
}

.tooltip {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.output-card {
    background-color: #eef2f7;
    padding: 20px;
    border-radius: 10px;
}

.total-price-line {
    font-size: 20px;
    font-weight: bold;
    color: #1a0a3b;
}

.cta-button {
    width: 100%;
    padding: 15px;
    background-color: #e85a4f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

/* Feature Comparison Section */
.feature-comparison {
    background-color: #f4f4f9;
    padding: 50px 20px;
    color: #333;
}

.comparison-container {
    max-width: 1200px;
    margin: auto;
}

.feature-comparison h2 {
    text-align: center;
    color: #1a0a3b;
    margin-bottom: 40px;
    font-size: 32px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.comparison-table th {
    background-color: #1a0a3b;
    color: #fff;
    padding: 30px 15px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.comparison-table th:first-child {
    text-align: left;
    background-color: #2d1b4e;
}

.popular-plan {
    position: relative;
    padding-top: 30px;
}

.popular-badge {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e85a4f;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
    background-color: #f8f9fa;
    color: #1a0a3b;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.comparison-table tr:hover td:first-child {
    background-color: #e9ecef;
}

/* Style for checkmarks and crosses */
.comparison-table td:contains("✓") {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.comparison-table td:contains("✗") {
    color: #dc3545;
    font-weight: bold;
    font-size: 18px;
}

/* Responsive table */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }

    .feature-comparison h2 {
        font-size: 24px;
    }
}

/* Testimonial Section */
.testimonial {
    background-color: #3c1053;
    padding: 50px 20px;
}

blockquote {
    font-size: 22px;
    font-style: italic;
    max-width: 800px;
    margin: auto;
}

cite {
    display: block;
    margin-top: 20px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #1a0a3b;
    padding: 20px;
    font-size: 14px;
}

/* Login Form Styles */
.login-form-container {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.login-form input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.login-form input[type="email"]:focus {
    outline: none;
    border-color: #1a0a3b;
    box-shadow: 0 0 5px rgba(26, 10, 59, 0.3);
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.message.sending {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Simple responsive solution */
    }
    .calculator-container {
        flex-direction: column;
    }
    
    .login-form-container {
        padding: 20px;
    }
}