/**
 * Frontend Styles
 */

/* Benefits Summary */
.benefits-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.benefits-summary h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

/* Matched Rules */
.matched-rules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.benefit-rule {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-rule:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.benefit-rule h3 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #2271b1;
}

.benefit-rule p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Benefit Detail */
.benefit-detail {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.benefit-detail h2 {
    margin-top: 0;
    color: #2271b1;
}

.benefit-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    background: #f7f8f9;
    border-radius: 4px;
}

.info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.info-item .value {
    font-size: 18px;
    color: #2271b1;
    font-weight: 600;
}

/* Loading State */
.benefits-loading {
    text-align: center;
    padding: 40px;
}

.benefits-loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.benefits-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Empty State */
.benefits-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.benefits-empty svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.penske-candidate-wrap h3 {
    color : #E47D0E;
    font-size : 24px;
    font-weight: 500;
}

/* admin form */
.penske-candidate-wrap {
    background-color : #F8F9FA;
}

.penske-candidate-wrap .container {
    max-width:1185px;
}

.penske-admin-form-wrap {
    background-color: #fff;
    padding: 30px 90px;
    border: 1px solid #6C757D;
    border-radius: 6px;
    margin-top: 20px;
}
.penske-admin-form-wrap h1,
.penske-admin-form-wrap p {
    text-align: center;
}

.penske-admin-form-wrap h1 {
    color : #182B66;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.penske-admin-form-wrap p.admin-note {
    width:70%;
    display:block;
    text-align:center;
    margin:0 auto;
    font-size:18px;
    font-weight: 400;
    color : #2E2D2C;
}

.penske-admin-fields {
    border : 0;
    margin-top:50px;
}

.penske-admin-fields{
    display: flex;
    flex-wrap: wrap;
    column-gap: 64px;
    row-gap : 18px;
}
.penske-admin-field {
    width: calc(50% - 50px);
    position: relative;
}
.penske-admin-field label {
    font-size: 18px;
    font-weight: 400;
    color: #2E2D2C;
    margin: 5px 0 10px 0;
    display: block;
}
.penske-admin-field input, .penske-admin-field input:active, .penske-admin-field input:focus{
    border:1px solid #6C757D;
}

.penske-candidate-wrap .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    width: 220px;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* little arrow */
.penske-candidate-wrap .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* show on hover */
.penske-candidate-wrap .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
/* select + icon inline */
.penske-admin-select {
    width: 100%;
    padding-right: 30px; /* room for icon */
}

/* tooltip container */
.penske-candidate-wrap .tooltip {
    position: absolute;
    right: -34px;
    top: 44px;
    cursor: pointer;
}
/* icon style */
.penske-candidate-wrap .tooltip i {
    color: #f39c12;
    font-size: 10px;
    background-color: #182B66;
    padding:7px;
    border-radius:50%;
}
.penske-admin-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;            /* space between buttons */
    margin-top: 24px;    /* space above buttons */
}

/* optional button styling */
.penske-admin-actions .btn {
    padding: 15px 90px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    font-weight: 400;
}

.penske-admin-actions .btn-submit {
    background-color: #E47D0E;
    color: #fff;
    border-radius : 6px;
}

.penske-admin-actions .btn-cancel {
    background-color: #ffffff;
    border:1px solid #E47D0E;
    color: #E47D0E;
    border-radius : 6px;
}

.penske-candidate-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.penske-candidate-wrap .select2-container--default .select2-selection--single {
    position: relative;
    height: 40px !important;
    border:1px solid #6C757D;
}
/* THIS is where padding must go */
.select2-container--default .select2-selection--single 
.select2-selection__rendered {
    padding-left: 12px !important;
    padding-right: 40px !important; /* space for arrow */
    line-height: 44px !important;
}

.penske-candidate-wrap .select2-container--default .select2-selection--single::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 10px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='14' viewBox='0 0 24 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 14C11.5698 14 11.1398 13.8319 10.8118 13.4965L0.49234 2.93607C-0.164113 2.2643 -0.164113 1.17513 0.49234 0.503627C1.14853 -0.167876 2.21264 -0.167876 2.86915 0.503627L12 9.84809L21.1308 0.503954C21.7873 -0.167549 22.8513 -0.167549 23.5074 0.503954C24.1642 1.17546 24.1642 2.26462 23.5074 2.9364L13.1881 13.4968C12.86 13.8323 12.4299 14 12 14Z' fill='%23E47D0E'/%3E%3C/svg%3E");
}


.penske-candidate-wrap .select2-container--open .select2-selection--single::after {
    transform: translateY(-50%) rotate(180deg);
}




/* Responsive */
@media screen and (max-width: 768px) {
    .matched-rules {
        grid-template-columns: 1fr;
    }

    .benefit-info {
        grid-template-columns: 1fr;
    }

    .penske-admin-form-wrap p.admin-note {
        width: 100%;
    }

    .penske-admin-field {
        width: 100%;
    }
}

/* Card Layout */
.benefit-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-card-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 20px;
}

.benefit-card-header h3 {
    margin: 0;
    font-size: 22px;
}

.benefit-card-body {
    padding: 25px;
}

.benefit-card-footer {
    padding: 15px 25px;
    background: #f7f8f9;
    border-top: 1px solid #e5e5e5;
}

/*.benefits-wrap {
    background-color : #F8F9FA;
} */

.benefits-wrap.other-benefits {
    background-color : #ffffff;
    clear:both;
}

.benefits-wrap.other-benefits .benefits-section {
    clear: both;
    margin-bottom: 0;
    min-height: 90px;
    border-bottom: solid 2px #D3D3D3;
    padding: 20px 0;
} 

.benefits-wrap.other-benefits .benefits-section:last-child {
    border: none;
} 

body .elementor hr {
    height: 2px;
    background-color: #D3D3D3;
    margin: 25px 0 15px;
    clear: both;
}
.benefits-wrap.other-benefits h3 {
    color: #E47D0E;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}


/* Admin utility page modal css */
.penske-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.penske-modal-content {
    position: relative;
    background: #fff;
    padding: 35px 30px 30px;
    width: 600px;
    max-width: 95%;
    border-radius: 12px;
    margin: 8% auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.penske-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    font-weight: 600;
    color: #000;
    /* simple black */
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
    box-shadow: none;
}

.penske-close:hover {
    opacity: 0.6;
    background-color: transparent;
    color: #000;
}

.url-display {
    word-break: break-word;
    font-size: 14px;
    color: #000;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-copy {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-redirect {
    background: #1e6bc8;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-copy:hover {
    background: #000;
}

.btn-redirect:hover {
    background: #1559a8;
}

.back-to-top {
    position: fixed;
    right: -10px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    /* 👈 makes icon top, text bottom */
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: #182B66;
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: transparent;
    color: #182B66;
}

.back-icon {
    display: flex;
    border-radius: 25px;
    background-color: #FECB00;
}

.back-text {
    line-height: 1;
    color: #182B66;
    font-size: 18px;
    font-weight: 400;
    margin-top: 4px;
}

.page-template-benefits-summary-not-available header.entry-header {
    display: none;
}

.hfe-nav-menu li a {
    font-size: 18px;
    font-weight: 400 !important;
}

.wrapper-no-benefit {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #F8F9FA;
}

/* Card */
.wrapper-no-benefit .card {
    background-color: #ffffff;
    max-width: 800px;
    width: 100%;
    border: 1px solid #6C757D;
    border-radius: 12px;
    padding: 30px 85px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Heading */
.wrapper-no-benefit .card h2 {
    color: #182B66;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Paragraph */
.wrapper-no-benefit .card p {
    color: #2E2D2C;
    font-size: 18px;
    line-height: normal;
    font-weight: 400;
    width: 90%;
    display: block;
    text-align: center;
    margin: 0 auto;
}
p.pto-text-rule-item {
    color: #555;
}

/* Button group */
.wrapper-no-benefit .button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 52px;
}

/* Base button */
.wrapper-no-benefit .btn {
    padding: 10px 99px;
    font-size: 18px;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

/* Primary button */
.wrapper-no-benefit .btn-primary {
    background-color: #E47D0E;
    border: 1px solid #E47D0E;
    color: #ffffff;
}

.wrapper-no-benefit .btn-primary:hover {
    background-color: #e56f00;
}

/* Outline button */
.wrapper-no-benefit .btn-outline {
    background-color: #ffffff;
    border: 1px solid #E47D0E;
    color: #E47D0E;
}

.wrapper-no-benefit .btn-outline:hover {
    background-color: #fff3e6;
}

.penske-admin-actions .btn-cancel:hover{
    background-color: #E47D0E;
    color: #ffffff;    
    transition-duration: .5s;
}

@media print {
    @page {
        size: auto;
        margin: 0;
    }

    body {
        margin: 15mm;
    }

    .print-pdf,
    .expand-all {
        display: none !important;
        /* hide buttons in PDF */
    }
}


.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #243a73;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
}

/* Card Container */
/* .card {
    background-color: #efefef;
    border: 1px solid #9aa0a6;
    border-radius: 8px;
    padding: 25px 30px;
    max-width: 1000px;
}

/* Card Heading */
.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}


thead th {
    background-color: #e3d6c8;
    text-align: left;
    padding: 14px;
    font-weight: 600;
    border: 2px solid #ffffff;
}


tbody td {
    background-color: #e8e8e8;
    padding: 14px;
    border: 2px solid #f5f5f5;
}


tbody td:nth-child(2),
tbody td:nth-child(3),
thead th:nth-child(2),
thead th:nth-child(3) {
    text-align: right !important;
}


.pto-list {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.pto-list li {
    margin-bottom: 14px;
    font-size: 16px;
}

.pto-list a {
    color: #f28c28;
    /* orange link color */
    text-decoration: underline;
    font-weight: 500;
}

.external-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    background-color: #1f3a68;
    /* navy square */
    color: #f7c948;
    /* yellow arrow */
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
} 


/* --- PTO CSS --- */


/* MAIN CONTAINER */
.pto-container {
    max-width: 1184px;
    font-family: Arial, sans-serif;
}


/* TITLE */
.pto-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f3a6d;
    margin-bottom: 5px;
}

.pto-note {
    color: #555;
    margin-bottom: 20px;
}


/* CARD */
.pto-card {
    border: 1px solid #d6dbe3;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    margin-bottom: 50px;
}

.pto-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}


/* TABLE */
.pto-table {
    width: 100%;
    border-collapse: collapse;
}

.pto-table thead th {
    background: #FCF1E6;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.pto-table td {
    padding: 12px;
}

.pto-table th, .pto-table td {
    border: solid 5px #fff;
  }

/* alternating row color */
.pto-table tbody tr:nth-child(even) td {
  background-color: #F8F9FA;
}

 .pto-table tbody tr:nth-child(odd) td {
  background-color: #F2F2F2;
}

.col-years {
    width: 55%;
}


/* POLICY SECTION */
.pto-policy-container {
    margin-top: 30px;
}

.pto-policy-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f3a6d;
    margin-bottom: 15px;
}

.pto-policy-list {
    list-style: disc;
    padding-left: 20px;
}

.pto-policy-list li {
    margin-bottom: 10px;
}


/* POLICY LINK */
.pto-policy-link {
    color: #f58220;
    text-decoration: none;
    font-weight: 500;
}

.pto-policy-link:hover {
    color: #f58220;
    text-decoration: underline;
}


/* EXTERNAL ICON */
.pto-icon {
    margin-left: 8px;
    font-weight: bold;
    color: #1f3a6d;
}