:root {
    --ydsf-primary: #4caf50;
    --ydsf-secondary: #8cc63f;
    --ydsf-green: #2e7d32;
    --ydsf-green-dark: #1f5f25;
    --ydsf-green-soft: #dcebd4;
    --ydsf-green-bg: #edf5e8;
    --ydsf-green-bg-2: #f4f8f1;
    --ydsf-dark: #1f2937;
    --ydsf-muted: #667085;
    --ydsf-soft: #f8fcf5;
    --ydsf-border: #dbe7d5;
    --ydsf-warning: #f79009;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    color: var(--ydsf-dark);
    background:
        radial-gradient(circle at 18% 8%, rgba(140, 198, 63, 0.09) 0, rgba(140, 198, 63, 0.09) 90px, transparent 91px),
        radial-gradient(circle at 82% 12%, rgba(76, 175, 80, 0.07) 0, rgba(76, 175, 80, 0.07) 120px, transparent 121px),
        linear-gradient(180deg, var(--ydsf-green-bg) 0%, var(--ydsf-green-bg) 42%, var(--ydsf-green-bg-2) 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: -190px;
    left: 50%;
    transform: translateX(-50%);
    width: 1120px;
    height: 1120px;
    border-radius: 50%;
    border: 1px solid rgba(140, 198, 63, 0.15);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    top: -95px;
    left: 50%;
    transform: translateX(-50%);
    width: 860px;
    height: 860px;
    border-radius: 50%;
    border: 1px solid rgba(140, 198, 63, 0.11);
    pointer-events: none;
    z-index: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--ydsf-green);
}

a:hover {
    color: var(--ydsf-green-dark);
}

.text-success {
    color: var(--ydsf-green) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.theme-card-header h5,
.theme-card-header h2,
.section-title,
.report-kicker {
    font-family: "Bricolage Grotesque", "Manrope", Arial, Helvetica, sans-serif;
}

.hero-subtitle,
.theme-card-header p,
.hero-card p,
.data-label,
.data-value,
.form-label,
.search-option label,
.public-footer,
.footer-links a {
    font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.public-navbar {
    background: rgba(237, 245, 232, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(183, 208, 174, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-navbar .navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    color: var(--ydsf-dark);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.public-navbar .brand-logo {
    height: 34px;
    width: auto;
    margin-right: 10px;
}

.public-navbar .brand-text {
    line-height: 1.15;
}

.public-navbar .brand-text small {
    display: block;
    font-size: 11px;
    color: var(--ydsf-muted);
    font-weight: 600;
    line-height: 1.1;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 58px 0 68px;
    background:
        linear-gradient(180deg, rgba(237, 245, 232, 0.78) 0%, rgba(237, 245, 232, 0.45) 100%);
    color: var(--ydsf-dark);
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -310px;
    left: 50%;
    transform: translateX(-50%);
    width: 980px;
    height: 980px;
    border-radius: 50%;
    border: 1px solid rgba(140, 198, 63, 0.16);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -185px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    border-radius: 50%;
    border: 1px solid rgba(140, 198, 63, 0.12);
    background: transparent;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.12);
    border: 1px solid rgba(140, 198, 63, 0.24);
    color: var(--ydsf-green);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-badge i {
    margin-right: 8px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -1.2px;
    margin-bottom: 16px;
    color: #1b1f24;
}

.hero-subtitle {
    max-width: 650px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ydsf-dark);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(52, 78, 65, 0.1);
    border: 1px solid rgba(201, 219, 193, 0.85);
}

.hero-card h5 {
    color: var(--ydsf-dark);
}

.hero-card p {
    font-size: 14px;
    line-height: 1.7;
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ydsf-primary), var(--ydsf-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 14px;
}

.main-content {
    flex: 1;
    padding: 46px 0 60px;
}

.theme-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ydsf-border);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(46, 69, 52, 0.07);
    overflow: hidden;
}

.theme-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--ydsf-border);
    background: linear-gradient(180deg, #f9fcf6, #f2f8ee);
}

.theme-card-header h5,
.theme-card-header h2 {
    margin-bottom: 6px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--ydsf-dark);
}

.theme-card-header p {
    margin-bottom: 0;
    color: var(--ydsf-muted);
    font-size: 14px;
    line-height: 1.6;
}

.theme-card-body {
    padding: 28px;
}

.form-control {
    height: 46px;
    border-radius: 12px;
    border-color: #d4e2cf;
    color: var(--ydsf-dark);
    font-size: 14px;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--ydsf-primary);
    box-shadow: 0 0 0 0.2rem rgba(140, 198, 63, 0.14);
}

.form-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ydsf-dark);
}

.search-option {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--ydsf-border);
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}

.search-option:hover {
    border-color: rgba(140, 198, 63, 0.48);
    background: #f8fcf5;
}

.search-option .form-check-input {
    margin-top: 0;
}

.search-option label {
    cursor: pointer;
    margin-left: 10px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 700;
}

.btn-ydsf {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ydsf-primary), var(--ydsf-secondary));
    box-shadow: 0 10px 20px rgba(140, 198, 63, 0.24);
    transition: 0.2s ease;
}

.btn-ydsf:hover,
.btn-ydsf:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(140, 198, 63, 0.28);
}

.btn-outline-ydsf {
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    color: var(--ydsf-green);
    border: 1px solid rgba(140, 198, 63, 0.38);
    background: rgba(255, 255, 255, 0.78);
}

.btn-outline-ydsf:hover,
.btn-outline-ydsf:focus {
    color: #ffffff;
    background: var(--ydsf-primary);
    border-color: var(--ydsf-primary);
}

.report-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.report-kicker {
    color: var(--ydsf-green);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}

.report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 800;
    background: #eef8e8;
    color: var(--ydsf-green);
    border: 1px solid #cfe6bf;
    white-space: nowrap;
}

.status-pill i {
    margin-right: 8px;
}

.btn-back-search {
    padding: 9px 14px;
    font-size: 13px;
    box-shadow: none;
}

.section-title {
    display: flex;
    align-items: center;
    margin: 28px 0 16px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--ydsf-dark);
    border: none;
}

.section-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 28px;
    border-radius: 999px;
    margin-right: 10px;
    background: linear-gradient(180deg, var(--ydsf-primary), var(--ydsf-green));
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.data-item {
    padding: 17px;
    border-radius: 18px;
    border: 1px solid var(--ydsf-border);
    background: #ffffff;
}

.data-label {
    display: block;
    color: var(--ydsf-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 7px;
}

.data-value {
    display: block;
    color: var(--ydsf-dark);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    word-break: break-word;
}

.tracking-progress {
    position: relative;
    display: flex;
    gap: 22px;
    margin-top: 6px;
}

.tracking-progress::before {
    content: "";
    position: absolute;
    top: 36px;
    left: 90px;
    right: 90px;
    height: 3px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.22), rgba(140, 198, 63, 0.22));
    border-radius: 999px;
    z-index: 0;
}

.tracking-step {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--ydsf-border);
    border-radius: 24px;
    padding: 20px 18px 18px;
    box-shadow: 0 10px 24px rgba(46, 69, 52, 0.05);
}

.tracking-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.tracking-node {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid var(--ydsf-border);
}

.tracking-step.is-complete .tracking-node {
    background: linear-gradient(135deg, var(--ydsf-primary), var(--ydsf-secondary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(76, 175, 80, 0.22);
}

.tracking-step.is-pending .tracking-node {
    background: #f5f8f2;
    color: #9cac99;
}

.tracking-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tracking-step.is-complete .tracking-state {
    background: #eef8e8;
    color: var(--ydsf-green);
    border: 1px solid #cfe6bf;
}

.tracking-step.is-pending .tracking-state {
    background: #f5f6f3;
    color: #7b8794;
    border: 1px solid #dde4d8;
}

.tracking-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tracking-title {
    font-family: "Bricolage Grotesque", "Manrope", Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ydsf-dark);
    line-height: 1.3;
}

.tracking-value {
    font-size: 22px;
    font-weight: 900;
    color: var(--ydsf-dark);
    line-height: 1.35;
    word-break: break-word;
}

.tracking-meta {
    font-size: 13px;
    color: var(--ydsf-muted);
    line-height: 1.6;
}

.tracking-meta-system {
    padding-top: 6px;
    border-top: 1px dashed var(--ydsf-border);
    margin-top: 2px;
}

@media (max-width: 991.98px) {
    .tracking-progress {
        flex-direction: column;
        gap: 16px;
    }

    .tracking-progress::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .tracking-step {
        border-radius: 20px;
        padding: 18px 16px;
    }

    .tracking-title {
        font-size: 17px;
    }

    .tracking-value {
        font-size: 20px;
    }

    .tracking-step-top {
        margin-bottom: 14px;
    }

    .tracking-node {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

.documentation-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--ydsf-border);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(46, 69, 52, 0.06);
    height: 100%;
}

.documentation-card .img-preview {
    width: 100%;
    height: 230px;
    max-height: none;
    object-fit: cover;
    border: none;
    transition: 0.25s ease;
}

.documentation-card:hover .img-preview {
    transform: scale(1.03);
}

.documentation-caption {
    position: relative;
    padding: 15px 16px;
    font-weight: 900;
    font-size: 14px;
    color: var(--ydsf-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.documentation-caption span {
    display: block;
    width: 100%;
    text-align: center;
}

.documentation-caption i {
    position: absolute;
    right: 16px;
    color: var(--ydsf-green);
}

.empty-photo {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ydsf-muted);
    background: #f8fcf5;
    text-align: center;
    padding: 18px;
}

.empty-photo i {
    font-size: 34px;
    color: #b9c8b2;
    margin-bottom: 10px;
}

.empty-photo strong {
    color: var(--ydsf-dark);
    margin-bottom: 4px;
}

.empty-photo small {
    color: var(--ydsf-muted);
}

.alert-theme {
    border: 1px solid #e4d18b;
    background: #fff8e7;
    color: #8a5b00;
    border-radius: 18px;
    padding: 18px 20px;
    font-weight: 700;
}

.public-footer {
    background: rgba(255, 255, 255, 0.84);
    border-top: 1px solid var(--ydsf-border);
    padding: 26px 0;
    color: var(--ydsf-muted);
    font-size: 13px;
}

.public-footer strong {
    color: var(--ydsf-dark);
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--ydsf-muted);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ydsf-green);
}

.page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(237, 245, 232, 0.78);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

body.is-submitting .page-transition-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-transition-box {
    min-width: 260px;
    padding: 26px 28px;
    border-radius: 24px;
    border: 1px solid rgba(140, 198, 63, 0.34);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(46, 69, 52, 0.14);
    text-align: center;
    color: var(--ydsf-dark);
    transform: translateY(10px) scale(0.98);
    transition:
        transform 0.28s ease,
        opacity 0.28s ease;
}

body.is-submitting .page-transition-box {
    transform: translateY(0) scale(1);
}

.page-transition-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid rgba(140, 198, 63, 0.22);
    border-top-color: var(--ydsf-primary);
    animation: ydsfSpin 0.8s linear infinite;
}

.page-transition-box strong {
    display: block;
    font-family: "Bricolage Grotesque", "Manrope", Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}

.page-transition-box small {
    display: block;
    color: var(--ydsf-muted);
    font-size: 13px;
}

.result-card {
    scroll-margin-top: 88px;
    animation: ydsfFadeUp 0.45s ease both;
}

.form-action-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 22px 0;
    color: var(--ydsf-muted);
    font-size: 13px;
    font-weight: 700;
}

.form-action-divider::before,
.form-action-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ydsf-border);
}

.form-action-divider span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: #ffffff;
}

.btn-program-qurban {
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    color: var(--ydsf-green);
    border: 1px solid rgba(140, 198, 63, 0.42);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(46, 69, 52, 0.06);
    transition: 0.2s ease;
}

.btn-program-qurban:hover,
.btn-program-qurban:focus {
    color: #ffffff;
    background: var(--ydsf-green);
    border-color: var(--ydsf-green);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(46, 125, 50, 0.18);
}

@keyframes ydsfSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes ydsfFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-card {
        margin-top: 28px;
    }

    body::before {
        width: 900px;
        height: 900px;
    }

    body::after {
        width: 700px;
        height: 700px;
    }

    .hero-section::before {
        width: 820px;
        height: 820px;
        top: -260px;
    }

    .hero-section::after {
        width: 620px;
        height: 620px;
        top: -155px;
    }
}

@media (max-width: 767.98px) {
    .public-navbar .brand-logo {
        height: 30px;
    }

    .btn-outline-ydsf {
        padding: 9px 14px;
        font-size: 12px;
    }

    .hero-section {
        padding: 42px 0 48px;
    }

    .hero-title {
        font-size: 30px;
        letter-spacing: -0.8px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .main-content {
        padding: 28px 0 42px;
    }

    .theme-card {
        border-radius: 20px;
    }

    .theme-card-header,
    .theme-card-body {
        padding: 22px;
    }

    .report-title-row {
        gap: 12px;
    }

    .report-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .status-pill {
        font-size: 12px;
        padding: 8px 12px;
    }

    .btn-back-search {
        width: auto;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .documentation-card .img-preview {
        height: 210px;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .page-transition-box {
        width: calc(100% - 40px);
        min-width: 0;
    }

    body::before {
        width: 620px;
        height: 620px;
        top: -120px;
    }

    body::after {
        width: 420px;
        height: 420px;
        top: -40px;
    }

    .hero-section::before {
        width: 620px;
        height: 620px;
        top: -180px;
    }

    .hero-section::after {
        width: 430px;
        height: 430px;
        top: -90px;
    }
}

@media (max-width: 575.98px) {
    .public-navbar .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .public-navbar .brand-text {
        font-size: 14px;
    }

    .public-navbar .brand-text small {
        font-size: 10px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-card {
        padding: 20px;
        border-radius: 20px;
    }

    .theme-card-header h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 17px;
    }

    .data-item {
        padding: 15px;
    }

    .btn-ydsf {
        width: 100%;
    }

    .btn-back-search {
        width: auto;
    }
}