/* Reset & Base Styling */
.ppdb-wrapper {
    padding: 30px 20px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Base Animation Setup */
.ppdb-header, .gelombang-group, .layout-card, .final-card {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.gelombang-group:nth-child(1) { animation-delay: 0.1s; }
.gelombang-group:nth-child(2) { animation-delay: 0.2s; }
.gelombang-group:nth-child(3) { animation-delay: 0.3s; }

/* Typography */
.ppdb-main-title, .ppdb-section-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    color: #444;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}
.ppdb-main-title { font-size: 42px; letter-spacing: 1px; }
.ppdb-section-title { font-size: 32px; margin-top: 20px; margin-bottom: 15px; }

.ppdb-subtitle {
    text-align: center;
    color: #27ae60;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 5px 0;
}

.ppdb-ta {
    text-align: center;
    font-size: 15px;
    color: #777;
    margin: 0;
}

/* Titik Pembatas Animasi */
.divider-dots {
    text-align: center;
    margin: 15px 0 35px 0;
}
.divider-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #27ae60;
    border-radius: 50%;
    margin: 0 5px;
    animation: pulse 1.5s infinite ease-in-out;
}
.divider-dots span:nth-child(2) { animation-delay: 0.2s; }
.divider-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Gelombang Section */
.gelombang-group {
    margin-bottom: 30px;
}
.gelombang-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gelombang-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efek garis penghubung di belakang ikon */
.gelombang-card::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(to right, #e2e8f0, #27ae60, #e2e8f0);
    z-index: 1;
}

.gelombang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

/* Steps Item */
.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Hover effect pada lingkaran ikon */
.step-item:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Variasi Warna */
.bg-blue { background: linear-gradient(135deg, #1a73e8, #1557b0); }
.bg-purple { background: linear-gradient(135deg, #8e44ad, #6c3483); }
.bg-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.bg-teal { background: linear-gradient(135deg, #1abc9c, #16a085); }

.bg-blue-light { background: linear-gradient(135deg, #4da3ff, #1a73e8); }
.bg-purple-light { background: linear-gradient(135deg, #b366ff, #8e44ad); }
.bg-orange-light { background: linear-gradient(135deg, #ff9f43, #e67e22); }
.bg-teal-light { background: linear-gradient(135deg, #4ed8be, #1abc9c); }

.step-desc h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #2d3748;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.step-item:hover .step-desc h5 { color: #27ae60; }

.step-desc p {
    font-size: 12px;
    color: #718096;
    margin: 0;
    font-weight: 500;
}
.quota-alert {
    color: #e53e3e !important;
    font-weight: bold !important;
    animation: pulse 2s infinite;
}

/* Bouncing Arrow Down */
.arrow-down-animated {
    text-align: center;
    font-size: 28px;
    color: #a0aec0;
    margin: 25px 0;
    animation: bounce 2s infinite;
}

/* Final Steps (Daftar Ulang) */
.final-steps {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.final-card {
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.border-navy { border-color: #2c3e50; box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1); }
.border-red { border-color: #e74c3c; box-shadow: 0 4px 12px rgba(231, 76, 60, 0.1); }

.final-card:hover {
    transform: scale(1.03);
}
.border-navy:hover { box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2); background: #2c3e50; color: #fff !important;}
.border-red:hover { box-shadow: 0 10px 25px rgba(231, 76, 60, 0.2); background: #e74c3c; color: #fff !important;}

.border-navy:hover .text-navy, .border-navy:hover .final-desc h5, .border-navy:hover .final-desc p { color: #fff; }
.border-red:hover .text-red, .border-red:hover .final-desc h5, .border-red:hover .final-desc p { color: #fff; }

.final-icon { font-size: 32px; transition: transform 0.3s ease; }
.final-card:hover .final-icon { transform: scale(1.1); }
.text-navy { color: #2c3e50; }
.text-red { color: #e74c3c; }

.final-desc h5 { font-size: 15px; margin: 0 0 4px 0; color: #2d3748; font-weight: bold; }
.final-desc p { font-size: 12px; color: #718096; margin: 0; }

/* Sections Blocks */
.layout-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.ppdb-section-block {
    text-align: center;
    padding: 35px 20px;
    margin-bottom: 30px;
}

.section-instruction { font-size: 15px; color: #4a5568; margin-bottom: 8px; }
.section-thanks { font-size: 13px; color: #a0aec0; font-style: italic; margin-bottom: 25px; }

/* Premium Glow Buttons Styling */
.btn-ppdb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-glow-green {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}
.btn-glow-green:hover {
    box-shadow: 0 12px 28px rgba(39, 174, 96, 0.5);
    transform: translateY(-3px);
}

.btn-glow-orange {
    background: linear-gradient(135deg, #d35400, #e67e22);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.3);
}
.btn-glow-orange:hover {
    box-shadow: 0 12px 28px rgba(211, 84, 0, 0.5);
    transform: translateY(-3px);
}

.btn-ppdb:active {
    transform: translateY(-1px);
}

/* Animasi Putar Ringan pada Ikon Tombol saat di-hover */
.btn-ppdb:hover .animate-icon {
    animation: rotateSlow 1s ease infinite alternate;
}

/* Background Gradasi Lembut */
.gradient-bg {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #dcfce7;
}

/* --- KEYFRAMES CSS ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(15deg); }
}

/* Responsive Tablet & Mobile */
@media (max-width: 992px) {
    .gelombang-card::before { display: none; }
    .gelombang-card { flex-wrap: wrap; justify-content: center; gap: 30px; }
    .step-item { flex: none; width: 45%; }
}

@media (max-width: 768px) {
    .step-item { width: 100%; flex-direction: row; text-align: left; gap: 20px; }
    .icon-wrapper { margin-bottom: 0; }
    .final-steps { flex-direction: column; align-items: center; }
    .final-card { width: 100%; max-width: 340px; }
    .ppdb-main-title { font-size: 32px; }
}