/* ==========================================================================
   custom-style.css
   Loaded by the applicant layout (user.layouts.master, body.aeims-public)
   and by two admin pages (entrepreneur-profile, admin trainer-show).
   The applicant pages are styled by Tailwind + resources/css/app.css; the
   legacy overrides below are kept only for the other pages, so they are
   scoped with body:not(.aeims-public).
   ========================================================================== */

@font-face {
    font-family: 'Kalpurush';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Kalpurush.ttf') format('truetype');
}

/* ---- shared helpers (still used by entrepreneur partials) ---------------- */

.input-field-border {
    border: 1px solid #D0D5DD;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input-field-border:focus {
    border-color: #12b76a;
    box-shadow: 0 0 0 4px rgba(18, 183, 106, .16);
    outline: none;
}

.input-field-border input[type="file"] {
    padding-right: 2.5rem;
    padding-bottom: 1.5rem;
}

.input-field-border .fas.fa-upload {
    pointer-events: none;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #fff;
    border: 2px solid #98a2b3;
    border-radius: 0.3rem;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox:checked {
    background-color: #039855;
    border-color: #039855;
}

.custom-checkbox:checked::after {
    content: '\2713';
    color: #fff;
    font-size: .9rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ---- legacy overrides for the non-applicant pages that load this file ---- */

body:not(.aeims-public),
body:not(.aeims-public) main {
    font-family: 'Kalpurush', sans-serif !important;
}

body:not(.aeims-public) label {
    font-size: 17px !important;
}

body:not(.aeims-public) .rounded-\[2rem\] {
    border-radius: 1rem !important;
    margin-bottom: 14px !important;
    border: 1px solid #e7e3e3 !important;
}

body:not(.aeims-public) .rounded-\[2rem\] h1 {
    font-size: 24px !important;
}

body:not(.aeims-public) .bg-gray-200 {
    height: 0.5rem !important;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)) !important;
}

@media (max-width: 767px) {
    .input-field-border {
        font-size: 16px !important; /* prevents zoom on iOS */
    }

    body:not(.aeims-public) .step-content {
        padding: 0.75rem !important;
    }

    body:not(.aeims-public) .progress-main {
        margin: 0.5rem !important;
        border-radius: 1rem !important;
    }
}
