:root {
    --primary-color: #0066FF;
    --secondary-bg: #f0f5ff;
    --card-bg: #e6f0ff;
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.upgrade-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hero {
    background-color: var(--secondary-bg);
    padding: 3rem 0;
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.info-section {
    flex: 1;
}

.info-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #666;
}

.learn-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.calculator-card {
    flex: 1;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

.calculator-wrapper {
    width: 100%;
}

.calculator-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.calculator-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.calculator-phase {
    display: none;
}

.calculator-phase.active {
    display: block;
}

.calculator-phase h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.calculator-phase p {
    color: #666;
    margin-bottom: 1.5rem;
}

.radio-group {
    border: none;
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.radio-option input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
}

.radio-option label {
    font-size: 1.1rem;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.select-group {
    margin-bottom: 1.5rem;
}

.select-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.select-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: #fff;
}

.select-group select[multiple] {
    height: 120px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.buttons-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.calc-btn, .primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calc-btn:hover, .primary-btn:hover {
    background-color: #0055e6;
}

.back-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #ddd;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #f5f5f5;
}

.button-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.button-link:hover {
    text-decoration: underline;
}

.results-summary {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.total-profit {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.costs-breakdown {
    list-style: none;
    margin: 1rem 0;
}

.costs-breakdown li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.margin-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
}

.hidden {
    display: none;
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .info-section h2 {
        font-size: 2rem;
    }

    .calculator-card {
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .calculator-title, .calculator-subtitle {
        text-align: center;
    }

    .buttons-group {
        flex-direction: column;
    }

    .back-btn, .calc-btn, .primary-btn {
        width: 100%;
    }
}

/* Web Component Styles */
flippa-calculator {
    display: block;
    width: 100%;
} 