/* ==============================================================================
 * PPDB Online Standalone Stylesheet - Elegant Modern Edition
 * ============================================================================== */

:root {
    --primary-color: #5156be;
    --primary-dark: #3b3f8c;
    --primary-light: #eef0fd;
    --secondary-color: #74788d;
    --success-color: #2ab57d;
    --success-light: #e8f9f1;
    --info-color: #4ba6ef;
    --info-light: #eaf5fd;
    --warning-color: #ffbf53;
    --danger-color: #fd625e;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #495057;
    background-color: #f6f8fb;
    overflow-x: hidden;
}

/* Typography Helpers */
.font-size-8  { font-size: 8px !important; }
.font-size-9  { font-size: 9px !important; }
.font-size-10 { font-size: 10px !important; }
.font-size-11 { font-size: 11px !important; }
.font-size-12 { font-size: 12px !important; }
.font-size-13 { font-size: 13px !important; }
.font-size-14 { font-size: 14px !important; }
.font-size-15 { font-size: 15px !important; }
.font-size-16 { font-size: 16px !important; }
.font-size-18 { font-size: 18px !important; }
.font-size-20 { font-size: 20px !important; }
.font-size-22 { font-size: 22px !important; }
.font-size-24 { font-size: 24px !important; }
.font-size-26 { font-size: 26px !important; }
.font-size-28 { font-size: 28px !important; }
.font-size-30 { font-size: 30px !important; }
.font-size-32 { font-size: 32px !important; }
.font-size-36 { font-size: 36px !important; }
.font-size-40 { font-size: 40px !important; }
.font-size-48 { font-size: 48px !important; }

/* Subtle Background Utilities (Bootstrap 5.3+ Compatibility) */
.bg-primary-subtle   { background-color: rgba(81, 86, 190, 0.12) !important; color: #5156be !important; }
.bg-success-subtle   { background-color: rgba(42, 181, 125, 0.12) !important; color: #2ab57d !important; }
.bg-warning-subtle   { background-color: rgba(255, 191, 83, 0.18) !important; color: #b45309 !important; }
.bg-danger-subtle    { background-color: rgba(253, 98, 94, 0.12) !important; color: #fd625e !important; }
.bg-info-subtle      { background-color: rgba(75, 166, 239, 0.12) !important; color: #4ba6ef !important; }
.bg-secondary-subtle { background-color: rgba(116, 120, 141, 0.12) !important; color: #74788d !important; }
.bg-light-subtle     { background-color: #f8fafc !important; color: #495057 !important; }
.bg-dark-subtle      { background-color: #e2e8f0 !important; color: #212529 !important; }

/* Icon Utilities */
.input-group-text i {
    font-size: 15px;
}
.input-group-sm .input-group-text i {
    font-size: 14px;
}

/* ==============================================================================
 * KEYFRAME ANIMATIONS
 * ============================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 181, 125, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(42, 181, 125, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 181, 125, 0);
    }
}

@keyframes pulseWaRing {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.2);
    }
}

@keyframes shimmerGlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ==============================================================================
 * SCROLL REVEAL / ENTRANCE ANIMATION CLASSES
 * ============================================================================== */

.reveal-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==============================================================================
 * CARDS & HOVER EFFECTS
 * ============================================================================== */

.card-custom {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(81, 86, 190, 0.09);
    border-color: rgba(81, 86, 190, 0.25);
}

/* Step Card & Keunggulan Card Micro-interactions */
.step-card {
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5156be, #2ab57d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon-circle {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

.step-card:hover .step-icon-circle {
    transform: scale(1.12) rotate(4deg);
    background-color: #5156be !important;
    color: #fff !important;
}

.keunggulan-card {
    transition: all 0.3s ease;
}

.keunggulan-card:hover .badge-icon {
    transform: scale(1.1) rotate(-3deg);
}

.badge-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==============================================================================
 * HERO CAROUSEL & BANNER
 * ============================================================================== */

#ppdbHeroCarousel {
    border-radius: 18px;
}

.hero-slider-item {
    min-height: 440px;
    display: flex;
    align-items: center;
    border-radius: 18px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-slider-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero-badge-pill {
    animation: floatSlow 4s ease-in-out infinite;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.3s ease;
}

.hero-glass-card:hover {
    transform: translateY(-4px);
}

/* Carousel Caption Animation */
.carousel-item.active .hero-slider-item h1 {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-item.active .hero-slider-item p.lead {
    animation: fadeInUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.carousel-item.active .hero-slider-item .d-flex.flex-wrap {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==============================================================================
 * STEPPER WIZARD
 * ============================================================================== */

.ppdb-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.2rem;
}

.ppdb-stepper::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 45px;
    right: 45px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transition: background 0.3s ease;
}

.ppdb-step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.ppdb-step-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin: 0 auto 8px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ppdb-step-item.active .ppdb-step-circle {
    background-color: #5156be;
    border-color: #5156be;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(81, 86, 190, 0.18);
    transform: scale(1.1);
}

.ppdb-step-item.completed .ppdb-step-circle {
    background-color: #2ab57d;
    border-color: #2ab57d;
    color: #fff;
}

.ppdb-step-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}

.ppdb-step-item.active .ppdb-step-title {
    color: #5156be;
    font-weight: 700;
}

.ppdb-step-item.completed .ppdb-step-title {
    color: #2ab57d;
}

/* ==============================================================================
 * BUTTONS & INTERACTION REFINEMENTS
 * ============================================================================== */

.btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    transition: transform 0.2s ease;
}

.btn:hover i.bx-right-arrow-alt {
    transform: translateX(4px);
}

.btn:hover i.bx-left-arrow-alt {
    transform: translateX(-4px);
}

/* Floating WA Button */
.btn-floating-wa {
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    z-index: 1050;
    background-color: #25d366 !important;
    border: none;
    animation: pulseWaRing 3s infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-floating-wa:hover {
    transform: scale(1.12) rotate(6deg);
}

/* ==============================================================================
 * FAQ ACCORDION REFINEMENTS
 * ============================================================================== */

.accordion-item {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item:hover {
    border-color: rgba(81, 86, 190, 0.3) !important;
    box-shadow: 0 4px 12px rgba(81, 86, 190, 0.05);
}

.accordion-button:not(.collapsed) {
    background-color: #f4f5fd;
    color: #5156be;
    font-weight: 700;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(81, 86, 190, 0.25);
}

@media (max-width: 768px) {
    .hero-slider-item {
        min-height: auto;
        padding: 1.75rem 1.25rem;
    }
}

/* ==============================================================================
 * GELOMBANG / PERIODE SELECTION CARDS
 * ============================================================================== */

.gelombang-select-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gelombang-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    margin-bottom: 0;
}

.gelombang-radio-card:hover {
    border-color: #2ab57d;
    background-color: #f7fdfa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 181, 125, 0.08);
}

.gelombang-radio-card.selected {
    border-color: #2ab57d !important;
    background-color: #e8f9f1 !important;
    box-shadow: 0 4px 14px rgba(42, 181, 125, 0.14);
}

.gelombang-radio-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    transition: all 0.15s ease-in-out;
}

.gelombang-radio-card:hover .form-check-input {
    border-color: #2ab57d;
}

.gelombang-radio-card .form-check-input:checked {
    background-color: #2ab57d;
    border-color: #2ab57d;
    box-shadow: 0 0 0 3px rgba(42, 181, 125, 0.2);
}

.gelombang-radio-card .gelombang-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.gelombang-radio-card.selected .gelombang-title {
    color: #0f5132;
    font-weight: 700;
}

.gelombang-radio-card .gelombang-date {
    font-size: 0.75rem;
    color: #64748b;
}

.gelombang-radio-card.selected .gelombang-date {
    color: #198754;
}

@media (max-width: 576px) {
    .gelombang-radio-card {
        padding: 0.75rem 0.85rem;
    }
    .gelombang-radio-card .badge {
        font-size: 0.65rem !important;
    }
}

