/* Wrapper */
.bdja-wrapper {
    max-width: 950px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* মূল কার্ড */
.bdja-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 26px 32px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e9f2;
    animation: bdja-fade-in 0.4s ease-out;
}

@keyframes bdja-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* জব টাইটেল */
.bdja-job-title {
    text-align: center;
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    position: relative;
}

.bdja-job-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
    margin: 10px auto 0;
    border-radius: 999px;
}

/* সেকশন টাইটেল */
.bdja-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 10px;
    color: #111827;
}

.bdja-help-text {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7280;
}

/* গ্রিড লেআউট */
.bdja-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 640px) {
    .bdja-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ফর্ম ফিল্ড (ফ্লোটিং লেবেল) */
.bdja-field {
    position: relative;
    margin-bottom: 18px;
}

.bdja-field input[type="text"],
.bdja-field input[type="email"],
.bdja-field input[type="number"],
.bdja-field select {
    width: 100%;
    padding: 12px 12px 12px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
}

.bdja-field input::placeholder {
    color: transparent;
}

.bdja-field label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 4px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* ফোকাস ও ভ্যালু থাকলে লেবেল উপরে উঠে যাবে */
.bdja-field input:focus,
.bdja-field select:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.bdja-field input:focus + label,
.bdja-field input:not(:placeholder-shown) + label,
.bdja-field select:focus + label,
.bdja-field select:not([value=""]) + label {
    top: -8px;
    font-size: 11px;
    background: #ffffff;
    color: #2563eb;
}

/* সিলেক্ট ফিল্ডের জন্য */
.bdja-select-field select {
    padding-top: 16px;
    padding-bottom: 8px;
}

/* ফাইল ফিল্ড */
.bdja-file-field input[type="file"] {
    position: relative;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 48px;
    cursor: pointer;
}

.bdja-file-field {
    border-radius: 10px;
    border: 1px dashed #c4c9d4;
    background: #f9fafb;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
}

.bdja-file-field label {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    font-size: 14px;
    color: #4b5563;
}

.bdja-file-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

/* সাবমিট বাটন */
.bdja-submit-wrapper {
    margin-top: 24px;
    text-align: center;
}

.bdja-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.bdja-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
    filter: brightness(1.03);
}

.bdja-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.25);
}

/* টেবিল স্টাইল */
.bdja-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 10px;
}

.bdja-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.bdja-table th,
.bdja-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
}

.bdja-table th {
    background: #f3f4f6;
    font-weight: 600;
    white-space: nowrap;
}

.bdja-table input[type="text"],
.bdja-table input[type="number"] {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 4px 6px;
    font-size: 13px;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bdja-table input[type="text"]:focus,
.bdja-table input[type="number"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

/* সাক্সেস মেসেজ (fallback) */
.bdja-success-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    color: #166534;
    animation: bdja-pop-in 0.3s ease-out;
}

@keyframes bdja-pop-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bdja-success-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #22c55e;
    position: relative;
    box-shadow: 0 6px 15px rgba(34, 197, 94, 0.45);
}

.bdja-success-icon::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 9px;
    width: 14px;
    height: 7px;
    border-left: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    transform: rotate(-45deg);
}

.bdja-success-text p {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
}

/* মোবাইলে কিছু প্যাডিং কমানো */
@media (max-width: 480px) {
    .bdja-card {
        padding: 20px 16px 22px;
    }

    .bdja-job-title {
        font-size: 20px;
    }
}

/* ================================
   সাবমিটের পর ফুলস্ক্রিন প্রিভিউ ওভারলে
   ================================ */

.bdja-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.80);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bdja-overlay-inner {
    max-width: 1000px;
    width: 100%;
    max-height: 100%;
    overflow: auto;
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px 18px 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
    border: 1px solid #e5e7eb;
}

.bdja-overlay-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bdja-overlay-topbar-left {
    flex: 1;
    color: #374151;
}

.bdja-overlay-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.bdja-overlay-subtitle {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.bdja-overlay-topbar-right {
    display: flex;
    gap: 8px;
}

.bdja-overlay-print,
.bdja-overlay-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}

.bdja-overlay-print {
    background: #22c55e;
    border-color: #16a34a;
    color: #ffffff;
}

.bdja-overlay-close {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.bdja-overlay-print:hover {
    background: #16a34a;
}

.bdja-overlay-close:hover {
    background: #e5e7eb;
}

.bdja-overlay-footer-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    font-size: 13px;
    color: #166534;
}

/* লাইনের মাঝের স্পেস কমানো */
.bdja-overlay-footer-note p {
    margin: 2px 0;
    line-height: 1.4;
}

/* ================================
   এপ্লিকেশন প্রিভিউ / প্রিন্ট লেআউট
   ================================ */

.bdja-application-print {
    border: 1px solid #111827;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px 14px 18px;
    position: relative;
    overflow: hidden;
}

.bdja-application-inner {
    position: relative;
    z-index: 1;
}

.bdja-application-header {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

/* এখন লোগো বামে, ছবি ডানে */
.bdja-application-photo {
    text-align: right;
}

.bdja-applicant-img {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    max-width: 120px;
    height: auto;
}

.bdja-photo-placeholder {
    width: 120px;
    height: 140px;
    border-radius: 6px;
    border: 1px dashed #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
}

.bdja-application-heading {
    text-align: center;
}

.bdja-application-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.bdja-heading-applicant {
    margin: 4px 0 0;
    font-size: 14px;
    color: #374151;
}

.bdja-heading-site {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.bdja-application-logo {
    text-align: left;
}

.bdja-logo-img {
    max-height: 100px; /* লোগো এখন আরও বড় */
    width: auto;
}

.bdja-logo-text {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    color: #111827;
    background: #f3f4f6;
}

/* Watermark */
.bdja-application-body {
    position: relative;
    padding-top: 4px;
}

.bdja-application-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

/* টেবিলের মাঝ বরাবর বড় লোগো ওয়াটারমার্ক */
.bdja-application-watermark img {
    max-width: 80%;
    height: auto;
    filter: grayscale(100%);
}

/* কনটেন্ট যেন ওয়াটারমার্কের উপরে থাকে */
.bdja-application-body > *:not(.bdja-application-watermark) {
    position: relative;
    z-index: 1;
}

/* Print tables */
.bdja-print-section-title {
    margin: 8px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.bdja-print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: rgba(255,255,255,0.96);
    margin-bottom: 8px;
}

.bdja-print-table th,
.bdja-print-table td {
    border: 1px solid #9ca3af;
    padding: 5px 7px;
    text-align: left;
}

.bdja-print-table th {
    background: #e5e7eb;
    font-weight: 600;
    white-space: nowrap;
}

.bdja-print-table-edu th,
.bdja-print-table-exp th {
    text-align: center;
}

.bdja-print-table-edu td,
.bdja-print-table-exp td {
    text-align: center;
}

.bdja-print-empty {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

/* এডমিন-এ কিছু ছোট এডজাস্টমেন্ট */
.toplevel_page_bdja_job_applications .bdja-card {
    margin-top: 12px;
}

/* Responsive preview */
@media (max-width: 768px) {
    .bdja-application-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bdja-application-photo,
    .bdja-application-logo {
        text-align: center;
    }
    .bdja-overlay-inner {
        padding: 12px;
    }
    .bdja-overlay-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Print styles */
@media print {
    .bdja-overlay {
        position: static;
        inset: auto;
        background: #ffffff;
        padding: 0;
        box-shadow: none;
    }
    .bdja-overlay-inner {
        max-width: 100%;
        max-height: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0;
    }
    .bdja-overlay-topbar,
    .bdja-overlay-footer-note,
    .bdja-submit-button,
    .bdja-overlay-close,
    .bdja-overlay-print,
    .admin-bar,
    #adminmenuwrap,
    #wpadminbar {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
}