
/* =========================
        APPLICATIONS
========================= */
.application-wrapper {
    display: grid;
    grid-template-columns: 300px auto 350px;
    gap: 25px;
    max-width: min(1600px, 90%);
    margin: 0 auto;
}

.application-sidebar,
.application-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 120px;
    height: fit-content;
}


.application-sidebar .step,
.application-sidebar .info-card,
.application-info .info-card {
    background: var(--panel);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
}

.application-info .info-card ul {
    padding-left: 20px;
}

.application-info .info-card li {
    list-style-type: disc;
}

.application-info .info-card li::marker {
    color: var(--primary-color);
}

.application-sidebar .step {
    display: flex;
    gap: 15px;
    align-items: center;
}

.application-sidebar .step span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-alpha);
}

.application-sidebar .step.active span {
    background: #d7a23d;
    color: var(--white-color);
}

.application-sidebar .step h4 {
    margin: 0;
    color: var(--text-color);
}

.application-sidebar .step p {
    margin: 0;
    color: var(--text-muted);
    font-size: .85rem;
}

.application-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.application-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.application-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(5, 10, 15, .95) 0%,
            rgba(5, 10, 15, .65) 55%,
            rgba(5, 10, 15, .2) 100%);
}

.application-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 45px;
    max-width: 700px;
}

.application-hero .hero-tag {
    display: inline-block;
    color: #d7a23d;
    font-weight: 600;
    text-transform: uppercase;
}

.application-hero .hero-content h2 {
    color: #fff;
    margin-bottom: 10px;
}

.application-hero .hero-content p {
    color: #c7d1dc;
}

.application-card {
    background: var(--panel);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(12px);
    padding: 20px;
}

.application-card p {
    margin-bottom: 10px;
    font-weight: 600;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 12px;
    transition: .2s;
    font-family: var(--font);
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #d7a23d;
    box-shadow: 0 0 0 3px rgba(215, 162, 61, .15);
}

form .req::before {
    content: "✦ ";
    color: var(--primary-color);
}

form input::placeholder,
form textarea::placeholder,
form select::placeholder {
    color: #888;
    font-size: .8rem;
}


.application-card textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Required Fields */
.application-info .cardReq li {
    list-style-type: disc;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            #d7a23d,
            #f5d06f);
    transition: width .35s ease;
}


/* Checkbox Input */
.checkbox-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-input label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 12px;
    width: fit-content;
    min-width: 200px;
    position: relative;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: var(--card);
    border: 1px solid var(--border-color);
    pointer-events: all;
}

.checkbox-input label:hover,
.boolean-group label:hover {
    transition: all 0.2s ease;
    background: var(--dropdown-hover-bg);
}

.checkbox-input .label:has(input:checked),
.boolean-group label:has(input:checked) {
    background-color: var(--primary-alpha);
    border-color: var(--primary-alpha);
}

.checkbox-input .label p {
    margin: 0;
    align-items: center;
}

.checkbox-input .label input[type="checkbox"],
.boolean-group input[type="radio"] {
    background-color: var(--dropdown-hover-bg);
    appearance: none;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    border: 1px solid var(--primary-alpha);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.checkbox-input .label input[type="checkbox"]:checked,
.boolean-group input[type="radio"]:checked {
    -webkit-animation: puls 0.7s forwards;
    animation: pulse 0.7s forwards;
}

.checkbox-input .label input[type="checkbox"]:before,
.boolean-group input[type="radio"]:checked::before {
    background-color: var(--primary-color);
    content: "";
    padding: 5px;
    transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50%;
    transform: scale(0);
}

.checkbox-input .label input[type="checkbox"]:checked::before,
.boolean-group input[type="radio"]:checked::before {
    transform: scale(1);
}


/* =========================
   Boolean / Radio Input
========================= */

.boolean-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.boolean-group label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: var(--border-radius);
    background: var(--card);
    border: 1px solid var(--border-color);
    transition: all .2s ease;
}

.boolean-group p,
.checkbox-input p {
    margin: 0;
    color: #888;
    font-size: .8rem;
}

@media (max-width: 1200px) {

    .application-wrapper {
        grid-template-columns: 1fr;
    }

    .application-info {
        order: 1;
    }

    .application-sidebar {
        order: 2;
    }

    .application-main {
        order: 3;
    }

    .application-sidebar,
    .application-info {
        position: relative;
        top: 0;
    }

    .application-hero .hero-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .application-card {
        padding: 20px;
    }
}