/* ================
    MOBILE VERSION
================= */
:root {
    --amber: #E8823A;
    --amber-light: #F4A96A;
    --teal: #0B8293;
    --teal-light: rgba(11, 130, 147, 0.25);
    --cream: #FDF7F0;
    --dark: #07090F;
    --gray: #4d4a48;
    --line: #D9CFC6;
}

.schema {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.schema h2 {
    margin-left: 0;
    margin-right: auto;
    line-height:2.5rem;
}

.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.step {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.5s ease both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }
.step:nth-child(5) { animation-delay: 0.5s; }
.step:nth-child(6) { animation-delay: 0.6s; }

.card {
    background: #F8F8F8;
    border: 1px solid #E9E9E9;
    border-radius: 16px;
    padding: 2rem .4rem;
    width: 100%;
    max-width: 52rem;
    text-align: center;
    box-shadow: none;
    cursor: default;
    margin-top:.7rem;
    animation: fadeUp .4s ease both; 
}

.card:hover, .final-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-3px); 
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--amber);
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.card-body {
    color: var(--gray);
    line-height: 1.6;
    font-weight: 300;
}

.card-body strong {
    color: var(--dark);
    font-weight: 500;
}

/* Connector arrow */
.connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--line), var(--amber-light));
    position: relative;
    flex-shrink: 0;
}

.fork .fork-branch:nth-of-type(2) .connector {
    background: linear-gradient(180deg,rgba(255, 255, 255, 0.2) 0%, rgba(11, 130, 147, 0.6) 39%);
}

.fork .fork-branch:nth-of-type(2) .connector::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(11, 130, 147, .6);
}

.connector::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--amber-light);
}

/* Fork section */
.fork {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 3rem;
    animation: fadeUp 0.5s ease 0.4s both;
}

.fork-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.fork-label {
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 5px 14px;
    border-radius: 1.2rem;
    margin-bottom: 0;
}

.fork-label.amber { background: var(--amber); color: #fff; }
.fork-label.teal  { background: var(--teal);  color: #fff; }

.fork-connector {
    width: 2px;
    height: 20px;
    background: var(--line);
}

/* Fork top bar */
.fork-bar-wrap {
    width: 100%;
    display: flex;
    align-items: flex-start;
    position: relative;
    height: 32px;
    animation: fadeUp 0.5s ease 0.38s both;
}

.fork-bar {
    position: absolute;
    top: 20%;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--line);
}

.fork-bar::before,
.fork-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 2px;
    height: 32px;
    background: var(--line);
}
.fork-bar::before { left: 0; }
.fork-bar::after  { right: 0; }

/* Merge connector */
.merge-bar-wrap {
    width: 100%;
    position: relative;
    height: 64px;
    animation: fadeUp 0.5s ease 0.52s both;
}

.merge-bar {
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: linear-gradient(to right, var(--amber-light), var(--teal-light));
}

.merge-bar::before,
.merge-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 2px;
}

.merge-bar::before {
    height: 6.5rem;
}

.merge-bar::after {
    height: 9rem;
}

.merge-bar::before { left: 0; background: var(--amber-light); }
.merge-bar::after  { right: 0; background: var(--teal-light); }

.merge-arrow {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--amber-light);
}

.merge-arrow::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: var(--amber-light);
}

/* Final CTA */
.final-card {
    background: #F8F8F8;
    border: 1px solid #E9E9E9;
    border-radius: 16px;
    padding: 2rem .4rem;
    text-align: center;
    max-width: 52rem;
    width: 100%;
    animation: fadeUp 0.5s ease 0.65s both;
    margin-top: 3.2rem;
}

.final-card .card-body {
    margin-top: .8rem;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(180, 180, 180, 0.3);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.dot.amber { background: var(--amber-light); }
.dot.teal  { background: var(--teal-light); }

/* Start label */
.start-label {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--amber);
    font-weight: 600;
    animation: fadeUp 0.5s ease 0.75s both;
}

.start-label::before, .start-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--amber-light);
    opacity: 0.4;
}

/* Channel icons */
.channels {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
}

.channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--gray);
    font-weight: 400;
}

.channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.channel-icon.phone { background: #FFF0E5; }
.channel-icon.mail  { background: #E8F5F8; }
.channel-icon.web   { background: #F0F5FF; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
    .fork { grid-template-columns: 1fr; }
    .fork-bar, .merge-bar { display: none; }
    .fork-bar-wrap, .merge-bar-wrap { height: 12px; }
}

form {
    margin-top: 2rem;
}

input[type="submit"] {
    align-self: flex-end;
    background-color:rgba(11, 130, 147, 0.25);
    font-size:1.6rem;
    color:#0b8293;
    font-family: "Josefin Sans", sans-serif;
    border: 2px solid rgba(11, 130, 147, 0);
    border-radius: 6px;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

input[type="submit"]:hover {
    background-color: #FFFFFF;
    border: 2px solid rgba(11, 130, 147, 0.25);
    cursor: pointer;
}


/* ================
    TABLET VERSION
================= */
@media (min-width: 768px) {
    .fork-branch {
        width: 45%;
    }

    .final-card, .card {
        padding: 2rem 1.4rem;
    }
}


/* ================
    DESKTOP VERSION 
================= */
@media (min-width: 1024px) {
    .schema {
        width: 60vw;
    }

    .fork-branch {
        width: 45%;
    }
}