/* 
 * Main CSS for the calculator website 
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo a {
    color: #333;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Main content */
main {
    padding: 30px 0;
}

.page-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

/* Calculator container */
.calculator-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.calculator-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

button:hover {
    background-color: #0055aa;
}

/* Results section */
.results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* Coming soon cards and notify forms */
.coming-soon-card {
    border: 2px dashed #ccc;
    background-color: #fcfcfc;
}

.launching-soon {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 10px;
}

.notify-form {
    margin-top: 4px;
}

.notify-input-group {
    display: flex;
    gap: 8px;
}

.notify-input-group input[type="email"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.notify-input-group button {
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* FAQ sections */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.faq-section h2 {
    margin-bottom: 24px;
    color: #333;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 8px;
    color: #0066cc;
    font-size: 1.05rem;
}

.faq-item p {
    color: #444;
    line-height: 1.7;
}

/* Contact page */
.contact-intro {
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-form-section {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-form-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.contact-form select {
    appearance: auto;
}

.contact-form button {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.contact-success p {
    color: #2e7d32;
    font-weight: 500;
    font-size: 1rem;
    padding: 20px 0;
    text-align: center;
}

.contact-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.contact-info-card a {
    word-break: break-all;
}

/* Author profile */
.author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin: 24px 0;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2px;
}

.author-title {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.author-bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.post-meta .post-author {
    font-weight: 500;
}

/* Inline blog CTAs */
.inline-cta {
    margin: 28px 0;
    padding: 18px 24px;
    background-color: #f0f7ff;
    border-left: 4px solid #0066cc;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inline-cta p {
    margin: 0;
    font-size: 0.95rem;
    color: #1a3a5c;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.inline-cta .btn {
    white-space: nowrap;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    flex-shrink: 0;
}

.inline-cta .btn:hover {
    background-color: #0055aa;
    text-decoration: none;
}

/* Ad containers */
.ad-container {
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-disclaimer {
    border-top: 1px solid #444;
    padding-top: 16px;
    margin-top: 20px;
    text-align: center;
}

.footer-disclaimer p {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 16px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0 0 15px 0;
    }

    .notify-input-group {
        flex-direction: column;
    }

    .notify-input-group button {
        width: 100%;
    }

    .contact-grid {
        flex-direction: column;
    }
}
