:root {
    --primary-color: #004b85;
}

/* Fix for z-index issue with wizard steps appearing above breadcrumb */
input[type="date"] {
    cursor: pointer;
  }
  
  /* Fix z-index issue by lowering the wizard steps z-index */
  .wizard > .steps {
    z-index: 10 !important; /* Lower z-index to stay below breadcrumb */
  }
  
  /* Also ensure our form container doesn't interfere */
  #membershipForm {
    z-index: 5 !important;
  }



.btn-primary {
    color: #fff;
    background-color: #004b85 !important;
    border-color: #004b85 !important;
}

.rounded-btn {
    border-radius: 50px !important;
}
.hidden {
    display: none !important;
}
.container.ljpcalculator {
margin-top: 50px;
margin-bottom:40px
}



.ljpcalculator .container {
    background: white;
     padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar{
	min-height:70px !important;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-control {
    height: 45px;
    border: 1px solid #cfd8dc;
    border-radius: 50px;
    padding: 10px 15px;
    font-size: 14px;
    color: #37474f;
    background-color: #fff;
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,75,133,0.15);
    outline: none;
}

/* Required field indicator */
.required {
    color: #dc3545;
    margin-left: 4px;
}

/* Wizard/Stepper Styling */
.wizard > .steps {
    margin-bottom: 40px;
    padding: 20px 0;
    background: #f8f9fa;
}

.wizard > .steps ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0 40px;
    list-style: none;
    position: relative;
}

.wizard > .steps ul:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 0px;
    background: #dee2e6;
    transform: translateY(-50%);
    z-index: 1;
}

.wizard > .steps li {
    position: relative;
    z-index: 0;
    text-align: center;
    min-width: 100px;
}

.wizard > .steps li a {
    display: block;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
}

.wizard > .steps li a:before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.wizard > .steps .current a {
    color: #004b85;
    font-weight: 500;
}

.wizard > .steps .current a:before {
    background: #004b85;
    border-color: #004b85;
}

.wizard > .steps .done a:before {
    border-color: #004b85;
}

/* Hide step numbers */
.wizard > .steps .number {
    display: none;
}

/* Override onboarding buttons  */
.onboarding-buttons {
    border: 0px solid #ffffff !important;
}

.onboarding-buttons .btn {
    border: none !important;
    background-color: #004b85 !important;
    color: #fff !important;
    border-radius: 50px !important;
    margin: 4px !important;
}

/* .onboarding-buttons .btn:not(:last-child) {
    border-right: 0px solid #e0e0e0;
} */

.onboarding-buttons .btn:hover {
    background-color: #1163a2 !important;
    color: white !important;
}

.onboarding-buttons .btn.active {
    background-color: #004b85 !important;
    color: #fff !important;
}

.onboarding-buttons .btn.active:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
}

.onboarding-buttons .btn:active {
    transform: translateY(1px);
}

/* Hide radio buttons */
.onboarding-buttons input[type="radio"] {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
}

@media (max-width: 768px) {
    .onboarding-buttons .btn {
        margin: 0 !important;
        margin-bottom: 10px !important;
    }
}

/* Button Groups */
.membership-type-group {
    display: flex;
    width: 100%;
    border: 1px solid #004b85;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 10px;
}

.membership-type-group .btn {
    flex: 1;
    margin: 0;
    padding: 15px;
    border: none;
    background-color: #fff;
    color: #004b85;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.membership-type-group .btn:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.membership-type-group .btn:hover {
    background-color: #f8f9fa;
}

.membership-type-group .btn.active {
    background-color: #004b85;
    color: #fff;
    box-shadow: none;
}

.membership-type-group .btn.active:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: rgba(255, 255, 255, 0.3);
}

.membership-type-group .btn:active {
    transform: translateY(1px);
}

/* Hide radio buttons */
.membership-type-group input[type="radio"] {
    position: absolute;
    clip: rect(0,0,0,0);
    pointer-events: none;
}

/* Panels */
.panel {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.panel-heading {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 15px 20px;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
}

.panel-body {
    padding: 25px;
    background: #fff;
}

/* Coverage Groups */
.coverage-group {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.coverage-group h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
}

/* Certificate Styling */
.certificate-dates {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.certificate-dates h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 500;
}

/* .certificate-count { */
    /* max-width: 200px; */
/* } */

/* Results Table */
.table {
    background: #fff;
}

.table > thead > tr > th {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
    border-bottom: none;
    padding: 12px 15px;
}

.table > tbody > tr > td {
    padding: 12px 15px;
    border-color: #e0e0e0;
    vertical-align: middle;
}

/* Error states */
.has-error .membership-type-group {
    border-color: #dc3545;
}

.has-error .membership-type-group .btn {
    color: #dc3545;
}

.has-error .membership-type-group .btn.active {
    background-color: #dc3545;
    color: #fff;
}

label.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.error {
    color: #dc3545 !important;
    font-weight: 600;
    font-size: 10px;
}

/* Hide salary fields for pensioner flow */
body.pensioner-flow .salary-fields {
    display: none !important;
}

/* Hide employer column for pensioner flow */
body.pensioner-flow .col-amount[data-label="What employer could pay"],
body.pensioner-flow .table-header .col:nth-child(3) {
    display: none !important;
}

/* Adjust column widths for pensioner flow to fill the space */
body.pensioner-flow .col-options {
    flex: 0 0 20%;
}

body.pensioner-flow .col-amount {
    flex: 0 0 30%;
}

body.pensioner-flow .col-total {
    flex: 0 0 20%;
}
/* Hide employer column for dependent flow */
body.dependent-flow .col-amount[data-label="What employer could pay"],
body.dependent-flow .table-header .col:nth-child(3) {
    display: none !important;
}
 
/* Adjust column widths for dependent flow to fill the space */
body.dependent-flow .col-options {
    flex: 0 0 20%;
}
 
body.dependent-flow .col-amount {
    flex: 0 0 30%;
}
 
body.dependent-flow .col-total {
    flex: 0 0 20%;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .membership-type-group {
        flex-direction: column;
    }
    
    .membership-type-group .btn {
        width: 100%;
    }
    
    .wizard > .steps ul {
        flex-direction: column;
        padding: revert;
    }
    
    .wizard > .steps ul:before {
        left: 20px;
        width: 0px;
        height: 100%;
        top: 0;
    }
    
    .wizard > .steps li {
        width: 100%;
        margin-bottom: 20px;
        text-align: left;
        padding-left: 40px;
    }
    
    .wizard > .steps li a:before {
        position: absolute;
        left: -35px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .certificate-dates {
        margin-top: 15px;
        padding: 10px;
    }
}
/* Add these styles to your styles.css file */

/* Wizard Actions Styling */
.wizard > .actions ul {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .wizard > .actions li {
    margin-right: 10px;
    list-style-type: none;
  }
  
  .wizard > .actions li:last-child {
    margin-right: 0;
  }
  
  .button-container {
    justify-content: flex-end;
  }
  
  /* Ensure buttons aren't displayed as list items */
  .wizard > .actions a,
  .wizard > .actions a:hover,
  .wizard > .actions a:active {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
  }
  
  .wizard > .actions .disabled a,
  .wizard > .actions .disabled a:hover,
  .wizard > .actions .disabled a:active {
    background: transparent;
    color: #aaa;
    cursor: not-allowed;
  }
  
  /* Fix for "Submit" button on the final step */
  .wizard > .actions > ul > .finish {
    display: block;
  }

  .btn-circle {
    border-radius: 15px;
  }

  .btn.active.focus, .btn.active:focus, .btn.focus, .btn:active.focus, .btn:active:focus, .btn:focus {
    outline: 0px !important;
    /* outline-offset: -2px; */
  }
   .whitetext{
	  color:white !important;
  }
    /* Removes border on safari on stepper li */
.wizard *,
.wizard *:before,
.wizard *:after {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Additional styles for the tooltip when 'What you could pay is hovered' is hovered */

/* CSS for the "What you could pay" column header tooltip */
.col-with-tooltip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

.col-with-tooltip:hover::after {
    content: "Minimum Contribution";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

/* Add a small arrow pointing down */
.col-with-tooltip:hover::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    pointer-events: none;
    z-index: 100;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .col-with-tooltip:hover::after,beryl
    .col-with-tooltip:hover::before {
        display: none;
    }
}

/* END ---- Additional styles for the tooltip when 'What you could pay is hovered' is hovered END ----- */

/* Top margin utilities */
.top-5 { margin-top: 5px !important; }
.top-10 { margin-top: 10px !important; }
.top-15 { margin-top: 15px !important; }
.top-20 { margin-top: 20px !important; }
.top-25 { margin-top: 25px !important; }
.top-30 { margin-top: 30px !important; }

/* Right margin utilities */
.right-5 { margin-right: 5px !important; }
.right-10 { margin-right: 10px !important; }
.right-15 { margin-right: 15px !important; }
.right-20 { margin-right: 20px !important; }
.right-25 { margin-right: 25px !important; }
.right-30 { margin-right: 30px !important; }

/* Bottom margin utilities */
.bottom-5 { margin-bottom: 5px !important; }
.bottom-10 { margin-bottom: 10px !important; }
.bottom-15 { margin-bottom: 15px !important; }
.bottom-20 { margin-bottom: 20px !important; }
.bottom-25 { margin-bottom: 25px !important; }
.bottom-30 { margin-bottom: 30px !important; }

/* Left margin utilities */
.left-5 { margin-left: 5px !important; }
.left-10 { margin-left: 10px !important; }
.left-15 { margin-left: 15px !important; }
.left-20 { margin-left: 20px !important; }
.left-25 { margin-left: 25px !important; }
.left-30 { margin-left: 30px !important; }

/* Fix for iOS date picker alignment issues */

/* Target date inputs specifically on iOS */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  /* Ensure consistent height */
  min-height: 38px;
  height: auto;
  
  /* Fix vertical alignment */
  display: flex;
  align-items: center;
  
  /* Ensure proper padding */
  padding: 6px 12px;
  
  /* Fix for iOS Safari specific issues */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  
  /* Ensure text alignment */
  text-align: left;
  
  /* Fix for iOS line-height issues */
  line-height: 1.42857143;
}

/* Specific fix for Bootstrap form controls on iOS */
.form-control[type="date"],
.form-control[type="datetime-local"],
.form-control[type="time"] {
  /* Override Bootstrap's line-height that causes issues on iOS */
  line-height: normal;
  
  /* Ensure consistent height with other form controls */
  height: calc(2.2em + 0.75rem + 2px);
  
  /* Fix padding to match other Bootstrap inputs */
  padding: 0.375rem 0.75rem;
  
  /* Center content vertically */
  display: flex;
  align-items: center;
}

/* iOS specific webkit fixes */
@supports (-webkit-touch-callout: none) {
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"] {
    /* Fix iOS Safari date input positioning */
    position: relative;
    
    /* Ensure proper box-sizing */
    box-sizing: border-box;
    
    /* Fix for iOS Safari date picker icon alignment */
    background-position: right 8px center;
    background-repeat: no-repeat;
    
    /* Ensure text doesn't overlap with calendar icon */
    padding-right: 30px;
  }
  
  /* Fix for Bootstrap input groups on iOS */
  .input-group .form-control[type="date"],
  .input-group .form-control[type="datetime-local"],
  .input-group .form-control[type="time"] {
    /* Ensure proper alignment within input groups */
    vertical-align: top;
    
    /* Fix flex alignment issues */
    align-self: stretch;
  }
}

/* Additional fix for older iOS versions */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"] {
    /* Force consistent rendering on older iOS */
    -webkit-appearance: textfield;
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="datetime-local"]::-webkit-calendar-picker-indicator,
  input[type="time"]::-webkit-calendar-picker-indicator {
    /* Style the calendar icon */
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
  }
}

/* Fix for Bootstrap 4/5 compatibility */
.form-control {
  /* Ensure all form controls have consistent height */
  min-height: calc(1.5em + 0.75rem + 2px);
}

/* Responsive fixes for smaller screens */
@media (max-width: 768px) {
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"] {
    /* Increase touch target size on mobile */
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}