/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    padding: 60px 0;
    background: white;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calculator-form {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.advanced-toggle {
    margin: 20px 0;
}

.advanced-toggle button {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.advanced-toggle button:hover {
    color: #5a67d8;
}

.advanced-options {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.advanced-options.show {
    display: block;
}

/* Results Panel */
.results-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.results-panel h2 {
    color: #1a202c;
    margin-bottom: 25px;
    font-size: 1.75rem;
}

.rate-display {
    margin-bottom: 30px;
}

.rate-display h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.rate-range {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.rate-separator {
    font-size: 2rem;
    color: #718096;
}

.rate-period {
    color: #718096;
    font-size: 1.1rem;
}

.monthly-potential {
    margin-bottom: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.monthly-potential h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.monthly-range {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.monthly-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #38a169;
}

.monthly-separator {
    font-size: 1.5rem;
    color: #718096;
}

.monthly-period {
    color: #718096;
    font-size: 1rem;
}

.rate-factors {
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.rate-factors h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.factor-label {
    color: #4a5568;
}

.factor-impact {
    font-weight: 600;
    color: #38a169;
}

.factor-impact.negative {
    color: #e53e3e;
}

/* How Much Section */
.how-much-section {
    padding: 60px 0;
    background: #f7fafc;
}

.how-much-section h2 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 2rem;
}

.how-much-section p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.considerations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.consideration-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.consideration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.consideration-card h4 {
    color: #1a202c;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.consideration-card h4 i {
    color: #667eea;
    margin-right: 8px;
}

.consideration-card p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-box p {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Quick Navigation */
.quick-nav-section {
    padding: 60px 0;
    background: white;
}

.quick-nav-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a202c;
    font-size: 2rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.nav-card {
    display: block;
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-card h3 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.nav-card p {
    color: #4a5568;
    margin: 0;
}

/* FAQs Section */
.faqs-section {
    padding: 60px 0;
    background: #f7fafc;
}

.faqs-section h2 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 2rem;
}

.faqs-section > .container > p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

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

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question i:first-child {
    color: #667eea;
    margin-right: 10px;
}

.faq-question i:last-child {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

/* Examples Section */
.examples-section {
    padding: 60px 0;
    background: white;
}

.examples-section h2 {
    color: #1a202c;
    margin-bottom: 40px;
    font-size: 2rem;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.example-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.example-card h3 {
    color: #1a202c;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.example-card h3 i {
    color: #667eea;
    margin-right: 8px;
}

.example-card p {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.example-card ul {
    margin: 15px 0;
    padding-left: 20px;
}

.example-card li {
    color: #4a5568;
    margin-bottom: 5px;
}

.calculation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.calculation p {
    margin-bottom: 8px;
}

.calculation strong {
    color: #667eea;
}

.testimonials {
    margin-top: 50px;
}

.testimonials h3 {
    color: #1a202c;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.testimonial {
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.testimonial p {
    color: #4a5568;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author {
    color: #1a202c;
}

.testimonial-author span {
    color: #718096;
    font-size: 0.9rem;
}

.testimonial-cta {
    text-align: center;
    color: #667eea;
    font-weight: 600;
}

/* Insights Section */
.insights-section {
    padding: 60px 0;
    background: #f7fafc;
}

.insights-section h2 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 2rem;
}

.insights-section > .container > p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.rate-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

.rate-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-collapse: collapse;
    overflow: hidden;
}

.rate-table th,
.rate-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.rate-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

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

.rate-table tr:nth-child(even) {
    background: #f8fafc;
}

.regional-insights {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

.regional-insights h3 {
    color: #1a202c;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.regional-insights ul {
    list-style: none;
    padding: 0;
}

.regional-insights li {
    color: #4a5568;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.regional-insights li:before {
    content: "•";
    color: #667eea;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tips-section h3 {
    color: #1a202c;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tip-card h4 {
    color: #1a202c;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tip-card h4 i {
    color: #38a169;
    margin-right: 8px;
}

.tip-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* New Components Styling */

/* Search Icon */
.search-icon {
    color: #667eea;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

/* Workload Progress Bar */
.workload-container {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 50%;
}

/* Form Help Text */
.form-help {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Skills Container */
.skills-container {
    max-width: 100%;
}

.skills-search {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.skills-search:focus {
    outline: none;
    border-color: #667eea;
}

.skills-categories {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.skill-category {
    border-bottom: 1px solid #f1f5f9;
}

.skill-category:last-child {
    border-bottom: none;
}

.skill-category-header {
    background: #f8fafc;
    padding: 12px 15px;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.skill-options {
    padding: 10px 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.skill-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.skill-option:hover {
    background: #f7fafc;
}

.skill-option.selected {
    background: #edf2f7;
    border: 1px solid #667eea;
}

.skill-checkbox {
    margin-right: 8px;
    accent-color: #667eea;
}

.skill-name {
    flex: 1;
    color: #2d3748;
}

.skill-premium {
    color: #38a169;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
}

.dropdown-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.3s ease;
}

.dropdown-search:focus {
    outline: none;
    border-color: #667eea;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background: #f8fafc;
}

.dropdown-option:last-child {
    border-bottom: none;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    background: #38a169;
}

.notification-error {
    background: #e53e3e;
}

.notification-info {
    background: #3182ce;
}

/* Enhanced Form Groups */
.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Improved Select Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Skills Category Toggle */
.skill-category-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-category-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.skill-category.collapsed .skill-category-header::after {
    transform: rotate(-90deg);
}

.skill-category.collapsed .skill-options {
    display: none;
}

/* Enhanced Advanced Options */
.advanced-options {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin-left: 10px;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .rate-range,
    .monthly-range {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rate-amount {
        font-size: 2rem;
    }
    
    .monthly-amount {
        font-size: 1.5rem;
    }
    
    .considerations-grid,
    .nav-grid,
    .examples-grid,
    .testimonials-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section,
    .calculator-section,
    .how-much-section,
    .quick-nav-section,
    .faqs-section,
    .examples-section,
    .insights-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .rate-amount {
        font-size: 1.75rem;
    }
    
    .monthly-amount {
        font-size: 1.25rem;
    }
    
    .calculator-form,
    .results-panel {
        padding: 20px;
    }
    
    .consideration-card,
    .example-card,
    .testimonial,
    .tip-card {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .skill-options {
        grid-template-columns: 1fr;
    }
    
    .skills-categories {
        max-height: 250px;
    }
    
    .advanced-options {
        padding: 15px;
        margin-left: 0;
        border-left: none;
        border-top: 4px solid #667eea;
    }
}
