.search-wrapper {
    background: #fff;
    border: 1px solid #fff;
    transition: box-shadow 0.2s ease-in-out;
}

.search-wrapper .form-label {
    font-size: 0.95rem;
    color: #374151;
}

.search-wrapper input.form-control-lg {
    border-radius: 0.5rem;
}

.search-wrapper input.form-control-lg:focus {
    border-color: #111827;
    box-shadow: none;
}

.form-control-lg,
.form-select-lg {
    border-radius: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #111827;
}

.select2-container--default .select2-selection--single {
    height: calc(2.875rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background-color: #fff;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #111827 !important;
    box-shadow: none !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    font-size: 1.125rem;
    line-height: 1.8rem;
    color: #111827;
    padding-left: 0;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 15px;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #111827;
    color: #fff;
}

.card {
    border-radius: 1rem;
}

.permohonan-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    font-size: 0.9rem;
    position: relative;
    z-index: 1000;
}

.alert-bar {
    min-height: 40px;
    padding-right: 2.5rem;
    /* space for mobile close button */
}

.alert-content {
    flex: 1;
    flex-wrap: wrap;
}

.alert-text {
    white-space: normal;
    text-align: center;
}

/* Badge */
.permohonan-banner .badge {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2px 10px;
}

/* Close buttons */
.permohonan-banner .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.permohonan-banner .btn-close:hover {
    opacity: 1;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
    .alert-bar {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .alert-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        /* spacing between badge and text */
    }

    .alert-text {
        text-align: left;
        font-size: 0.9rem;
        line-height: 1.4;
        white-space: normal;
    }

    .permohonan-banner .btn-close {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .btn-lg {
        width: 100%;
    }
}

.kuasa-collapse {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
}

.kuasa-collapse.expanded {
    max-height: 2000px;
    opacity: 1;
}

.form-label {
    font-weight: 600;
    color: #111827;
}

.form-control-lg,
.form-select-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 576px) {
    .form-control-lg,
    .form-select-lg {
        font-size: 0.95rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* === Custom Switch Styling === */
.form-check-input.custom-switch {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
    border: 2px solid #111827;
    background-color: #f3f4f6;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.form-check-input.custom-switch:focus {
    box-shadow: 0 0 0 0.15rem rgba(17, 24, 39, 0.2);
}

.form-check-input.custom-switch:checked {
    background-color: #111827;
    border-color: #111827;
}

.form-check-input.custom-switch:checked::before {
    transform: translateX(1.4rem);
}

.form-check-label {
    color: #111827;
    font-size: 1rem;
}

/* Responsive tweak */
@media (max-width: 576px) {
    .form-check-label {
        font-size: 0.95rem;
    }

    .form-check-input.custom-switch {
        width: 2.5rem;
        height: 1.25rem;
    }
}
