﻿

.children-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gender-switch {
    display: flex;
    justify-content: space-between;
    margin: auto;
    margin-bottom: 25px;
    width: 205px;
    border: 1px solid #30b524;
    border-radius: 12px;
}

    .gender-switch button {
        padding: 5px 30px;
        border: none;
        cursor: pointer;
        outline: none;
        font-size: 16px;
        background-color: transparent;
        color: #30b524;
        transition: all 0.2s;
    }

    .gender-switch #male-btn {
        border-radius: 10px;
    }

    .gender-switch #female-btn {
        border-radius: 10px;
    }

    .gender-switch .active {
        background-color: #30b524;
        color: white;
    }

.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px; /* Space between rows */
}

/* Member Box Style */
.member-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #fff;
    color: #333;
    height: 50px;
}

    .member-box.selected {
        background-color: #e6ffe6;
        border-color: #30b524;
    }

    .member-box .label-text {
        display: flex;
        align-items: center;
        flex-grow: 1;
    }

/* Custom Check Icon (Video Style) */
.custom-radio {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.member-box.selected .custom-radio {
    border-color: #30b524;
    background-color: #30b524;
}
:root {
    --borderWidth: 7px;
    --height: 24px;
    --width: 12px;
    --borderColor: #78b13f;
}
.custom-radio::after {
    content: "";
    display: inline-block;
    transform: rotate(45deg);
    height: 11px;
    width: 5px;
    border-bottom: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
    color: white;
    font-size: 14px;
    display: none;
    position: absolute;
    top: 5px;
}

.member-box.selected .custom-radio::after {
    display: block;
}

.age-dropdown, .child-age-dropdown {
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: #30b524;
    user-select: none;
    font-weight: 500;
    display: none;
    text-align: right;
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 14px;
}
.child-age-dropdown {
    display:block
}

.member-box.selected .age-dropdown {
    display: block;
}

/* Child Specific Styles (Adjusted for image layout) */
.child-box-row {
    display: contents; /* Allows boxes to align in the main grid */
}

.child-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}
.controlsBtnGroup {
    border: 1px solid #30b524;
    border-radius: 4px;
    text-align: center;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    height: 25px;
    margin-right: 5px;
    margin-left: 5px;
    background: #fff;
}
.child-count {
    margin: 0 2px;
}
.child-count-btn {
    background-color: #30b524;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 8px;
    line-height: 7px;
    height: 15px;
    width: 15px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.child-count-btn[disabled] {
    background-color: #a9a9a9 !important;
    cursor: default !important;
}

.child-count-display {
    padding: 3px 5px;
    font-weight: bold;
    color: #333;
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    border: 1px solid #888;
    width: 650px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    height: 410px;
}
#modal-member-label {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 5px;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.AgeBoxList {
    max-height: 300px;
    overflow-y: auto;
}
.age-options-grid {
    position: initial;
    width: 100% !important;
    border: 0;
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: center;
}

.age-option {
    width: 17%;
    text-align: center;
    height: 55px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 50px;
    background-color: #fff;
    padding: 0;
    font-weight: 500;
    margin: 8px;
    border: 1px solid #999;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
    .age-option.selected {
        background-color: #30b524;
        color: white;
        border-color: #30b524;
    }

    .age-option span {
        display: block;
        line-height: normal;
    }

    .age-option .premium {
        font-size: 12px;
        color: #30b524;
        display: block;
        line-height: normal;
    }
    .age-option.selected .premium {
        color: white;
    }

.continue-btn {
    width: 200px;
    padding: 15px;
    background-color: #30b524;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: block;
    margin-top: 30px;
    margin-bottom: 10px;
}

    .continue-btn.active {
        background-color: #30b524;
    }
.ViewQuote{
    width:100%;
}
.renew-link {
    text-align: left;
    font-size: 14px;
}

    .renew-link a {
        color: #30b524;
        text-decoration: none;
    }

/* Container + basic layout */
.label-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative; /* for accessible focus outlines (optional) */
  user-select: none;
}

/* Keep native checkbox accessible but visually hidden */
.label-text input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    z-index: 9;
}

/* Label becomes the visible clickable area */
.label-text label {
  position: relative;
  cursor: pointer;
  padding-left: 36px;    /* room for custom box at left */
  line-height: 1;
  display: inline-block;
  color: #222;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}

/* The visible box (unchecked state) */
.label-text label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #9aa0a6;
  background: #fff;
  box-sizing: border-box;
  transition: all 180ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* The checkmark (hidden when unchecked) */
.label-text label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg) scale(0);
  width: 6px;
  height: 12px;
  border-right: 2.6px solid transparent;
  border-bottom: 2.6px solid transparent;
  transition: transform 140ms ease, border-color 140ms ease;
  pointer-events: none;
}

/* Checked state: color + reveal checkmark */
.label-text input[type="checkbox"]:checked + label::before {
  background: linear-gradient(135deg, #34c759, #0ea75b);
  border-color: transparent;
}
.label-text input[type="checkbox"]:checked + label::after {
  transform: translateY(-50%) rotate(45deg) scale(1);
  border-right-color: #fff;
  border-bottom-color: #fff;
}

/* Hover / focus affordances */
.label-text label:hover::before {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.label-text input[type="checkbox"]:focus + label::before {
  box-shadow: 0 0 0 5px rgba(52,199,89,0.15);
  outline: none;
}

/* Disabled state */
.label-text input[type="checkbox"]:disabled + label {
  cursor: not-allowed;
  color: #9ea3a8;
}
.label-text input[type="checkbox"]:disabled + label::before {
  background: #f3f4f5;
  border-color: #d7dbe0;
  box-shadow: none;
}
.HealthQuoteCustMain0003 {
    display: inline-flex;
    align-items: center;
    background-color: #f3f3f3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 15px;
    width: auto;
}
.BackBTNRow .arw-btn i {
    margin-right: 10px;
}
.BackBTNRow .arw-btn {
    display: flex !important;
    align-items: center;
    text-decoration: none;
    color: #3d3d3d;
    cursor: pointer;
}
.mobileBox{
    margin-bottom:30px;
}
.mobileBox .MobilDigitBox .SMCLarg {
    line-height: 40px;
    margin-top: 55px;
    min-width: 43.5%;
}
.BackBTNRow {
    margin: 0px;
    margin-right:10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.HealthQuoteCustMain0003 span {
    display: inline-block;
    margin-left: 5px;
}
.BackBTNRow .arw-btn {
    color: #3d3d3d;
    cursor: pointer;
}

.BackBTNRow p {
    margin: 0;
}
.HealthCustomAgeBox .MobilDigitBox .HealthPincode {
    position: relative;
    margin-bottom: 0;
    margin-top: 15px;
}
.HealthCustomAgeBox .MobilDigitBox .HealthPincode input {
    border: none;
    border-bottom: 1px solid #3d3d3d;
    border-radius: 0;
    height: 38px;
    font-size: 16px;
    width: 100%;
    font-weight: 600;
    padding: 10px 0 0;
}
.HealthCustomAgeBox .MobilDigitBox .HealthPincode label{
    position: absolute;
    top: 15px;
    left: 0;
    display: block;
    height: auto;
    width: 100%;
    margin-bottom: 0;
    line-height: normal;
    color: #3d3d3d;
    font-size: 16px;
    font-weight: 500;
    transition: all .1s ease-in-out;
}
.HealthCustomAgeBox .MobilDigitBox .HealthPincode label, .HealthCustomAgeBox .MobilDigitBox label, .HealthProUpdFormBoxSection .ForUpBox label {
    position: absolute;
    top: 15px;
    left: 0;
    display: block;
    height: auto;
    width: 100%;
    margin-bottom: 0;
    line-height: normal;
    color: #3d3d3d;
    font-size: 16px;
    font-weight: 500;
    transition: all .1s ease-in-out;
}
.HealthCustomAgeBox .MobilDigitBox .HealthPincode input:focus ~ label, .HealthCustomAgeBox .MobilDigitBox input:not(:placeholder-shown) ~ label {
    top: -5px;
    font-size: 12px;
}
.HealthCustomAgeBox .MobilDigitBox .mobilDigitIcon {
    right: 0;
}

.MobilDigitBox .mobilDigitIcon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    width: auto;
}