/* Widget Container */
.salary-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Calculator Form */
.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.input-wrapper {
    margin-bottom: 1.5rem;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.input-header label {
    font-weight: 600;
    color: var(--text-main);
}

/* Inputs */
.input-field,
select.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #f8fafc;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

/* Currency Select */
.currency-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    background-color: #f1f5f9;
    cursor: pointer;
    color: #334151;
}

/* Action Button */
.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin-top: 10px;
}

.calc-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- RESULT SECTION --- */
.result-container {
    margin-top: 2rem;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

/* Hero Result */
.hero-card {
    background: #10b981;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-label {
    opacity: 0.9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero-value {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Grid for Details */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-card h4 {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Chart Section */
.breakdown-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    overflow: hidden;
}

.breakdown-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Donut Chart */
.chart-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.donut-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Gradient: Blue(Work) -> Gray(Off) */
    background: conic-gradient(var(--primary) 0% var(--p), #e2e8f0 var(--p) 100%);
    position: relative;
    transition: --p 1s ease;
}

@property --p {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}

.donut-hole {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    font-size: 0.9rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #374151;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.blue {
    background: var(--primary);
}

.dot.gray {
    background: #e2e8f0;
}

/* SEO Content */
.info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.8rem;
    color: var(--text-main);
}

.info-section p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.info-section ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.info-section li {
    margin-bottom: 8px;
}

/* FAQ */
.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.faq-answer {
    color: var(--text-muted);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}