/* ============================================
   WHISTLEBLOWING SYSTEM - BPRS AMANAH BANGSA
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafafa;
}

/* Material Icons */
.material-icons {
    vertical-align: middle;
    user-select: none;
}

/* ============================================
   BANNER SECTION
   ============================================ */
.wbs-banner {
    background: linear-gradient(135deg, #c78100 0%, #ad6200 100%);
    padding: 100px 0 60px;
    color: rgb(36, 31, 29);
    position: relative;
    overflow: hidden;
}

.wbs-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wbs-banner-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0;
}

.wbs-banner-subtitle {
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: -10px;
}

.wbs-banner-text {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: #ff6b6b;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}

.btn-primary .material-icons {
    font-size: 20px;
}

.btn-outline-secondary {
    border: 2px solid #dee2e6;
    color: #6c757d;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

.btn-success {
    background: #51cf66;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-success:hover {
    background: #40c057;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(81,207,102,0.3);
}

/* ============================================
   COMMITMENT SECTION
   ============================================ */
.wbs-commitment {
    background: white;
    padding: 80px 0;
}

.commitment-box {
    background: #f8f9fa;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,107,107,0.1);
    transition: all 0.3s;
}

.commitment-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255,107,107,0.1);
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ff6b6b;
    border-radius: 2px;
}

.text-primary {
    color: #ff6b6b !important;
}

/* ============================================
   TAB LIST STYLING - TIDAK SCROLL KE ATAS
   ============================================ */
.wbs-tab-list .list-group-item {
    border: none;
    border-radius: 15px !important;
    margin-bottom: 10px;
    padding: 18px 25px;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid transparent;
    /* Mencegah scroll ke atas */
    scroll-margin-top: 9999px;
}

.wbs-tab-list .list-group-item.active {
    background: #ff6b6b;
    color: white;
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.3);
    border-color: #ff6b6b;
}

.wbs-tab-list .list-group-item .material-icons {
    font-size: 22px;
}

.wbs-tab-list .list-group-item.active .material-icons {
    color: white;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.wbs-tab-content .card {
    border-radius: 20px;
    transition: all 0.3s;
    overflow: hidden;
}

.wbs-tab-content .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.wbs-tab-content .card-title .material-icons {
    font-size: 28px;
}

/* Smooth transition untuk tab */
.tab-pane.fade {
    transition: opacity 0.3s ease;
}

.tab-pane.fade.show {
    opacity: 1;
}

/* ============================================
   ATTENTION CARDS
   ============================================ */
.attention-card {
    background: white;
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.attention-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255,107,107,0.15);
    border-color: #ff6b6b;
}

.attention-card .material-icons {
    transition: all 0.3s;
}

.attention-card:hover .material-icons {
    transform: scale(1.2);
}

/* ============================================
   FORM STYLING
   ============================================ */
.step-indicator {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    margin: 0 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.step-indicator.active {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
    transform: scale(1.1);
}

/* Form Steps */
.form-step {
    padding: 20px 0;
}

.form-step h5 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.form-step h5 .material-icons {
    margin-right: 10px;
    color: #ff6b6b;
}

/* Form Controls */
.form-control-lg {
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    transition: all 0.3s;
    font-size: 1rem;
    height: auto;
}

.form-control-lg:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.1);
    outline: none;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Select styling */
select.form-control-lg {
    height: auto;
    padding: 15px 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 45px;
}

select.form-control-lg:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Custom checkbox */
.custom-control-label {
    padding-top: 2px;
    cursor: pointer;
    font-size: 0.95rem;
}

.custom-control-label::before {
    border-radius: 5px;
    border: 2px solid #dee2e6;
    width: 1.2rem;
    height: 1.2rem;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6b6b;
    border-color: #ff6b6b;
}

/* Invalid field styling */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220,53,69,0.1) !important;
}

/* Form text */
.form-text {
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ============================================
   MOBILE ACCORDION
   ============================================ */
.wbs-mobile .card {
    border-radius: 15px !important;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.wbs-mobile .card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.wbs-mobile .btn-link {
    color: #333;
    text-decoration: none;
    padding: 18px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
}

.wbs-mobile .btn-link:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.wbs-mobile .btn-link .material-icons {
    font-size: 22px;
}

.wbs-mobile .card-body {
    background: #f8f9fa;
    padding: 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-white-50 {
    color: rgba(255,255,255,0.8) !important;
}

.min-vh-50 {
    min-height: 50vh;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wbs-page section {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   SWEETALERT CUSTOM STYLES
   ============================================ */
.swal2-popup {
    border-radius: 20px !important;
    font-family: 'Poppins', sans-serif !important;
}

.swal2-title {
    color: #333 !important;
    font-weight: 600 !important;
}

.swal2-confirm {
    border-radius: 50px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    border-radius: 50px !important;
    padding: 10px 30px !important;
    font-weight: 600 !important;
}

.swal2-toast {
    border-radius: 50px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

/* ============================================
   TOMBOL BACK TO HOME DI BAWAH FORM
   ============================================ */
.border-top {
    border-top: 2px solid #f0f0f0 !important;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-primary:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,107,107,0.4);
    text-decoration: none;
}

.btn-outline-primary .material-icons {
    font-size: 20px;
}

.btn-outline-primary.btn-lg {
    font-size: 1.1rem;
}

/* Text small */
.small {
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .wbs-banner-title {
        font-size: 3.5rem;
    }
    
    .wbs-banner-subtitle {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .wbs-banner {
        padding: 80px 0 40px;
    }
    
    .wbs-banner-title {
        font-size: 3rem;
    }
    
    .wbs-banner-subtitle {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .wbs-banner {
        padding: 60px 0 30px;
    }
    
    .wbs-banner-title {
        font-size: 2.5rem;
    }
    
    .wbs-banner-subtitle {
        font-size: 1.8rem;
    }
    
    .wbs-banner-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .wbs-tab-content .card-body {
        padding: 1.5rem !important;
    }
    
    .attention-card {
        margin-bottom: 15px;
    }
    
    .card-body.p-5 {
        padding: 2rem !important;
    }
    
    .step-indicator {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin: 0 5px;
    }
    
    .form-step h5 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .wbs-banner-title {
        font-size: 2rem;
    }
    
    .wbs-banner-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn-next, .btn-prev {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .float-right {
        float: none !important;
    }
    
    .form-step button {
        margin-top: 10px;
    }

    @media (max-width: 576px) {
    .btn-outline-primary.btn-lg {
        width: 100%;
        padding: 12px 20px;
    }
}
}

/* Print styles */
@media print {
    .wbs-banner, .wbs-types, .wbs-attention {
        display: none;
    }
    
    .wbs-form {
        background: white;
        padding: 20px;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}