@import "tailwindcss";

.flowchart-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.flowchart-line {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    top: 67%;
    transform: translateY(-50%);
    animation: movingLine 20s infinite linear;
}

@keyframes movingLine {
    0% {
        width: 0;
        right: 0;
    }

    100% {
        width: 100%;
        right: 0;
    }
}

.flowchart-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 10;
}

.flowchart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #3b82f6;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-circle.secondary {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.step-label {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 150px;
    font-weight: 500;
}

.step-label.primary {
    border-top: 4px solid #3b82f6;
}

.step-label.secondary {
    border-top: 4px solid #8b5cf6;
}

/* Single Decision Section */
.flowchart-decision {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.decision-box {
    background: linear-gradient(90deg, #10b981, #3b82f6);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.decision-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.decision-question {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.question-mark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-left: 20px;
}

.decision-text {
    font-size: 22px;
    font-weight: bold;
    color: #1f2937;
}

.decision-description {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.decision-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.decision-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-yes {
    background: #10b981;
    color: white;
}

.btn-no {
    background: #ef4444;
    color: white;
}

.decision-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .flowchart-steps {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .flowchart-step {
        width: calc(50% - 30px);
        margin-bottom: 30px;
    }

    .step-label {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .flowchart-step {
        width: 100%;
        max-width: 250px;
    }

    .decision-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .decision-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .decision-content {
        padding: 20px;
    }

    .decision-text {
        font-size: 18px;
    }

    .question-mark {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-left: 15px;
    }
}

.step-label-flash {
    background: #ffc600;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 150px;
    font-weight: 500;
}

.flow-connector {
    display: flex;
    align-items: center;

    margin: 2rem 0;
    position: relative;
}

.flow-connector .label {
    margin-left: 1rem;
    font-weight: 700;
    color: #374151;
    background: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.flow-connector svg {
    width: 48px;
    height: 160px;
    display: block;
}

.flow-connector .line {
    stroke: #ef4444;
    stroke-width: 2;
    fill: none;
}

.flowchart-line-2 {
    width: 100%;
    display: block;
    position: absolute;
    height: 4px;
    background: #d8d6d6;
    border-radius: 4px;
    top: 67%;
}

.step-label.primary:hover {
    transition: all ease-in-out 1s;
    transform: rotatey(1deg);
    --tw-shadow: 0 25px 10px -12px var(--tw-shadow-color, rgb(0 0 0 / 0.25));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}

.agar .step-label.primary {
    border-top: none;
    background: #ffc600;
    border-radius: 290px;
}

.flowchart-step.agar.mt\[20px\] {
    margin-top: 21px;
}

.flowchart-step.agar.\!mb\[65px\] {
    margin-bottom: 70px;
}

.flowchart-line {
    background: #3b82f6;
    height: 4px;
    position: absolute;
    top: 67%;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.flowchart-line-2 {
    background: #d6d6d6;
    height: 4px;
    position: absolute;
    top: 67%;
    left: 0;
    right: 0;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.active-line {
    opacity: 1 !important;
}


.animate-step {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-step.show {
    opacity: 1;
    transform: translateY(0);
}


.path-section {
    transition: all 0.6s ease;
}
.level-btn {
  padding: 19px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #2371ff;
  width: 250px;
  padding: 26px !important;
  text-transform: initial !important;
}
.level-btn {
  background: #fff !important;
  border-radius: 11px !important;
  border: 2px solid #6303ef !important;
  display: grid !important;
  line-height: 1.5 !important;
}
@media (max-width:1400px){
    .flowchart-line , .flowchart-line-2{
        display:none;
    }
}
@media (min-width:768px) and (max-width:1400px){
    .elementor-widget-flow_pte{
        display:none;
    }
}
.bg-white.p-8 p {
  line-height: 2.1;
}
.level-btn:hover {
  box-shadow: 0px 0px 8px 3px #b9b9b9;
}
.gray {
  color: gray;
  padding-top: 8px;
}
