.leftinput, .image-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.image-column {
  display: flex;
  align-items: center;       /* Vertical center */
  justify-content: center;   /* Horizontal center */
  height: 100%;
  text-align: center;
}

/* Image itself */
.form-side-image {
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.form-row {
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-group input,
.input-group select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  flex: 1;
}

.input-group select {
  max-width: 100px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}


/* Style for the Healthy Weight Calculator */
.toolyak-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.leftinput {
    width: 325px;
    float: left;
    padding: 20px;
    background: #e1eff0;
    border: 1px solid #0f284d;
    border-radius: 2px;
}

.rightresult {
    width: 375px;
    float: right;
    padding: 5px;
    background: #f4f4f4;
}

.btn-style {
    padding: 8px 14px;
    background-color: #228B22;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.radio-group label {
    font-size: 14px;
}

.height-ftin input, .height-cm input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
}





/* Style for the Healthy Weight Calculator */
.toolyak-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.leftinput {
    width: 325px;
    float: left;
    padding: 20px;
    background: #e1eff0;
    border: 1px solid #0f284d;
    border-radius: 2px;
}

.rightresult {
    width: 375px;
    float: right;
    padding: 5px;
    background: #f4f4f4;
}

.btn-style {
    padding: 8px 14px;
    background-color: #228B22;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.radio-group label {
    font-size: 14px;
}

.height-ftin input, .height-cm input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
}


.arrow.show {
  display: block;
}

.charts-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chart {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 10px auto;
}

.chart-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.chart-text span {
  display: block;
}

.level-label {
  font-size: 12px;
  color: #555;
}


.ai-table th, .ai-table td {
  border: 1px solid #ddd;
  padding: 10px;
}
.ai-table th {
  background: #f8f9fa;
}

.row-flex {
  display: flex;
  gap: 10px;
}

.row-flex input {
  width: 50%;
}

.form-half.height-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-half.height-wrapper label {
  font-weight: 600;
  margin-bottom: 5px;
}

.height-cm,
.height-ftin {
  width: 100%;
}

.height-ftin .row-flex {
  display: flex;
  gap: 10px;
}

.height-ftin input {
  flex: 1;
  min-width: 0;
}

.form-third {
  flex: 1 1 33%;
}
.tooltip-icon {
  position: relative;
  cursor: help;
  display: inline-block;
}
.tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 5px;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: 0.3s;
  z-index: 1;
}
.tooltip-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.ai-warning {
  background: #fff3cd;
  border-left: 5px solid #f0ad4e;
  padding: 15px;
  font-size: 15px;
  color: #856404;
  border-radius: 5px;
  margin: 20px auto;
  max-width: 600px;
  font-family: Arial, sans-serif;
}

.toggle-group {
  display: flex;
  gap: 10px;
}

.toggle-btn {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.toggle-btn input[type="radio"] {
  display: none;
}

.toggle-btn span {
  display: inline-block;
  padding: 8px 14px;
  background-color: #e0e0e0;
  color: #333;
  font-size: 14px;
  border-radius: 20px;
  transition: 0.2s ease-in-out;
}

.toggle-btn input[type="radio"]:checked + span {
  background-color: #0F284D;
  color: #fff;
  font-weight: 600;
}

  .toolyak-wrapper {
    max-width: 750px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    overflow: hidden;
  }

  .leftinput {
    width: 325px;
    float: left;
    padding: 20px;
    box-sizing: border-box;
    background: #e1eff0;
    border: 1px solid #0f284d;
    border-radius: 2px;
  }
  
  .leftinput h2 {
  font-size: 18px;
  font-weight: 600;
    color: #0F284D;
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center; /* ✅ Center alignment */
}

.rightresult {
  width: 375px;
  float: right;
  padding: 5px;
  box-sizing: border-box;
  background-color: transparent;
}

  .rightresult h2 {
    background: #228B22;
    color: #fff;
    padding: 4px;
    margin-top: 0;
    text-align: center;
  }
  
#toolyak-result strong {
  color: #000;
  font-size: 16px; /* You can increase/decrease as needed */
  font-weight: 600;
}
#toolyak-result em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #333;
}
.bf-value {
  font-size: 21px;
  font-weight: bold;
  margin-left: 5px;
}

.bf-pass {
  color: #28a745; /* green */
}

.bf-fail {
  color: #dc3545; /* red */
}
#toolyak-result span[style*="color:red"] {
  color: #dc3545 !important;
  font-weight: 600;
}
#toolyak-result span[style*="color:green"] {
  color: #28a745 !important;
  font-weight: 600;
}

  label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 10px;
  }

  .row-flex {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }

  .row-full {
    margin-bottom: 10px;
  }

  .form-half {
    flex: 1;
  }
  
#toolyak-container input[type="text"],
#toolyak-container input[type="number"],
#toolyak-container input[type="email"],
#toolyak-container input[type="tel"],
#toolyak-container input[type="url"],
#toolyak-container input[type="password"],
#toolyak-container select,
#toolyak-container textarea {
  width: 100%;
  height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #0F284D;
  background-color: #ffffff;
  border: 1px solid #0F284D;
  border-radius: 0;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  font-family: 'Segoe UI', sans-serif;
}

/* Placeholder text color */
input::placeholder,
textarea::placeholder {
  color: #999;
}

/* Focus style */
input:focus,
select:focus,
textarea:focus {
  border-color: #0F284D; /* Green highlight on focus */
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 40, 77, 0.2); /* subtle glow */
}

/* Disabled style */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f1f1f1;
  color: #888;
  cursor: not-allowed;
} 

.shake-highlight {
  border: 2px solid red !important;
  animation: shake 0.4s linear;
  background-color: #ffe6e6;
}

@keyframes shake {
  0% { transform: translateX(0px); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0px); }
}


  /* Base button style */
.toolyak-wrapper button,
.toolyak-wrapper .btn-style {
  margin-top: 7px;
  background: #228B22;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* Calculate / Reset buttons (side‑by‑side) */
.toolyak-wrapper .btn-style {
  width: 48%;
  padding: 8px 14px;      /* small vertical and horizontal padding */
  height: auto;          /* allow height to grow with padding */
  line-height: normal;   /* default line-height */
  display: inline-block;
  text-align: center;
}


.toolyak-wrapper .btn-style.btn-calculate {
  background-color: #0F284D !important;
}

.toolyak-wrapper .btn-style.btn-reset {
  background-color: #4c4c4c!important;
}

.toolyak-wrapper .btn-style:hover {
  opacity: 0.9;
}
  
input,
select {
  padding: 8px 14px;
  font-size: 6px;
  width: 100%;
  height: 34px;
  line-height: 1.2;
  box-sizing: border-box;
  color: #0F284D;        /* ✅ Text color inside input/select */
  border: 1px solid #0F284D;
  border-radius: 0px;
  background-color: #fff;
}

/* Optional: Change text color on focus */
input:focus,
select:focus {
  border-color: #0F284D;
  color: #000;           /* Can change to darker shade on focus if desired */
  outline: none;
}

/* Style dropdown options */
select option {
  color: #0F284D;        /* ✅ Dropdown options text color */
  background-color: #fff;
}

.article-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  color: #0F284D;
  line-height: 1.6;
  font-size: 16px;
}

/* Headings */
.article-container h1,
.article-container h2,
.article-container h3,
.article-container h4,
.article-container h5,
.article-container h6 {
  color: #0F284D;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.3;
  position: relative;
  padding-left: 12px;
}

.article-container h2 {
  font-size: 18px;
  border-left: 4px solid #228B22;
  background-color: #e1eff0;
  padding: 8px 12px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.article-container h3 {
  font-size: 18px;
  border-left: 3px solid #ccc;
  padding-left: 10px;
}

.article-container a {
  color: #0F284D;
  text-decoration: none;
  font-weight: 600;
}

.article-container a:hover {
  text-decoration: underline;
  color: #2196F3;
}
.article-container h4 {
  font-size: 16px;
  font-weight: 500;
  padding-left: 8px;
  color: #333;
}

/* Paragraphs and Links */
.article-container p {
  margin-bottom: 15px;
}

.article-container a {
  color: #228B22;
  text-decoration: underline;
}

.article-container a:hover {
  text-decoration: none;
}

/* Images */
.article-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
}

/* Inline Code */
.article-container code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin: 5px 0;
  color: #b30000;
  font-family: Consolas, monospace;
  font-size: 14px;
  white-space: pre-wrap;
}

/* Preformatted Code Block */
.article-container pre {
  background: #f5f5f5;
  padding: 15px;
  overflow-x: auto;
  border-radius: 6px;
  margin: 20px 0;
  font-family: Consolas, monospace;
  font-size: 14px;
  color: #0F284D;
  line-height: 1.5;
  white-space: pre;
}

.article-container pre code {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  color: inherit;
}

/* Unordered Lists with SVG Icons */
.article-container ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.article-container ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: left; /* ← Ensures left alignment */
}

.article-container ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='%23228B22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.2l-4.2-4.2L3 13.8l6 6 12-12-1.8-1.8L9 16.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Ordered Lists */
.article-container ol {
  padding-left: 30px;
  margin-bottom: 20px;
}

.article-container ol li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Blockquotes */
.article-container blockquote {
  border-left: 4px solid #228B22;
  background: #f2f8f2;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #333;
  border-radius: 5px;
}

/* Tables */
.article-container table {
  width: 100%;
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
}

.article-container th,
.article-container td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.article-container th {
  background: #0F284D;
  color: #fff;
}

.article-container td {
  background: #f9f9f9;
}

/* Responsive Table Wrapper */
.article-container .table-responsive {
  overflow-x: auto;
}

/* Horizontal Rule */
.article-container hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Highlight Boxes */
.article-container .note,
.article-container .warning,
.article-container .tip {
  border-left: 5px solid #228B22;
  background: #e9f5e9;
  padding: 12px 16px;
  border-radius: 5px;
  margin: 20px 0;
}

.article-container .warning {
  border-left-color: #d9534f;
  background: #fae3e3;
}

.article-container .tip {
  border-left-color: #5bc0de;
  background: #e7f7fa;
}

/* Emphasis */
.article-container strong {
  font-weight: bold;
}

.article-container em {
  font-style: italic;
}


.radio-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px; /* spacing between each radio item */
  margin-bottom: 10px;
}

/* Individual Radio Item (label + input) */
.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #000000;
  font-weight: normal;
  margin-right: 5px;
  cursor: pointer;
}

/* Radio Input */
.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #0F284D; /* Matches theme */
  cursor: pointer;
  vertical-align: middle;
}

/* Optional Focus for Accessibility */
.radio-group input[type="radio"]:focus {
  outline: 2px dotted #4c4c4c;
  outline-offset: 2px;
}

/* Optional: Compact radio buttons on small screens */
@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 768px) {
  .toolyak-wrapper {
    max-width: 100%;
    padding: 0 10px;
  }

  .leftinput, .rightresult {
    width: 100%;
    max-width: 375px;
    float: none;
    margin: 0 auto 20px;
  }

  .row-flex {
    flex-direction: row;
    gap: 10px;
  }

  .form-half {
    width: 50%;
  }
}
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}