/* 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);
}

/* High Contrast Symmetrical Service Cards */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    margin: 2rem auto 0;
    align-items: stretch;
}

.service-card {
    background: #ffffff !important;
    border-radius: 1.25rem !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(15, 34, 64, 0.07) !important;
    padding: 1.65rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    height: 100% !important;
    color: #1a2a4a !important;
    box-sizing: border-box !important;
}

.service-card.card-aduan {
    border-top: 5px solid #1e40af !important;
}

.service-card.card-aduan:hover {
    border-color: #1e40af !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(30, 64, 175, 0.16) !important;
}

.service-card.card-lacak {
    border-top: 5px solid #16a34a !important;
}

.service-card.card-lacak:hover {
    border-color: #16a34a !important;
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(22, 163, 74, 0.16) !important;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.icon-aduan {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #dbeafe !important;
}

.icon-lacak {
    background: #f0fdf4 !important;
    color: #15803d !important;
    border: 1px solid #dcfce7 !important;
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 2rem;
    letter-spacing: 0.02em;
}

.tag-aduan {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

.tag-lacak {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.service-card-body {
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #0b2854 !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.3 !important;
}

.service-desc {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    margin: 0 !important;
}

.service-card-footer {
    margin-top: auto;
}

.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.btn-action-aduan {
    background: #1e40af !important;
    color: #ffffff !important;
}

.service-card.card-aduan:hover .btn-action-aduan {
    background: #1d4ed8 !important;
}

.btn-action-lacak {
    background: #16a34a !important;
    color: #ffffff !important;
}

.service-card.card-lacak:hover .btn-action-lacak {
    background: #15803d !important;
}

.service-btn i {
    transition: transform 0.2s ease;
}

.service-card:hover .service-btn i {
    transform: translateX(4px);
}

.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: 767.98px) {
    .landing-page .hero {
        padding: 2rem 1rem 1.25rem !important;
    }

    .logo-wrapper {
        width: min(240px, 75vw) !important;
        padding: 1rem !important;
    }

    .institution {
        font-size: 1.3rem !important;
        margin-top: 1rem !important;
    }

    .institution-address {
        font-size: 0.82rem !important;
        margin-top: 0.4rem !important;
    }

    .divider {
        margin: 1.25rem auto !important;
    }

    .action-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-top: 1.25rem !important;
    }

    .service-card {
        padding: 1.25rem 1.15rem !important;
    }

    .service-title {
        font-size: 1.2rem !important;
    }

    .service-desc {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    .service-btn {
        padding: 0.68rem 1rem !important;
        font-size: 0.88rem !important;
    }

    .info-block {
        padding: 1.25rem 1.15rem !important;
        margin-bottom: 1rem !important;
    }

    .info-title {
        font-size: 1.1rem !important;
    }

    .info-block p,
    .info-block li {
        font-size: 0.88rem !important;
    }

    .tracking-card {
        padding: 1.35rem 1.15rem !important;
        text-align: center;
    }

    .tracking-card h2 {
        font-size: 1.25rem !important;
    }

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

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