
/* =====================================
   PIMS - APPLY NOW PAGE
===================================== */

/* HERO */

.apply-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(120deg, #052f53, #0a4b7f);
    color: #ffffff;
}

.apply-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.apply-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 850px;
    text-align: center;
}

.apply-label {
    display: inline-block;
    margin-bottom: 15px;
    color: #aad8ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.apply-hero h1 {
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -2.5px;
    color: #ffffff;
}

.apply-hero h1 span {
    color: var(--orange);
}

.apply-hero p {
    max-width: 700px;
    margin: 20px auto 0;
    color: rgba(255,255,255,.75);
    font-size: 16px;
    line-height: 1.8;
}

.apply-hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
}

.apply-shape-one {
    width: 430px;
    height: 430px;
    top: -250px;
    right: -100px;
}

.apply-shape-two {
    width: 300px;
    height: 300px;
    left: -150px;
    bottom: -200px;
}

/* MAIN LAYOUT */

.apply-main {
    padding: 100px 0;
    background: #f7f9fc;
}

.apply-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .8fr)
        minmax(0, 1.2fr);
    gap: 70px;
    align-items: start;
}

.apply-info,
.apply-form-wrapper {
    min-width: 0;
}

/* LEFT INFORMATION */

.apply-section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.apply-info h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.apply-info h2 strong {
    display: block;
    color: var(--navy);
}

.apply-intro {
    margin-top: 17px;
    max-width: 500px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

/* APPLICATION STEPS */

.apply-steps {
    display: grid;
    gap: 0;
    margin-top: 38px;
}

.apply-step {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.apply-step-number {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #eaf3fb;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.apply-step h3 {
    margin: 0 0 6px;
    color: var(--heading);
    font-size: 16px;
    font-weight: 700;
}

.apply-step p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

/* HELP BOX */

.apply-help-box {
    margin-top: 35px;
    padding: 27px;
    border-radius: 12px;
    background: var(--navy);
    color: #ffffff;
}

.apply-help-box > span {
    color: #aad8ff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.apply-help-box h3 {
    margin-top: 10px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.4;
}

.apply-help-box p {
    margin-top: 10px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    line-height: 1.7;
}

.apply-help-box a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.apply-help-box a:hover {
    color: var(--orange);
}

/* APPLICATION FORM CARD */

.apply-form-wrapper {
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(10,47,79,.08);
}

.apply-form-heading {
    margin-bottom: 30px;
}

.apply-form-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.apply-form-heading h2 {
    margin: 0;
    color: var(--heading);
    font-size: 30px;
}

.apply-form-heading p {
    margin-top: 8px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
}

/* FORM LAYOUT */

.apply-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apply-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.apply-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

.apply-form-group label {
    display: block;
    margin: 0;
    color: var(--heading);
    font-size: 13px;
    font-weight: 600;
}

.apply-form-group label span {
    color: var(--orange);
}

/* INPUTS */

.apply-form-group input,
.apply-form-group select,
.apply-form-group textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--heading);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.apply-form-group input,
.apply-form-group select {
    height: 50px;
    padding: 0 15px;
}

.apply-form-group select {
    cursor: pointer;
}

.apply-form-group textarea {
    min-height: 145px;
    padding: 14px 15px;
    resize: vertical;
    line-height: 1.6;
}

.apply-form-group input::placeholder,
.apply-form-group textarea::placeholder {
    color: #a0aab5;
}

.apply-form-group input:focus,
.apply-form-group select:focus,
.apply-form-group textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(7,59,104,.08);
}

.apply-form-group input:invalid:not(:placeholder-shown) {
    box-shadow: none;
}

/* VALIDATION */

.apply-alert {
    padding: 14px 17px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.apply-alert-success {
    background: #e9f9f3;
    color: #166b49;
    border: 1px solid #bde8d6;
}

.apply-alert-error {
    background: #fff1f0;
    color: #a12626;
    border: 1px solid #f1c4c4;
}

.apply-error {
    display: block;
    color: #c0392b;
    font-size: 12px;
}

/* SUBMIT BUTTON */

.apply-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--orange);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.apply-submit-btn:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.apply-submit-btn svg {
    width: 18px;
    height: 18px;
}

.apply-form-note {
    margin: 0;
    text-align: center;
    color: #8b96a1;
    font-size: 11px;
    line-height: 1.7;
}

/* BOTTOM CTA */

.apply-bottom-cta {
    padding: 55px 0;
    background: var(--green);
    color: #ffffff;
}

.apply-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.apply-bottom-inner span {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    opacity: .8;
}

.apply-bottom-inner h2 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
}

.apply-white-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 12px 24px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #ffffff;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.apply-white-btn:hover {
    background: #f1f5f8;
    color: var(--green);
}

/* TABLET */

@media (max-width: 900px) {
    .apply-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .apply-info {
        max-width: 650px;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .apply-hero {
        padding: 70px 0;
    }

    .apply-hero-inner {
        text-align: left;
    }

    .apply-hero h1 {
        font-size: 39px;
        letter-spacing: -1.5px;
    }

    .apply-hero p {
        margin-left: 0;
        font-size: 14px;
    }

    .apply-main {
        padding: 65px 0;
    }

    .apply-info h2 {
        font-size: 32px;
    }

    .apply-form-wrapper {
        padding: 27px 20px;
    }

    .apply-form-row {
        grid-template-columns: 1fr;
    }

    .apply-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .apply-white-btn {
        width: 100%;
    }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
    .apply-hero h1 {
        font-size: 34px;
    }

    .apply-form-heading h2 {
        font-size: 26px;
    }

    .apply-step-number {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
