/* ===== 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;
}

/* ================= Tooltip ================= */

.hr-tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #999;
}

.hr-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #060c41;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    width: 260px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.hr-tooltip:hover::after,
.hr-tooltip:focus::after {
    opacity: 1;
}

.hr-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   CLIENT EXPECTED LAYOUT – FINAL FIX
   ========================================= */

/* Main two-column layout */
.hr-results-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* Left side */
.hr-results-left {
  min-width: 0;
}

/* Right sidebar */
.hr-results-right {
  position: sticky;
  top: 120px;
  background: #fff;
  padding-left: 30px;
  border-left: 1px solid #e6e6e6;
}

/* Product card */
.hr-product {
  border: 1px solid #ddd;
  padding: 16px;
  margin-bottom: 22px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.hr-product:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Product image box */
.hr-product a {
  display: block;
  width: 100%;
  height: 220px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fafafa;
  border-radius: 4px;
}

/* Force image size */
.hr-product img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Product title */
.hr-product h4 {
  font-size: 15px;
  line-height: 1.35;
  margin: 6px 0 4px;
  font-weight: 600;
  color: #222;
}

/* Product description (controlled height) */
.hr-product-desc {
  font-size: 13px;
  color: #666;
  margin: 6px 0 10px;
  line-height: 1.45;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product price */
.hr-product-price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

/* Mobile fallback */
@media (max-width: 1024px) {
  .hr-results-layout {
    grid-template-columns: 1fr;
  }

  .hr-results-right {
    position: relative;
    top: auto;
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }
}


