/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header h1 i {
    margin-right: 15px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.calculator-container {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.left-ad, .right-ad {
    width: 200px;
}

/* Calculator Form Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.input-group label {
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input, 
.input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.custom-rate.hidden {
    display: none;
}

/* Button Styles */
.calculate-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #5d7de8, #9666d8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Results Container Styles */
.results-container {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6e8efb;
}

.results-container h3 {
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-item.highlight {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.breakdown-container {
    margin-top: 20px;
    background: #f0f4f8;
    padding: 15px;
    border-radius: 6px;
}

.breakdown-container h4 {
    margin-bottom: 10px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ad Space Styles */
.ad-space {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ad-space p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ad-placeholder {
    background: #e0e0e0;
    color: #999;
    padding: 30px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* SEO Content Styles */
.seo-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.seo-content h2 {
    color: #444;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-content h3 {
    color: #555;
    margin: 20px 0 15px;
}

.seo-content p, .seo-content ol, .seo-content ul {
    margin-bottom: 15px;
    color: #666;
}

.seo-content ol, .seo-content ul {
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* Footer Styles */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 0;
    border-radius: 8px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 30px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ecf0f1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ecf0f1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ecf0f1;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-bottom a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #ecf0f1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .left-ad, .right-ad {
        width: 100%;
    }
    
    .ad-placeholder {
        height: 100px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

.hidden {
    display: none;
}