/* Local replacement for the external CSS files used by home.blade.php.
   It keeps the visual language of the existing page while removing remote dependencies. */

:root {
    --bs-body-font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
    --bs-border-color: #dee2e6;
    --bs-border-radius: 0.375rem;
    --bs-success: #198754;
    --bs-success-hover: #157347;
}

html, body {
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
}

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

body {
    margin: 0;
}

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

img {
    max-width: 100%;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 992px) {
    .container { max-width: 960px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row > [class*="col-"],
.row > .form-group {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.justify-content-center {
    justify-content: center;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
}

@media (min-width: 1200px) {
    .col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

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

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.w-100 {
    width: 100% !important;
}

.hidden {
    display: none !important;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.btn-success {
    color: #fff;
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.btn-success:hover,
.btn-success:focus {
    color: #fff;
    background-color: var(--bs-success-hover);
    border-color: var(--bs-success-hover);
}

.btn:disabled {
    opacity: 0.65;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal.fade .modal-dialog {
    transform: translate(0, -25px);
    transition: transform 0.3s ease-out;
}

.modal.show.fade .modal-dialog {
    transform: translate(0, 0);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-lg {
    max-width: 800px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    outline: 0;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.pbc-va-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f0f4f8 0%, #e8eef5 45%, #f7f9fc 100%);
    padding: 1.5rem 0 3rem;
}

.pbc-va-logo img {
    width: 180px;
    max-width: 70vw;
    height: auto;
}

.pbc-va-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.pbc-va-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #1a2e44;
    margin-bottom: .35rem;
}

.pbc-va-header p {
    color: #5a6a7e;
    font-size: .95rem;
    max-width: 520px;
    margin: 0 auto;
}

.pbc-va-card {
    background: #fff;
    border: 1px solid rgba(26, 46, 68, .08);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(26, 46, 68, .08);
    overflow: hidden;
}

.pbc-va-card-head {
    background: linear-gradient(135deg, #1a5c3a 0%, #22854f 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
}

.pbc-va-card-head svg {
    width: 18px;
    height: 18px;
    margin-right: .45rem;
    opacity: .9;
    flex-shrink: 0;
}

.pbc-va-card-body {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .pbc-va-card-body {
        padding: 1.75rem;
    }
}

.pbc-va-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5a6a7e;
    margin-bottom: .35rem;
}

.pbc-va-input-wrap {
    position: relative;
}

.pbc-va-input-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a97a8;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.pbc-va-input-wrap .form-control {
    padding-left: 2.5rem;
    height: calc(2.5rem + 2px);
    border-radius: 10px;
    border: 1px solid #d5dde8;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}

.pbc-va-input-wrap .form-control:focus {
    border-color: #22854f;
    box-shadow: 0 0 0 3px rgba(34, 133, 79, .15);
}

.pbc-va-search-btn {
    width: 100%;
    border-radius: 10px;
    padding: .7rem 1.25rem;
    font-weight: 600;
    font-size: .95rem;
    background: linear-gradient(135deg, #1a5c3a 0%, #22854f 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(34, 133, 79, .35);
    transition: transform .15s, box-shadow .15s;
}

.pbc-va-search-btn:hover,
.pbc-va-search-btn:focus {
    background: linear-gradient(135deg, #164d31 0%, #1d7344 100%);
    box-shadow: 0 6px 18px rgba(34, 133, 79, .4);
    transform: translateY(-1px);
}

.pbc-va-result {
    margin-top: 1.5rem;
    border-top: 1px solid #edf1f6;
    padding-top: 1.5rem;
}

.pbc-va-result-card {
    background: linear-gradient(180deg, #fafbfd 0%, #f7f9fc 100%);
    border: 1px solid #e8eef5;
    border-radius: 14px;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .pbc-va-result-card {
        padding: 1.5rem;
    }
}

.pbc-va-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e8eef5;
}

@media (min-width: 768px) {
    .pbc-va-profile {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1.5rem;
    }
}

.pbc-va-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}

.pbc-va-avatar,
.pbc-va-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(26, 46, 68, .12);
}

.pbc-va-avatar-placeholder {
    background: linear-gradient(135deg, #e8eef5 0%, #d5dde8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a97a8;
    font-size: 2.5rem;
}

.pbc-va-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .35rem .75rem;
    border-radius: 20px;
    white-space: nowrap;
    margin-top: .75rem;
}

.pbc-va-status-badge.is-verified {
    background: rgba(34, 133, 79, .12);
    color: #1a5c3a;
    border: 1px solid rgba(34, 133, 79, .3);
}

.pbc-va-status-badge.is-not-verified {
    background: rgba(183, 28, 28, .08);
    color: #8b1a1a;
    border: 1px solid rgba(183, 28, 28, .25);
}

.pbc-va-profile-main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.pbc-va-name {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 700;
    color: #1a2e44;
    text-transform: uppercase;
    margin-bottom: .35rem;
    word-break: break-word;
    line-height: 1.3;
}

.pbc-va-father {
    color: #5a6a7e;
    font-size: .9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.pbc-va-father span {
    color: #1a2e44;
    font-weight: 600;
}

.pbc-va-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

@media (min-width: 640px) {
    .pbc-va-details {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
}

.pbc-va-details-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a5c3a;
    margin: 1.35rem 0 .85rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #e3eaf2;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.pbc-va-details-title:first-of-type {
    margin-top: 0;
}

.pbc-va-detail-item.is-hc-record {
    border-color: rgba(26, 92, 58, .18);
    background: linear-gradient(180deg, #fff 0%, #f8fbf9 100%);
}

.pbc-va-detail-item.is-hc-record .pbc-va-detail-icon {
    background: rgba(26, 92, 58, .12);
    color: #1a5c3a;
}

.pbc-va-detail-item {
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    padding: 1rem .85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    min-height: 118px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(26, 46, 68, .04);
    transition: border-color .2s, box-shadow .2s;
}

@media (min-width: 640px) {
    .pbc-va-detail-item {
        padding: 1.1rem .75rem;
    }
}

.pbc-va-detail-item:hover {
    border-color: rgba(34, 133, 79, .25);
    box-shadow: 0 4px 14px rgba(26, 46, 68, .07);
}

.pbc-va-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(34, 133, 79, .09);
    color: #22854f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.pbc-va-detail-icon svg {
    width: 22px;
    height: 22px;
}

.pbc-va-detail-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.pbc-va-detail-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a97a8;
    margin-bottom: .35rem;
    line-height: 1.3;
}

.pbc-va-detail-value {
    font-size: .875rem;
    font-weight: 600;
    color: #1a2e44;
    line-height: 1.45;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.pbc-va-alert {
    margin-top: 1.5rem;
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.pbc-va-alert svg {
    width: 20px;
    height: 20px;
    margin-top: .1rem;
    flex-shrink: 0;
}

.pbc-va-alert-title {
    font-weight: 700;
    margin-bottom: .2rem;
}

.pbc-va-alert-text {
    font-size: .9rem;
    margin: 0;
    line-height: 1.5;
}

.pbc-va-footer {
    text-align: center;
    margin-top: 1.75rem;
}

.pbc-va-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 10px;
    padding: .55rem 1.25rem;
    font-weight: 600;
    font-size: .875rem;
    color: #1a2e44;
    background: #fff;
    border: 1px solid #d5dde8;
    transition: background .15s, border-color .15s, transform .15s;
}

.pbc-va-back-btn:hover {
    background: #f7f9fc;
    border-color: #22854f;
    color: #22854f;
    text-decoration: none;
    transform: translateY(-1px);
}

.custom-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 999;
}

.custom-image-upload {
    padding: 3px;
    background-color: white;
}

.custom-image-preview {
    width: 150px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.spin {
    animation: spin 0.8s linear infinite;
}

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