/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/*--------------------------------------------------------------------------------------------------------------- */


html {
    height: auto;
}

body {
    min-height: 100vh;
    height: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}


.navbar {
    flex: 0 1 auto;
    background-color: transparent;
    font-size: 16px;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: none;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    color: #152FA3;
    text-decoration: none;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 30px;
}

.navbar-nav > li {
    padding: 0;
}

.nav-link {
    white-space: nowrap;
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover {
    color: #152FA3;
}

/* Add responsive padding for mobile devices */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .navbar-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .navbar-brand {
        margin-bottom: 0;
    }
    
    .brand-text {
        font-size: 18px;
    }
    
    .navbar-collapse {
        justify-content: center;
    }
    
    .navbar-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .navbar {
        padding: 10px 12px;
    }
    
    .brand-text {
        font-size: 16px;
    }
    
    .navbar-nav {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}

/* Newsletter Bar Styling */
.newsletter-bar {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    border-bottom: 1px solid rgba(21, 47, 163, 0.1);
    padding: 12px 0;
    margin-bottom: 24px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.newsletter-icon {
    font-size: 18px;
    color: #152FA3;
}

.newsletter-message {
    font-size: 14px;
    font-weight: 500;
    color: #152FA3;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .newsletter-message {
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
}

.newsletter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.newsletter-input {
    padding: 8px 12px;
    border: 1px solid rgba(21, 47, 163, 0.2);
    border-radius: 6px;
    font-size: 14px;
    width: 200px;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: #152FA3;
    box-shadow: 0 0 0 2px rgba(21, 47, 163, 0.1);
}

.newsletter-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.newsletter-btn {
    padding: 8px 16px;
    background-color: #152FA3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #0d1f6b;
    transform: translateY(-1px);
}

.newsletter-btn:active {
    transform: translateY(0);
}

/* Responsive design for newsletter bar */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }
    
    .newsletter-text {
        justify-content: center;
    }
    
    .newsletter-message {
        font-size: 11px;
    }
    
    .newsletter-form {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-input {
        flex: 1;
        max-width: 250px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-bar {
        padding: 10px 0;
    }
    
    .newsletter-content {
        padding: 0 12px;
        gap: 10px;
    }
    
    .newsletter-message {
        font-size: 12px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .newsletter-input {
        width: 100%;
        max-width: none;
    }
    
    .newsletter-btn {
        width: 100%;
        padding: 10px 16px;
    }
}






#main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px 20px 16px;
}

#form-group{
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

h1 {
    font-size: xx-large;
    text-align: center;
}

.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-top: 0;
}

@media (max-width: 900px) {
    h1 {
        font-size: x-large;
    }
    
    .main-heading {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .main-heading {
        font-size: 1.75rem;
    }
}



h2 {
    font-size: x-large;
    padding: 5px;
}

h3 {
    font-size: large;
    text-align: center;
}

.sub-heading {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .sub-heading {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    .sub-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
}


h6 {
    font-size: medium;
}


small{
    font-size: medium;
}

/* Form Card Styling */
.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin: 0 auto 16px auto;
    max-width: 800px;
    width: 100%;
    border: 1px solid #e9ecef;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: left;
}

#openai-form{
    width:100%;
}

.form-group{
    width:100%;
}


textarea {
    width: 100%;
    resize: none;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ced4da;
    box-shadow: 0 0 20px rgba(36, 12, 191, 0.1);
    font-size: medium;
    font-family: Arial, sans-serif;
    height: 120px
}

.symptoms-input {
    width: 100%;
    resize: vertical;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e1e5e9;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.symptoms-input:focus {
    outline: none;
    border-color: #152FA3;
    box-shadow: 0 0 0 3px rgba(21, 47, 163, 0.08);
}

.symptoms-input::placeholder {
    color: #9ca3af;
    font-style: normal;
    font-size: 13px;
}

textarea.form-control:focus {
    outline: none !important; /* Force removal of the blue outline */
    box-shadow: 0 0 20px rgba(36, 12, 191, 0.408);
}

  @media (max-width: 900px) {
    textarea {
      height: 100px; /* Adjust this value as needed */
    }
  }
  


/* Output Area Styling (now inside form card) */
.output-area {
    min-height: 60px;
    max-height: 400px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 10px 18px 18px;
    background-color: #fff;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.output-placeholder {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    line-height: 1.4;
}

#output-container-outside{
    height:50%;
    max-height: 400px;
    max-width: 800px;
    min-width: 300px;
    margin-top: 10px;
}

#output-container{
    height: auto;
    max-height: 100%;
    overflow-y: auto;
}


#accordion-item-0{
    display:none;
}

/* #accordionFlushExample{
    padding: 20px;
} */

#output-container{
    padding: 0;
    overflow: visible;
}

/* Referral Container Styling */
#referral-container {
    padding: 0 12px 12px;
    margin: 0;
    background-color: transparent;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    box-shadow: none;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#referral-container:empty {
    display: none;
}

/* Responsive padding for referral container */
@media (max-width: 768px) {
    #referral-container {
        padding: 4px 12px 12px;
        margin: 4px 0;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #referral-container {
        padding: 4px 10px 10px;
        margin: 4px 0;
        font-size: 14px;
        border-radius: 8px;
    }
}

.accordion-collapse {
    font-size: large;
    padding: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.accordion-body-one {
    white-space: pre-wrap;
}

.accordion-body-two {
    white-space: pre-wrap;
}

.accordion-header{
    border-color: white;
    background-color: white;
}

.accordion-button {
    background-color: white; /* Set default background color */
    color: #152FA3; /* Set text color */
    border-color: white; /* Set border color */
    font-size: large;
    font-weight: bold;
}

.accordion-button:focus,
.accordion-button:active,
.accordion-button:not(.collapsed) {
    background-color: white; /* Keep background color white on focus and active */
    color: #152FA3; /* Keep text color */
    border-color: white; /* Keep border color */
    outline: none; /* Remove the blue outline */
}

.accordion-header {
    background-color: white; /* Ensure the header background is white */
    border-color: white; /* Ensure the header border is white */
    outline: none; /* Remove the blue outline */
}

.accordion-header button:focus {
    outline: none !important; /* Force removal of the blue outline */
    box-shadow: none; /* Remove any box shadow that might appear */
}

.loader {
    display: none;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 300px;
}

.loader-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #152FA3;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    animation: spin 1.5s linear infinite;
}

.loader-text {
    font-size: 16px;
    color: #152FA3;
    font-weight: 500;
    margin-top: 10px;
}

.loader-dots {
    display: inline-block;
}

.loader-dots::after {
    content: '';
    animation: loader-dots 1.5s infinite;
}

@keyframes loader-dots {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn {
    margin: 0 auto;
}

b {
    font-weight: bold;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.accordion-body-button {
    display: flex;
    flex-wrap: wrap;
  }

  .button1, .button2 {
    background-color: #152FA3 !important; /* Set background color with higher specificity */
    flex: 1 0 calc(50% - 20px); /* Assuming 3 items per row, subtracting 20px for margin */
    margin: 10px; /* This is your minimum space between items */
    /* Adjust as needed */
  } 

/* Responsive buttons row for the three main actions */
.buttons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.action-btn {
    min-width: 140px;
    padding: 12px 18px;
    background-color: #152FA3 !important;
    border-color: #152FA3 !important;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(21, 47, 163, 0.2);
}

.action-btn:hover {
    background-color: #0d1f6b !important;
    border-color: #0d1f6b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(21, 47, 163, 0.3);
}

/* On very small screens stack buttons full-width */
@media (max-width: 576px) {
    .buttons-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .action-btn {
        width: 100%;
    }
}

a {
    color: #152FA3; /* Change to your desired color */
    text-decoration: underline; /* Add underline back */
    transition: color 0.3s, background-color 0.3s; /* Smooth transition for hover effects */
}

a:hover {
    color: #fff; /* Change color on hover */
    background-color: #152FA3; /* Add background color on hover */
    padding: 2px 4px; /* Optional: add some padding for a button-like effect */
    border-radius: 4px; /* Optional: round the corners */
}

.badge-most-likely {
  background-color: #4F6CE1;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
}

.badge-possible {
  background-color: #6E7BC4;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: normal;
  margin-left: 10px;
  display: inline-block;
}

/* Info Cards Styling */

.info-cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 12px auto;
  max-width: 920px;
  padding: 0 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.info-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(21, 47, 163, 0.07);
  padding: 20px 18px;
  text-align: center;
  flex: 1 1 240px;
  max-width: 280px;
  min-width: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(21, 47, 163, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(21, 47, 163, 0.18);
}

.info-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 47, 163, 0.14), rgba(79, 108, 225, 0.24));
  color: #152FA3;
  box-shadow: inset 0 0 0 1px rgba(21, 47, 163, 0.12);
}

.info-card-icon {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  line-height: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  color: #152FA3;
}

.info-card-icon--glyph {
  width: auto;
  height: auto;
}

.info-card-icon--svg path,
.info-card-icon--svg circle,
.info-card-icon--svg line {
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.info-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #102168;
  margin: 0;
}

/* Responsive design for info cards */
@media (max-width: 1024px) {
  .info-cards {
    gap: 12px;
    padding: 0 12px;
    margin: 4px auto 14px auto;
  }
  
  .info-card {
    flex: 0 0 calc((100% - 2 * 12px) / 3);
    max-width: calc((100% - 2 * 12px) / 3);
    min-width: 200px;
    padding: 20px 18px;
  }
}

@media (max-width: 900px) {
  .info-cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 8px auto 14px auto !important;
    padding: 0 12px !important;
  }
  
  .info-card {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 20px 18px !important;
  }
}

@media (max-width: 768px) {
  .info-cards {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 8px auto 14px auto !important;
    padding: 0 12px !important;
  }
  
  .info-card {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 18px !important;
  }
}

@media (max-width: 480px) {
  .info-cards {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 10px !important;
    margin: 6px auto 14px auto !important;
    gap: 10px !important;
  }
  
  .info-card {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  
  .info-card-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1.8rem;
  }
  
  .info-card-title {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .info-cards {
    flex-direction: column !important;
    align-items: center !important;
    padding: 0 10px !important;
  }
  
  .info-card {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 22px !important;
    box-sizing: border-box !important;
  }
}


