/* ── Global/Form Styles ───────────────────────────────── */
/* make width:100% include padding & border */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    /* margin: 0; padding: 20px; */
    background: #fff;
    color: #000;
}
.form-container {
    max-width: 600px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
}
input:focus,
select:focus {
    outline: none;
    border-color: #007f5f;
    box-shadow: 0 0 0 3px rgba(0, 127, 95, 0.2);
}
h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 0.5rem;
}
p.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    /* margin-bottom: 8px; */
    /* font-weight: 600; */
}
input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}
.gender-options,
.phone-inputs,
.dob-inputs,
.height-weight-inputs {
    display: flex;
    gap: 10px;
}
.gender-option,
.phone-inputs input,
.dob-inputs input,
.dob-inputs select,
.height-weight-inputs input {
    flex: 1;
    text-align: center;
}
.gender-option {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.gender-option.selected {
    background: #007f5f;
    color: #fff;
    border-color: #007f5f;
}
.gender-option i {
    font-size: 24px;
    margin-bottom: 8px;
}
.next-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #007f5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 0px;
    box-shadow: 0 2px 8px rgba(0, 127, 95, 0.3);
    transition: background 0.3s, transform 0.2s;
}
.next-btn:hover {
    background: #005f47;
    transform: translateY(-2px);
}
.hidden {
    display: none;
}
@media (max-width: 600px) {
    .gender-options,
    .dob-inputs,
    .height-weight-inputs {
        flex-direction: column;
    }
    .form-container {
        padding: 20px;
    }
}
.phone-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* never wrap to new line */
}

.phone-inputs input {
    flex: 1 1 0; /* all three share the row */
    min-width: 0; /* allow inputs to shrink */
}

@media (max-width: 600px) {
    .form-container h1 {
        white-space: normal; /* allow wrapping */
        word-wrap: break-word; /* handle long words gracefully */
        font-size: 24px; /* smaller font to ensure good fit */
    }
}

/* ── Page 5 Report Styles ───────────────────────────── */
#page5.form-container {
    max-width: 800px;
    padding: 30px;
    margin: 30px auto 30px;
}
#page5 > h1 {
    color: #007f5f;
    font-size: 2rem;
}
#page5 p.report-summary {
    text-align: center;
    margin: 0 0 0.5rem;
    font-size: 1rem;
}
#page5 h3 {
    text-align: center;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0;
}
.report-weights {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
}
.weight-block p {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
    white-space: nowrap;
}
.weight-block strong,
.weight-block span {
    display: inline-block;
    white-space: nowrap;
}
.weight-block strong {
    font-size: 2.5rem;
    color: #007f5f;
    line-height: 1;
}

/* ── Chart Canvas on Page 5 ─────────────────────── */
#page5 canvas#weightLossChart {
    width: 100% !important;
    margin-top: 0rem;
    height: auto !important;
    margin-bottom: 0rem;
}

.input-wrapper {
    position: relative;
    flex: 1; /* share the row equally */
}
.input-wrapper input {
    width: 100%;
    padding-right: 2.5em; /* make space for the suffix */
    box-sizing: border-box;
}
.input-wrapper .suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #555;
    pointer-events: none;
}
/* ── Table Disclaimer & Styling ────────────────────────────── */
.table-disclaimer {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin: 0.5rem 0 0.5rem;
    line-height: 1.4;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table th {
    background: #f5fafa;
    font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}
/* ── Report Card Container ───────────────────────────── */
.report-card {
    background: #e8f9f6; /* soft teal */
    border: 1px solid #cceaea; /* subtle border */
    border-radius: 12px;
    margin-bottom: 10px; /* pull left/right by the 30px padding of .form-container */
    padding: 16px 30px; /* keep 30px of padding inside the card */
    overflow: hidden; /* ensure nothing bleeds out */
}

/* keep the H3 flush at top */
.report-card h3 {
    margin-top: 0 -10px;
    margin-bottom: 1rem;
    color: #333;
}

/* Comparison table tweaks */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.comparison-table thead th {
    background: #daf0ed; /* match card scheme */
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid #cceaea;
}
.comparison-table tbody td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.comparison-table tbody tr:nth-child(even) {
    background: #f5fafa; /* subtle striping */
}
.sem-form-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Semaglutide form cards */
.option-cards {
    display: flex;
    flex-direction: row; /* side-by-side */
    gap: 20px;
    margin-bottom: 20px;
}

.option-card {
    flex: 1; /* each takes equal width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    position: relative;
}

/* hide native radio */
.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* when selected */
.option-card.active {
    background-color: #e8f5e9;
    border-color: #007f5f;
}

/* constrain image size */
.option-card img {
    max-width: 100px;
    height: auto;
}
.iziToast>.iziToast-body .iziToast-icon{
	top: 19px !important;
}
.iziToast>.iziToast-close{
	/* top:-45px !important; */
    height: 50px !important;
}

.container-checkout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.checkout,
.plan-selection {
    flex: 1 1 450px;
    max-width: 500px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: white;;
}
.logo img {
    height: 80px;
}
h2 {
    margin-top: 10px;
}
.subtext {
    color: #555;
    margin-bottom: 20px;
}
.divider {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #999;
}
.form-group {
    margin-bottom: 15px;
}
input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}
.buy-btn {
    background: #007f5f;
    color: #fff;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.terms {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}
.plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.plan-option {
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}
.plan-option:hover {
    border-color: #007f5f;
}
.plan-option.active {
    background: #007f5f;
    color: #fff;
    border-color: #007f5f;
}
.highlight {
    position: relative;
    background: #e8f5e9;
    border-color: #4caf50;
}
/* .highlight::before {
    content: "Best Value";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
} */
.plan-option {
	position: relative;
	padding-top: 20px; /* adjust for label height */
}

.best-value-label {
	position: absolute;
	top: -10px;
	left: 10px;
	background: #4caf50;
	color: white;
	padding: 2px 6px;
	font-size: 10px;
	border-radius: 4px;
	content: "Best Value"; /* not necessary, just for reference */
}
.coupon {
    margin-top: 15px;
    display: flex;
}
.coupon input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
}
.coupon button {
    background: #007f5f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}
@media (max-width: 768px) {
    .container-checkout {
        /* flex-direction: column; */
        gap: 20px;
    }
}
#eligibilitySection {
    max-width: 800px;
    margin: 30px auto;
}
.hidden {
    display: none;
}
.radio-group,
.conditions-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.radio-group label,
.conditions-grid label {
    flex: 1 1 45%;
}
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.is-invalid,.form-group.error,.form-group.error td{
    border: 1px solid rgb(235, 132, 132) !important;
}
.form-group.error {
    border: 1px solid rgb(235, 132, 132);
    padding: 10px;
    border-radius: 4px;
}
.form-group>label {
    font-weight: bold;
}
.status {
  padding: 50px 30px;
  color: #000;
  background-color: #ffffff;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
  margin-bottom: 20px;
  border-radius: 15px !important;
  margin: 15px !important;
}
.status h1{
	font-size: 1.8em;
}
.status h4{
	font-size: 1.3em;
	margin-bottom: 0;
}
.status p{
	font-size: 1em;
	margin-bottom: 0;
  margin-top: 8px;
  text-align: justify;
}
.product-type-text{
    position: absolute;
    background: white;
    font-weight: bold;
    text-align: center;
    bottom: 5px;
    font-size: 20px;
}
.active .product-type-text{
    background-color: #e8f5e9;
}
.plans-grid > .plan-option:last-child:nth-child(odd) {
  grid-column: span 2;
}
.plan-summary {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}
    .plan-summary img {
        width: 50px;
    }
    .plan-summary h3 {
        margin: 10px 0 5px;
    }
    .features {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }
    .features li {
        margin-bottom: 10px;
        font-size: 14px;
        display: flex;
        align-items: center;
    }
    .features li i {
        color: #007F5F;
        margin-right: 8px;
    }
.coupon {
    margin-top: 15px;
    display: flex;
}
    .coupon input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px 0 0 5px;
    }
    .coupon button {
        background: #007F5F;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 0 5px 5px 0;
        cursor: pointer;
    }

.card-summary {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 500px;
    margin: auto;
}

.coupon-section input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.coupon-section button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
}

.summary-line span:last-child {
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #dee2e6;
    color: #1e88e5;
}

.btn-apply {
    background-color: #007F5F;
    color: white;
    border: none;
}

.btn-apply:hover {
    background-color: #034b39;
}

.label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 6px;
}