/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a2a4a;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

.top-stripe {
    width: 100%;
    height: 8px;
    background: #c42029;
}

.landing-page .hero {
    max-width: 820px;
    padding: 4rem 1.5rem 2rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem !important;
    justify-content: center;
}

.logo-wrapper {
    width: min(320px, 80vw);
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(10, 36, 92, 0.12);
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
}

.institution {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #0b2854;
}

.institution-address {
    margin-top: 0.75rem;
    color: #4b5d80;
    font-weight: 400;
}

.divider {
    width: 120px;
    margin: 2rem auto;
    border: none;
    border-top: 3px solid rgba(24, 76, 156, 0.2);
}

.action-buttons .btn {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
    border-radius: 1.1rem;
    padding: 1.35rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-items: flex-start;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-buttons .btn i {
    font-size: 1.3rem;
}

.action-buttons .btn-aduan {
    background: linear-gradient(135deg, #1f6feb 0%, #265dff 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(33, 99, 235, 0.25);
}

.action-buttons .btn-lacak {
    background: linear-gradient(135deg, #1fb25d 0%, #18a04d 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(28, 176, 92, 0.25);
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 47, 107, 0.18);
    color: #ffffff;
}

.btn-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 0.1rem;
    line-height: 1.45;
}

.content {
    max-width: 920px;
    padding-bottom: 3rem;
    margin-top: 1rem;
}

.info-block {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 35px rgba(12, 34, 76, 0.08);
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    color: #1f4fa8;
}

.info-header i {
    font-size: 1.6rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.info-block p,
.info-block li {
    color: #415577;
    line-height: 1.7;
}

.info-block strong {
    color: #183d85;
}

.tracking {
    max-width: 920px;
    padding: 1rem 0 4rem;
}

.tracking-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 12px 35px rgba(11, 33, 77, 0.08);
    text-align: left;
}

.tracking-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0f2f6b;
}

.btn-track {
    background: linear-gradient(135deg, #1f6feb 0%, #265dff 100%);
    color: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    font-weight: 600;
}

.btn-track:hover {
    color: #ffffff;
    opacity: 0.95;
}

.footer {
    background: #0f224f;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 30px 60px rgba(10, 28, 68, 0.2);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f2f6b;
}

.modal-subtitle {
    color: #5c6f93;
    font-size: 0.95rem;
}

.aduan-form label {
    font-weight: 500;
    color: #1f3762;
}

.aduan-form .form-control,
.aduan-form .form-select {
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd6f2;
    font-size: 0.95rem;
    box-shadow: none;
}

.aduan-form .form-control:focus,
.aduan-form .form-select:focus {
    border-color: #265dff;
    box-shadow: 0 0 0 0.2rem rgba(38, 93, 255, 0.15);
}

.file-upload {
    cursor: pointer;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(43, 103, 221, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.file-upload:hover {
    border-color: #3c74f5;
    background: rgba(43, 103, 221, 0.08);
}

.file-upload .file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.aduan-form .form-section {
    background: #f7faff;
    border: 1px solid rgba(132, 153, 209, 0.2);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.75rem;
}

.aduan-form .form-section:last-of-type {
    margin-bottom: 0;
}

.aduan-form .form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.aduan-form .form-section-header .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(38, 93, 255, 0.08);
    color: #265dff;
    font-size: 1.25rem;
}

.aduan-form .form-section h6 {
    font-weight: 600;
    color: #142f63;
}

.aduan-form .form-section .form-label {
    font-weight: 500;
    color: #1f3762;
}

.aduan-form .form-text {
    margin-top: 0.35rem;
}

.selected-files {
    font-size: 0.85rem;
    color: #304b83;
}

.location-input-group .btn {
    border-top-right-radius: 0.85rem;
    border-bottom-right-radius: 0.85rem;
    border-color: #cbd6f2;
}

.location-input-group .btn:focus {
    box-shadow: none;
}

.location-input-group .btn i {
    font-size: 1.1rem;
}

.location-input-group .btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.location-input-group .btn.loading i::before {
    content: '\f110';
    font-family: 'Bootstrap-icons';
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.tracking-result .card {
    border-radius: 1.25rem;
}

.badge-status {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-new {
    background: rgba(42, 123, 255, 0.1);
    color: #2967fa;
}

.badge-process {
    background: rgba(255, 193, 59, 0.14);
    color: #bf820a;
}

.badge-done {
    background: rgba(56, 176, 0, 0.15);
    color: #2e7a12;
}

.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, rgba(24, 93, 255, 0.35) 0%, rgba(41, 131, 255, 0.1) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 1.25rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #255dff;
    box-shadow: 0 0 0 4px rgba(37, 93, 255, 0.15);
}

.timeline-item .time {
    font-size: 0.78rem;
    color: #6c7ea6;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-item .title {
    font-weight: 600;
    color: #102b59;
}

.timeline-item .desc {
    font-size: 0.9rem;
    color: #50628a;
}

@media (max-width: 576px) {
    .action-buttons .btn {
        text-align: center;
        align-items: center;
        gap: 0.35rem;
        min-width: 100%;
    }

    .btn-subtitle {
        font-size: 0.9rem;
        text-align: center;
    }

    .tracking-card {
        text-align: center;
    }

    .tracking-card form {
        justify-content: center;
    }

    .aduan-form .form-section {
        padding: 1.25rem 1rem;
    }
}
