/* Grundindstillinger */
body {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    background-color: #FAFCFC;
    color: #333333;
    margin: 0;
    padding: 0;
}

/* HEADER */
.simple-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 40px;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.logo-img {
    width: 200px;
    max-width: 100%;
    height: auto;
}

/* Responsiv skalering */
@media (max-width: 1024px) {
    .logo-img {
        width: 175px;
    }
}

@media (max-width: 767px) {
    .simple-header {
        justify-content: center;
        padding: 15px 20px;
    }

    .logo-img {
        width: 150px;
    }

    .button-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .button-row button {
        width: 100%;
    }

    .button-row .backBtn {
        order: 2;
    }

    .button-row button:not(.backBtn) {
        order: 1;
    }
}

/* Containeren holder det hele centreret */
.container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(149, 157, 165, 0.05)
}

/* FORM element */
form {
    padding: 10px;
}


/* Overskrifter */
h1,
h2,
h4 {
    color: #333333;
    margin-bottom: 1rem;
}

/* Inputfelter og knapper */
input[type="number"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 5px;
    accent-color: #C9E7DF;
    cursor: pointer;
}

button {
    padding: 16px 45px 16px 45px;
    margin: 0.5rem 0.5rem 1rem 0;
    background-color: #f3bafd;
    color: #333333;
    border: 1px solid #f3bafd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover {
    border: 1px solid #f3bafd;
    background-color: #ffffff;
}

label {
    display: block;
    margin-bottom: 10px;
}

/* Checkbox-lister */
form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

section {
    margin-top: 2rem;
}

/* Skjul sektioner dynamisk */
.hidden {
    display: none !important;
}

.font-bold {
    font-weight: bold;
}

/* Resultat */
#bmi-result {
    font-weight: bold;
    margin-top: 1rem;
}

/* Iframe styling */
#booking iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Afvisningstekst */
#rejected p {
    color: red;
    font-weight: bold;
    margin-top: 1rem;
}
p#call-tel {
    color: #333;
    font-weight: 400;
    margin-top: 1rem;
}

.backBtn {
    background-color: #ccc;
    border: 1px solid #ccc;
    color: #000;
}

.backBtn:hover {
    background-color: #bbb;
    border: 1px solid #ccc;
}

.bmi-box {
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #FAFCFC;
    padding: 0.8rem 1rem;
    border-left: 4px solid #C9E7DF;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.button-row button {
    min-width: 120px;
}

/* PROCESS BAR */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.circle-active {
    background-color: #C9E7DF;
    color: #000;
}

.line {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.line-active {
    background-color: #C9E7DF;
}

/* MOBILE STYLING */
@media (max-width: 1024px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
        border-radius: 8px;
    }

    h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    h2 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    input[type="number"],
    input[type="checkbox"] {
        font-size: 1rem;
    }

    label {
        font-size: 1rem;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 8px;
    }

    .circle {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .line {
        width: 30px;
    }

    #booking iframe {
        height: 400px;
    }

    .bmi-box {
        font-size: 1rem;
    }

    .simple-header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo-img {
        width: 150px;
    }
}

/* Treatment Comparison Boxes */
.bmi-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.treatment-box-wrapper {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
}

.treatment-box-wrapper .treatment-box {
    flex: 1;
}

.bmi-info,
.treatment-box,
.chart-box {
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-size: 1.1rem;
}

.treatment-box.red {
    border-left: 6px solid #cb6f63;
}

.treatment-box.blue {
    border-left: 6px solid #70a4b6;
}

.treatment-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.chart-box {
    height: 400px;
}

.chart-box canvas {
    width: 100%;
    height: 100%;
}


.treatment-box-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.treatment-box-group .treatment-box {
    flex: 1;
}

/* Abonnement information */
.subscription-info {
    margin: 3rem auto;
    max-width: 1000px;
    /* background-color: #fff; */
    border-radius: 12px;
    padding: 2rem;
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05); */
}

.subscription-content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.subscription-text {
    flex: 1 1 400px;
}

.subscription-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.subscription-text .price {
    color: #19957c;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.subscription-text .features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.subscription-text .features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.subscription-text .features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #c3a1ec;
    border-radius: 50%;
}

.cta-button {
    display: inline-block;
    background-color: #c9e7df;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #b8dbd2;
}

.subscription-image {
    flex: 1 1 300px;
    text-align: center;
}

.subscription-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .subscription-content {
        flex-direction: column;
        text-align: center;
    }

    .subscription-text {
        padding-bottom: 1rem;
    }
}



@media (min-width: 768px) {
    .bmi-boxes {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .bmi-info,
    .treatment-box,
    .chart-box {
        flex: 1 1 calc(48% - 1rem);
    }

    .chart-box {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .treatment-box-wrapper {
        flex-direction: column;
    }

    .treatment-box-group {
        flex-direction: column;
    }

    .chart-box {
        height: 300px;
    }
}

.bmi-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bmi-info .bmi-metric {
    flex: 1;
    text-align: center;
}

.bmi-info .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bmi-info .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.bmi-info .divider {
    width: 1px;
    height: 40px;
    background: repeating-linear-gradient(to bottom,
            #ccc,
            #ccc 2px,
            transparent 2px,
            transparent 4px);
}

/* Loading Screen */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner img {
    width: 120px;
    animation: spinTwice 1.5s linear forwards;
}

@keyframes spinTwice {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(540deg);
    }
}

#chart-note {
    margin: 10px;
    font-size: 10px;
}

.findPharmacy {
    margin-top: 100px;
}

@keyframes pulseCycle {
    0% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.1);
    }
    20% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

#goToBookingBtn {
    width: 100%;
    margin-top: 50px;
    display: block;
    animation: pulseCycle 4s infinite;
}

.accordion {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background-color: transparent;
  padding: 1rem;
  font-weight: bold;
  border: 1px solid #ccc; /* Add a subtle grey border */
  border-radius: 20px;      /* Slight rounding for visual polish */
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-toggle:hover {
  background-color: rgba(243, 186, 253, 0.1); /* subtle hover effect */
  border-color: #aaa; /* darker border on hover */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content.show {
  max-height: 2000px; /* Large enough to fit all content */
}
