/* Mobile Stepper (Fixed di bawah navbar) */
.mobile-stepper {
    position: fixed;
    top: 60px; /* Sesuaikan dengan tinggi navbar Anda */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 40;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.mobile-step-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    padding: 8px 4px;
    border-radius: 99px;
    background: #f1f5f9;
    transition: var(--transition);
}
.mobile-step-item.active {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}
.mobile-step-item.completed {
    background: var(--green);
    color: white;
}

/* Desktop Layout (2 Kolom) */
.apply-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .apply-layout {
        grid-template-columns: 260px 1fr;
        align-items: start;
    }
    .mobile-stepper {
        display: none;
    }
    .apply-main {
        padding-top: 90px;
    }
}
@media (max-width: 767px) {
    .desktop-stepper {
        display: none;
    }
    .apply-main {
        padding-top: 120px;
    } /* Ruang untuk mobile stepper */
}

/* Vertical Stepper (Desktop) */
.desktop-stepper {
    background: white;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.v-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    position: relative;
}
.v-step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -12px;
    width: 2px;
    background: var(--border);
    z-index: 1;
    transition: var(--transition);
}
.v-step-item.completed:not(:last-child)::after {
    background: var(--green);
}
.v-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    z-index: 2;
    transition: var(--transition);
}
.v-step-item.active .v-step-number {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.15);
}
.v-step-item.completed .v-step-number {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.v-step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}
.v-step-item.active .v-step-label {
    color: var(--text);
}
.v-step-item.completed .v-step-label {
    color: var(--green);
}

/* ========================= SUCCESS PAGE BASE ========================= */
.success-page {
    min-height: 100vh;
    padding: 50px 20px 60px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(16, 185, 67, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255, 140, 0, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 212, 0, 0.05) 0%,
            transparent 45%
        ),
        #fafbfc;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.success-wrapper {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: successFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= CONFETTI ========================= */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    opacity: 0;
    animation: confettiFall 4s ease-in forwards;
}
.confetti:nth-child(1) {
    left: 10%;
    background: #ff8c00;
    animation-delay: 0.1s;
}
.confetti:nth-child(2) {
    left: 20%;
    background: #ffd400;
    animation-delay: 0.4s;
    width: 8px;
    height: 14px;
}
.confetti:nth-child(3) {
    left: 30%;
    background: #10b943;
    animation-delay: 0.7s;
    border-radius: 50%;
}
.confetti:nth-child(4) {
    left: 40%;
    background: #ff8c00;
    animation-delay: 0.2s;
    width: 6px;
    height: 16px;
}
.confetti:nth-child(5) {
    left: 50%;
    background: #ffd400;
    animation-delay: 0.9s;
}
.confetti:nth-child(6) {
    left: 60%;
    background: #10b943;
    animation-delay: 0.5s;
    width: 12px;
    height: 8px;
}
.confetti:nth-child(7) {
    left: 70%;
    background: #ff8c00;
    animation-delay: 0.3s;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}
.confetti:nth-child(8) {
    left: 80%;
    background: #ffd400;
    animation-delay: 0.8s;
}
.confetti:nth-child(9) {
    left: 90%;
    background: #10b943;
    animation-delay: 0.6s;
    width: 8px;
    height: 12px;
}
.confetti:nth-child(10) {
    left: 15%;
    background: #ff8c00;
    animation-delay: 1.1s;
    border-radius: 50%;
}
.confetti:nth-child(11) {
    left: 55%;
    background: #ffd400;
    animation-delay: 1.3s;
    width: 10px;
    height: 14px;
}
.confetti:nth-child(12) {
    left: 75%;
    background: #10b943;
    animation-delay: 1.5s;
}
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========================= SUCCESS ICON ========================= */
.success-icon-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(16, 185, 67, 0.15);
    animation: pulseRing 2s ease-out infinite;
}
.success-icon-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(16, 185, 67, 0.1);
    animation: pulseRing 2s ease-out infinite 1s;
}
@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.success-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b943, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 30px rgba(16, 185, 67, 0.3),
        0 0 0 6px rgba(16, 185, 67, 0.08);
    position: relative;
    z-index: 2;
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes iconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.success-check {
    width: 90px;
    height: 90px;
}
.success-circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}
.success-path {
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 1.5s ease-out 1s infinite;
}
@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================= CONTENT ========================= */
.success-content {
    text-align: center;
    margin-bottom: 24px;
}
.success-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #10b943, #22c55e 50%, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFade 0.6s ease-out 0.4s both;
}
@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.success-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    animation: titleFade 0.6s ease-out 0.5s both;
}
.success-subtitle strong {
    color: var(--text);
    font-weight: 700;
}

/* ========================= SUMMARY CARD ========================= */
.success-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 15px 40px rgba(16, 185, 67, 0.08);
    border: 1px solid rgba(16, 185, 67, 0.1);
    margin-bottom: 18px;
    animation: cardSlide 0.6s ease-out 0.6s both;
}
@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-header-simple {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.card-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 140, 0, 0.08);
    color: #d97706;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 140, 0, 0.15);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8c00;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}
.card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.card-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.card-info-item:hover {
    background: white;
    border-color: rgba(255, 140, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.card-info-item i {
    font-size: 18px;
    color: var(--orange);
    margin-top: 2px;
    flex-shrink: 0;
}
.card-info-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.info-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}
.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

/* ========================= NOTE ========================= */
.success-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 22px;
    animation: cardSlide 0.6s ease-out 0.7s both;
}
.success-note i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}
.success-note span {
    font-size: 13px;
    line-height: 1.55;
}
.wa-note {
    background: linear-gradient(
        135deg,
        rgba(37, 211, 102, 0.08),
        rgba(37, 211, 102, 0.02)
    );
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #15803d;
    align-items: center;
    justify-content: center;
}
.wa-note i {
    color: #25d366;
}

/* ========================= BUTTONS ========================= */
.success-actions {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
    animation: cardSlide 0.6s ease-out 0.8s both;
}
.btn-success-outline,
.btn-success-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-success-outline {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-success-outline:hover {
    border-color: var(--text-light);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.btn-success-primary {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: white;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.25);
}
.btn-success-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 140, 0, 0.35);
    color: white;
}

/* ========================= FOOTER ========================= */
.success-footer {
    text-align: center;
    animation: cardSlide 0.6s ease-out 0.9s both;
}
.success-footer p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}
.success-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}
.success-footer a:hover {
    text-decoration: underline;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 576px) {
    .success-page {
        padding: 0px 16px 40px;
    }
    .success-title {
        font-size: 24px;
    }
    .success-subtitle br {
        display: none;
    }
    .card-info-grid {
        grid-template-columns: 1fr;
    }
    .success-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================= FAILED PAGE BASE ========================= */
.failed-page {
    min-height: 100vh;
    padding: 50px 20px 60px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(220, 38, 38, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255, 140, 0, 0.08) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(239, 68, 68, 0.05) 0%,
            transparent 45%
        ),
        #fafbfc;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.failed-wrapper {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: failedFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes failedFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================= FAILED ICON ========================= */
.failed-icon-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.failed-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.15);
    animation: pulseRingFail 2s ease-out infinite;
}
.failed-icon-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    animation: pulseRingFail 2s ease-out infinite 1s;
}
@keyframes pulseRingFail {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.failed-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 30px rgba(220, 38, 38, 0.3),
        0 0 0 6px rgba(220, 38, 38, 0.08);
    position: relative;
    z-index: 2;
    animation: iconBounceFail 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes iconBounceFail {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.failed-x {
    width: 90px;
    height: 90px;
}
.failed-circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
}
.failed-path {
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawX 1.5s ease-out 1s infinite;
}
@keyframes drawX {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========================= CONTENT ========================= */
.failed-content {
    text-align: center;
    margin-bottom: 24px;
}
.failed-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #dc2626, #ef4444 50%, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFadeFail 0.6s ease-out 0.4s both;
}
@keyframes titleFadeFail {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.failed-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    animation: titleFadeFail 0.6s ease-out 0.5s both;
}
.failed-subtitle strong {
    color: var(--text);
    font-weight: 700;
}

/* ========================= SUMMARY CARD ========================= */
.failed-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        0 15px 40px rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.1);
    margin-bottom: 18px;
    animation: cardSlideFail 0.6s ease-out 0.6s both;
}
@keyframes cardSlideFail {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-header-simple-fail {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.card-badge-status-fail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(220, 38, 38, 0.15);
}
.status-dot-fail {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    animation: dotPulseFail 1.5s ease-in-out infinite;
}
@keyframes dotPulseFail {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}
.card-info-grid-fail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.card-info-item-fail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.card-info-item-fail:hover {
    background: white;
    border-color: rgba(220, 38, 38, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.card-info-item-fail i {
    font-size: 18px;
    color: #dc2626;
    margin-top: 2px;
    flex-shrink: 0;
}
.card-info-item-fail > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.info-label-fail {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}
.info-value-fail {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

/* ========================= NOTE ========================= */
.failed-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 22px;
    animation: cardSlideFail 0.6s ease-out 0.7s both;
}
.failed-note i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}
.failed-note span {
    font-size: 13px;
    line-height: 1.55;
}
.warn-note {
    background: linear-gradient(
        135deg,
        rgba(255, 140, 0, 0.08),
        rgba(255, 140, 0, 0.02)
    );
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: #92400e;
    align-items: center;
    justify-content: center;
}
.warn-note i {
    color: #ff8c00;
}

/* ========================= BUTTONS ========================= */
.failed-actions {
    display: grid;
    gap: 12px;
    margin-bottom: 40px;
    animation: cardSlideFail 0.6s ease-out 0.8s both;
}
.btn-failed-outline,
.btn-failed-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-failed-outline {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-failed-outline:hover {
    border-color: var(--text-light);
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.btn-failed-primary {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: white;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.25);
}
.btn-failed-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 140, 0, 0.35);
    color: white;
}

/* ========================= FOOTER ========================= */
.failed-footer {
    text-align: center;
    animation: cardSlideFail 0.6s ease-out 0.9s both;
}
.failed-footer p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}
.failed-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}
.failed-footer a:hover {
    text-decoration: underline;
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 576px) {
    .failed-page {
        padding: 0px 20px 40px;
    }
    .failed-title {
        font-size: 24px;
    }
    .failed-subtitle br {
        display: none;
    }
    .card-info-grid-fail {
        grid-template-columns: 1fr;
    }
    .failed-actions {
        grid-template-columns: 1fr;
    }
}
