/* ===== GLOBAL WRAPPER ===== */
.hr-card {
    background: #ffffff;
    max-width: 960px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

/* TITLE */
.hr-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hr-card h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
}

.hr-card p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

/* SECTION HEADINGS */
.hr-card h3 {
    font-size: 18px;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    color: #222;
}

/* FORM GRID = 2 inputs per row */
.hr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 26px;
}

/* Field block */
.hr-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.hr-field label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* INPUTS */
.hr-field input,
.hr-field select {
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    transition: 0.2s ease;
}

.hr-field input:focus,
.hr-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* BUTTONS */
.hr-actions {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.hr-btn {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.hr-btn-secondary {
    flex: 1;
    background: #f1f3f5;
    color: #222;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hr-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide footer only on Calculator page */
body.page-id-7 footer {
    display: none !important;
}

/* ===== RESULTS HEADER ===== */
.hr-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.hr-results-header h2 {
    font-size: 22px;
    margin: 0;
}

.hr-results-sub {
    color: #666;
    font-size: 14px;
}

/* ===== KPI CARDS ===== */
.hr-summary-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.hr-kpi {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: inset 0 0 0 1px #e6edf5;
}

.hr-kpi span {
    font-size: 13px;
    color: #555;
    display: block;
}

.hr-kpi strong {
    font-size: 20px;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

.hr-kpi.green {
    background: #eafaf1;
    color: #0f7a3b;
}

/* ===== RESULT SECTIONS ===== */
.hr-results-sections h3 {
    margin-top: 35px;
    font-size: 18px;
}

/* ===== TABLE STYLE ===== */
.hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.hr-table th {
    background: #f1f5f9;
    padding: 14px;
    text-align: left;
    font-size: 14px;
}

.hr-table td {
    padding: 14px;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
}

/* Action buttons */
.hr-results-actions {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media(max-width: 900px) {
    .hr-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hr-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== RESULT ACTION BUTTONS (ADD THIS) ===== */

.hr-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Primary button */
.hr-action-btn.primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.hr-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

/* Secondary buttons */
.hr-action-btn.ghost {
    background: #f3f6fa;
    color: #222;
}

.hr-action-btn.ghost:hover {
    background: #e5ecf5;
    transform: translateY(-1px);
}

/* Responsive buttons */
@media(max-width: 768px) {
    .hr-results-actions {
        flex-direction: column;
    }

    .hr-action-btn {
        width: 100%;
    }
}

/* Hide page title only on Calculator page */
body.page-id-7 .wp-block-post-title {
    display: none !important;
}

.wp-block-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}