@media (max-width: 768px) {
    .container > div[style*="max-width"] {
        padding: 0 15px;
    }
    
    .container > div[style*="max-width"] > div[style*="background: white"] {
        padding: 20px !important;
    }
    
    .container > div[style*="max-width"] > div[style*="background: white"] > form > div[style*="margin-bottom"] > div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }
}

/* SPMB Flowchart Modal Styles */
.spmb-flowchart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spmb-flowchart-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.flowchart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.flowchart-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.spmb-flowchart-modal.active .flowchart-modal-content {
    transform: scale(1);
}

.flowchart-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10002;
}

.flowchart-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.flowchart-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color, #0b5486);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color, #f39c12);
    text-align: center;
}

.flowchart-modal-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.btn-daftar-sekarang {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color, #0b5486) 0%, var(--primary-light, #1a7ab8) 100%);
    color: #fff;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(11, 84, 134, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-daftar-sekarang::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-daftar-sekarang:hover::before {
    left: 100%;
}

.btn-daftar-sekarang:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 84, 134, 0.4);
    background: linear-gradient(135deg, var(--primary-light, #1a7ab8) 0%, var(--primary-color, #0b5486) 100%);
}

.btn-daftar-sekarang:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(11, 84, 134, 0.3);
}

.btn-daftar-sekarang i {
    margin-right: 8px;
    font-size: 16px;
}

.flowchart-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: 1fr;
    gap: 10px 5px;
    align-items: center;
    justify-items: center;
    max-width: 100%;
    margin: 20px auto;
    position: relative;
    padding: 20px;
}

.flowchart-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.step-icon {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.35), 
                0 0 0 4px rgba(255, 107, 53, 0.1),
                inset 0 2px 5px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.step-icon-circle {
    border-radius: 50%;
}

.step-icon i {
    font-size: 56px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.flowchart-step:hover .step-icon {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.45), 
                0 0 0 4px rgba(255, 107, 53, 0.15),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.step-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.flowchart-arrow {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.flowchart-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
}

.step-1 { grid-column: 1; grid-row: 1; }
.arrow-1 { grid-column: 2; grid-row: 1; }
.step-2 { grid-column: 3; grid-row: 1; }
.arrow-2 { grid-column: 4; grid-row: 1; }
.step-3 { grid-column: 5; grid-row: 1; }
.arrow-3 { grid-column: 6; grid-row: 1; }
.step-4 { grid-column: 7; grid-row: 1; }
.arrow-4 { grid-column: 8; grid-row: 1; }
.step-5 { grid-column: 9; grid-row: 1; }

/* Responsive Flowchart */
@media (max-width: 1200px) {
    .flowchart-container {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px 10px;
    }
    
    .step-1 { grid-column: 1; grid-row: 1; }
    .arrow-1 { grid-column: 2; grid-row: 1; }
    .step-2 { grid-column: 3; grid-row: 1; }
    .arrow-2 { grid-column: 4; grid-row: 1; }
    .step-3 { grid-column: 5; grid-row: 1; }
    .arrow-3 { grid-column: 5; grid-row: 1 / 2; transform: rotate(90deg); align-self: end; padding-bottom: 20px; }
    .step-4 { grid-column: 4; grid-row: 2; }
    .arrow-4 { grid-column: 3; grid-row: 2; }
    .step-5 { grid-column: 2; grid-row: 2; }
    
    .step-icon {
        width: 120px;
        height: 120px;
    }
    
    .step-icon i {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .flowchart-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(9, auto);
        gap: 20px;
    }
    
    .step-1, .step-2, .step-3, .step-4, .step-5,
    .arrow-1, .arrow-2, .arrow-3, .arrow-4 {
        grid-column: 1;
    }
    
    .step-1 { grid-row: 1; }
    .arrow-1 { grid-row: 2; transform: rotate(90deg); }
    .step-2 { grid-row: 3; }
    .arrow-2 { grid-row: 4; transform: rotate(90deg); }
    .step-3 { grid-row: 5; }
    .arrow-3 { grid-row: 6; transform: rotate(90deg); }
    .step-4 { grid-row: 7; }
    .arrow-4 { grid-row: 8; transform: rotate(90deg); }
    .step-5 { grid-row: 9; }
    
    .step-icon {
        width: 90px;
        height: 90px;
    }
    
    .step-icon i {
        font-size: 36px;
    }
    
    .flowchart-modal-content {
        padding: 20px;
    }
    
    .flowchart-modal-title {
        font-size: 22px;
    }
    
    .btn-daftar-sekarang {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .flowchart-modal-footer {
        margin-top: 30px;
        padding-top: 20px;
    }
}
