:root {
    --brand: #7c3aed;
    /* Violet */
    --brand-light: #8b5cf6;
    --bg: #f5f3ff;
    --text: #4c1d95;
    --text-body: #5b21b6;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    display: flex;
    justify-content: center;
    padding: 30px 15px;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 500px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.tag {
    background: #ddd6fe;
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.8rem;
    color: var(--brand);
    margin-bottom: 8px;
}

header p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.calc-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.15);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text);
}

input[type=range] {
    width: 100%;
    accent-color: var(--brand);
    height: 6px;
}

.display-val {
    text-align: right;
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
    margin-top: 5px;
}

.salary-input {
    display: flex;
    align-items: center;
    border: 2px solid #ede9fe;
    border-radius: 10px;
    padding: 0 15px;
    background: #fafafa;
}

.salary-input:focus-within {
    border-color: var(--brand);
    background: white;
}

.prefix {
    font-weight: 700;
    color: #a78bfa;
    margin-right: 5px;
}

.salary-input input {
    width: 100%;
    border: none;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    background: transparent;
}

.salary-input input:focus {
    outline: none;
}

.pill-select {
    display: flex;
    gap: 8px;
}

.pill {
    flex: 1;
    border: 1px solid #ddd6fe;
    background: white;
    color: var(--text-body);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.pill.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.result-area {
    background: #fdf2f8;
    /* pinkish highlight for cheapness? Or brand? let's stick to brand light */
    background: #f5f3ff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.cost-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8b5cf6;
    margin-bottom: 5px;
}

.cost-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.per-head-row {
    font-size: 0.9rem;
    margin-top: 10px;
    color: #6d28d9;
}

.cta-btn {
    width: 100%;
    padding: 16px;
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    transition: 0.2s;
}

.cta-btn:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}

.tax-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 600;
}

.tax-note .check {
    background: #dcfce7;
    padding: 2px 4px;
    border-radius: 4px;
}

/* FAQ */
.faq-list {
    margin-top: 20px;
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h5 {
    font-size: 1rem;
    color: var(--brand);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Modal */
.hidden {
    display: none !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 29, 149, 0.9);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.modal-card h3 {
    color: var(--brand);
    margin-bottom: 10px;
}

.modal-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.modal-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
}

#submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}