/* CalWhat - ParentalLeaveAllowanceCalculator Specific Styles */
/* Mobile-first: base = mobile, scale up with min-width */

/* ========== Input ========== */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-label i {
    margin-right: 8px;
    color: #667eea;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.input-wrapper select.form-input {
    appearance: auto;
    -webkit-appearance: menulist;
    cursor: pointer;
}

.input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-weight: 500;
    pointer-events: none;
    font-size: 0.9rem;
}

/* ========== Tooltip ========== */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 8px;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d3748;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: normal;
    min-width: 180px;
    max-width: 260px;
    z-index: 1000;
    transition: opacity 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ========== Cap Notice ========== */
.cap-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.4;
}

/* ========== Result ========== */
.result-card {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.result-card.secondary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.result-title {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-title i {
    margin-right: 8px;
    color: #667eea;
}

.result-card.secondary .result-title i {
    color: #d97706;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1.2;
}

.result-card.secondary .result-value {
    color: #d97706;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item-label {
    font-weight: 600;
    color: #4a5568;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.result-item-label i {
    margin-right: 8px;
    color: #667eea;
    font-size: 0.85rem;
}

.result-item-value {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
}

.result-item-value.subsidy {
    color: #d97706;
}

/* ========== Partner Result ========== */
.partner-result {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px dashed #e2e8f0;
}

/* ========== Chart ========== */
.chart-container {
    position: relative;
    height: 280px;
    margin-top: 16px;
}

.breakdown-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    text-align: center;
}

.breakdown-note strong {
    color: #667eea;
}

/* ========== SEO Content ========== */
.seo-content {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    margin-top: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seo-content h2 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
}

.seo-content h3 {
    color: #4a5568;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.seo-content h4 {
    color: #4a5568;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.seo-content p,
.seo-content li {
    color: #718096;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

.source-note {
    margin-top: 24px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

/* ========== 576px+ ========== */
@media (min-width: 576px) {
    .result-value {
        font-size: 2.3rem;
    }

    .chart-container {
        height: 300px;
    }

    .seo-content {
        padding: 30px;
    }

    .seo-content h2 {
        font-size: 1.6rem;
    }
}

/* ========== 768px+ ========== */
@media (min-width: 768px) {
    .input-group {
        margin-bottom: 25px;
    }

    .input-label {
        font-size: 1rem;
    }

    .result-card {
        padding: 25px;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .result-item {
        padding: 14px 0;
    }

    .result-item-label {
        font-size: 1rem;
    }

    .result-item-value {
        font-size: 1.2rem;
    }

    .chart-container {
        height: 330px;
    }

    .seo-content {
        padding: 40px;
        margin-top: 50px;
    }

    .seo-content h2 {
        font-size: 1.8rem;
    }

    .seo-content h3 {
        font-size: 1.4rem;
    }
}

/* ========== 992px+ ========== */
@media (min-width: 992px) {
    .result-value {
        font-size: 3rem;
    }

    .chart-container {
        height: 350px;
        margin-top: 24px;
    }

    .seo-content {
        margin-top: 60px;
    }
}
