/***************************************calculator***************************************/
:root {
    --bcard-green: #B2CB21;
    --bcard-teal: #4FB8AA;
    --bcard-teal-vvl: #EDF4F4;
    --bcard-dark: #292E32;
    --bcard-orange: #D4640A;
    --bcard-red: #E84455;
    --bcard-bl: #4FB8AA;
    --bcard-link: #014460;
    --bcard-link-hover: rgba(1, 68, 96, 0.5);
    --bcard-link-active: rgba(1, 68, 96, 0.7);
    --bcard-border: rgba(238, 238, 238, 1);
    --bcard-row-odd: rgba(250, 251, 252, 1);
    --bcard-row-even: rgba(255, 255, 255, 1);
    --bcard-row-hover: rgba(0, 0, 0, 0.05);
}

.calculator-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  direction: rtl;
  font-family: 'Heebo', sans-serif;
}

.calculator,
.result-container {
  max-width: 550px;
  max-height: 650px;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 2px solid var(--bcard-teal-vvl);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.result-container {
  background-color: var(--bcard-teal-vvl);
  text-align: center;
}

.input-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  gap: 12px;
}

.input-group label {
  font-size: 16px;
  color: var(--bcard-dark);
  flex: 1;
  text-align: right;
}

.input-group input[type="number"],
.input-group input[type="text"] {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: var(--bcard-teal-vvl);
  flex: 1;
  font-size: 16px;
  text-align: left;
}

.input-group input[type="range"] {
  flex: 2;
  margin: 0 10px;
  accent-color: var(--bcard-green)!important; /* צבע הסליידר */
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  gap: 16px;
}

.birth-year-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gender-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex: 1;
}

.gender-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.aligned-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aligned-input input {
  direction: ltr;
  flex: 1;
  padding: 6px;
  font-size: 16px;
}

.aligned-input span {
  margin-right: 8px;
  font-size: 14px;
  color: var(--bcard-dark);
}

.result {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--bcard-teal-vvl);
  font-weight: 700;
  font-size: 20px;
  color: var(--bcard-dark);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.03);
  border: 2px solid var(--bcard-teal);
}

.sendbtn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    background-color: var(--bcard-dark); /* #014460 */
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.05);
}

.sendbtn:hover {
    background-color: var(--bcard-teal); /* #238DBA */
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

.sendbtn:active {
    background-color: var(--bcard-dark) !important;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sendbtn:focus {
    outline: none;
    background-color: var(--bcard-bl);
}


/* כפתור משני */
.sendto {
  width: 80%;
  padding: 15px 25px;
  margin-top: 15px;
  border: none;
  background-color: var(--bcard-bl);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.sendto:hover {
  background-color: var(--bcard-green);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sendto:active {
  background-color: var(--bcard-teal);
  transform: translateY(2px);
}

.sendto:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 203, 33, 0.3); /* bcard-green highlight */
}


.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
  width: 120px; /* מותאם לשדה מספר */
  direction: ltr;
  font-family: 'Heebo', sans-serif;
}

.input-with-symbol input {
  padding-right: 28px; /* מקום לסמל */
  padding-left: 10px;
  text-align: right;
  border: 1px solid var(--bcard-teal-vvl);
  border-radius: 8px;
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  font-size: 16px;
  background-color: #fff;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input-with-symbol input:focus {
  border-color: var(--bcard-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 184, 170, 0.2);
}

.input-with-symbol .symbol {
  position: absolute;
  right: 8px;
  font-size: 15px;
  color: var(--bcard-dark);
  pointer-events: none;
}

.input-with-symbol input::-webkit-inner-spin-button, 
.input-with-symbol input::-webkit-outer-spin-button {
  opacity: 1;
  margin-left: 0;
  margin-right: 0;
}
.gender-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Heebo', sans-serif;
}

.gender-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bcard-dark);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
}

.gender-option input[type="radio"]:hover {
  border-color: var(--bcard-bl);
}

.gender-option input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(79, 184, 170, 0.25); /* focus נגיש */
}

.gender-option input[type="radio"]::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--bcard-bl);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}

.gender-option input[type="radio"]:checked::before {
  transform: scale(1);
}

.gender-option label {
  font-size: 16px;
  cursor: pointer;
  color: var(--bcard-dark);
  transition: color 0.2s;
}

.gender-option input[type="radio"]:checked + label {
  font-weight: 600;
  color: var(--bcard-dark);
}


 .result-table {
  width: 100%;
  border-collapse: collapse;
  margin: auto;
  margin-bottom: 15px;
  background-color: var(--bcard-teal-vvl);
  font-size: 18px;
  border: 1px solid var(--bcard-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.result-table td {
  padding: 10px;
  border: 1px solid var(--bcard-border);
  font-size: 16px;
  line-height: 1.5;
}

.result-table td:first-child {
  background-color: var(--bcard-row-odd);
  text-align: right;
  font-weight: normal;
  direction: rtl;
  padding-right: 12px;
  color: var(--bcard-dark);
  white-space: nowrap;
}

.result-table td:last-child {
  background-color: var(--bcard-row-even);
  text-align: left;
  direction: ltr;
  padding-left: 12px;
  font-weight: 600;
  color: var(--bcard-link);
}



input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bcard-bl); /* #238DBA */
    border: 2px solid var(--bcard-dark); /* #014460 */
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bcard-bl);
    border: 2px solid var(--bcard-dark);
    cursor: pointer;
}


    .rigtit{
      width: 30%;
      text-align: right;
      margin:0 5px;
      white-space: nowrap;
    }
    .pas-glila{
      width: 70%;
      direction: rtl;
      text-align: right;
      margin: 0;
   
    }
    .input-with-symbol{
      width: 30%;
     
    }
    .close-btn{
        width: 100%;
    }
    .close-button {
    padding: 0;
    margin: 0;
    float: left;
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #014460;
    cursor: pointer;
    transition: color 0.3s ease;
    }

    .close-button:hover {
        color: #00B4FF!important;
        background-color:rgba(1, 68, 96, 0.03)!important;
    }
    
    .close-button:active {
        background-color: rgba(1, 68, 96, 0.8)!important;
        color: white !important;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
        transform: translateY(2px);
     }
     .close-button:focus {
        background-color: #014460 !important;
        color: white !important;
        outline: none;
     }
.txtbtn{
     font-size:16px;
     margin-top:15px;
}
/***************************************
  📌 עיצוב מחשבון רספונסיבי
****************************************/

.calculator-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1100px; /* מגביל את הרוחב המקסימלי */
    margin: 0 auto;
}

/* 📌 מחשבון */
.calculator {
    width: 550px;
    max-width: 100%;
    height: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* 📌 תוצאות */
.result-container {
    width: 550px;
    max-width: 100%;
    height: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 0px;
    background-color: #f1f6f8;
    box-sizing: border-box;
    text-align: center;
}
.result-bold{
    color: var(--bcard-green)!important;
}
/* 📌 התאמה רספונסיבית למסכים קטנים */
@media screen and (max-width: 900px) {
    .calculator-container {
        flex-direction: column; /* מסדר את המחשבון והתוצאות אחד מתחת לשני */
        align-items: center; /* ממרכז את האלמנטים */
    }

    .calculator, .result-container {
        width: 100%; /* מחשבון ותוצאות יתפסו את כל הרוחב */
        max-width: 500px; /* מגביל את הרוחב במובייל */
    }
}

.result-title {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--bcard-dark);
  text-align: center;
  border-bottom: 2px solid var(--bcard-green);
  padding-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}


/*******************************סוף מחשבון*******************************/

  
  