* { box-sizing: border-box; }

body {
    margin: 0;
    background: #f4f7fb;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}

a { text-decoration: none !important; }

.site-header {
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-wrap img {
    width: 60px;
    height: 70px;
    object-fit: contain;
}

.brand-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0b3b77;
}

.brand-subtitle {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.nav-link {
    font-weight: 600;
    color: #243b53 !important;
}

.nav-link:hover {
    color: #0093DD !important;
}

.header-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 6px;
    border: 1px solid #0093DD;
}

.btn-main-blue {
    background: #0093DD;
    color: #fff !important;
}

.btn-outline-blue {
    background: #fff;
    color: #0093DD !important;
}

.hero-section {
    padding: 55px 0 35px;
    background: linear-gradient(135deg, #edf6ff 0%, #f8fbff 100%);
}

.hero-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #0b3b77;
    margin-bottom: 10px;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #556070;
    font-size: 16px;
    line-height: 1.7;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.action-btn {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff !important;
    min-width: 220px;
    text-align: center;
}

.action-blue { background: #0093DD; }
.action-dark { background: #374151; }
.action-green { background: #16a34a; }
.action-orange { background: #f59e0b; }

.modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #eef2f7;
    padding: 18px 20px 10px;
}

.modal-title-custom {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    color: #0b3b77;
}

.modal-body {
    padding: 20px;
}

.form-control,
select.form-control {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #d7dee8;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: #0093DD;
    box-shadow: 0 0 0 0.15rem rgba(0,147,221,0.15) !important;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #374151;
}

.split-line {
    text-align: center;
    margin: 14px 0;
    color: #6b7280;
    font-weight: 700;
}

.modal-btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-cancel {
    background: #e5e7eb;
    color: #111827 !important;
}

.btn-submit {
    background: #0093DD;
    color: #fff !important;
}

.btn-green {
    background: #16a34a;
    color: #fff !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #25d366;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

@media (max-width: 991px) {
    .header-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 28px;
    }

    .action-btn {
        min-width: 100%;
    }
}

/* Shared modern page styles */
.page-shell {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #edf6ff 0%, #f8fbff 100%);
}
.page-card,
.section-card,
.form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    padding: 28px;
    border: 1px solid #eef2f7;
}
.page-title,
.section-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #0b3b77;
    margin: 0 0 10px;
}
.page-subtitle,
.section-subtitle {
    color: #5b6573;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
}
.soft-note {
    background: #f8fbff;
    border-left: 4px solid #0093DD;
    padding: 16px 18px;
    border-radius: 14px;
    color: #425466;
    margin-bottom: 22px;
}
.soft-note ol,
.soft-note ul { margin: 10px 0 0 18px; }
.page-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.info-card {
    background: #f8fbff;
    border: 1px solid #e5eef8;
    border-radius: 16px;
    padding: 18px;
    height: 100%;
}
.info-card h4 {
    margin: 0 0 10px;
    color: #0b3b77;
    font-size: 18px;
    font-weight: 800;
}
.info-card p {
    margin: 0 0 8px;
    color: #445062;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.status-approved,
.status-success { background: #dcfce7; color: #166534; }
.status-pending,
.status-info { background: #e0f2fe; color: #075985; }
.status-rejected,
.status-error { background: #fee2e2; color: #b91c1c; }
.status-warning { background: #fef3c7; color: #92400e; }

.page-shell .table,
.table-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}
.page-shell .table thead th,
.table-modern thead th {
    background: #0b3b77;
    color: #fff;
    border: none;
}
.page-shell .table td,
.page-shell .table th,
.table-modern td,
.table-modern th {
    vertical-align: middle;
}

.page-hero-mini {
    padding: 18px 0 30px;
}
.page-hero-mini .hero-box {
    text-align: left;
    padding: 32px 28px;
}
.page-hero-mini .hero-title { font-size: 30px; }
.page-hero-mini .hero-text { margin-left: 0; margin-right: 0; }

.application-form-page .form-section-title,
.result-page .form-section-title,
.login-page .form-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b3b77;
    margin-bottom: 16px;
}
.application-form-page .card,
.result-page .card,
.login-page .login-box {
    border: none;
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}
.application-form-page .form-control,
.result-page .form-control,
.result-page select,
.login-page .form-control {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d7dee8;
}
.application-form-page textarea.form-control { min-height: 120px; }
.application-form-page .btn,
.result-page .btn,
.login-page .btn,
.application-form-page input[type=submit],
.result-page input[type=submit] {
    border-radius: 12px;
    font-weight: 700;
}
.application-form-page .navigation,
.application-form-page .navbar,
.result-page .site-header + .container,
.login-page .site-header + .container {
    margin-bottom: 20px;
}
.application-form-page .section,
.application-form-page section,
.result-page section { position: relative; }

.application-summary-page {
    background: #f4f7fb;
}
.print-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.summary-header {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5eef8;
    margin-bottom: 20px;
}
.summary-header img {
    max-width: 100%;
    border-radius: 14px;
    object-fit: cover;
}
.summary-center {
    text-align: center;
}
.summary-center h2 {
    margin: 0 0 8px;
    color: #0b3b77;
    font-size: 28px;
    font-weight: 800;
}
.summary-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.meta-pill {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
}
.footer-note {
    text-align: center;
    color: #64748b;
    margin-top: 22px;
    font-size: 13px;
}

@media print {
    .no-print { display: none !important; }
    body.application-summary-page,
    .page-shell { background: #fff !important; }
    .page-card, .section-card, .form-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
}
