body.teacher-application-page {
    min-height: 100dvh;
    padding-top: 0;
}

.teacher-application-shell {
    width: min(100% - 2rem, 760px);
    margin: 0 auto;
    padding: 2rem 0;
}

.teacher-application-panel {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(5, 45, 38, 0.96), rgba(3, 18, 15, 0.98));
    box-shadow: var(--shadow);
}

.teacher-application-head {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.teacher-application-head img {
    display: block;
    padding: 0.35rem;
    border-radius: 16px;
    background: #ffffff;
    object-fit: contain;
}

.teacher-application-head .hero-tag {
    margin: 0;
    max-width: calc(100% - 1rem);
}

.teacher-application-head h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.teacher-application-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 50%;
    background: rgba(4, 38, 33, 0.86);
    color: #fff8cf;
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
}

.teacher-application-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teacher-application-form label {
    display: grid;
    min-width: 0;
    gap: 0.45rem;
    color: #d8efe8;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.teacher-application-form input,
.teacher-application-form select,
.teacher-application-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0.8rem;
    border: 1px solid rgba(241, 196, 15, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
}

.teacher-application-form select option {
    background: #052d26;
    color: #ffffff;
}

.teacher-application-form textarea {
    resize: vertical;
}

.teacher-application-form input:focus,
.teacher-application-form select:focus,
.teacher-application-form textarea:focus,
.teacher-application-close:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.teacher-application-wide {
    grid-column: 1 / -1;
}

.teacher-application-receipt {
    display: grid;
    gap: 1rem;
    justify-items: center;
    padding: 1rem 0;
    text-align: center;
}

.teacher-application-receipt h2 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1.4rem;
    line-height: 1.4;
}

.teacher-application-receipt p {
    margin: 0;
    color: #d8efe8;
}

.teacher-application-details {
    min-width: 0;
    margin: 0.5rem 0;
    overflow-wrap: anywhere;
}

.teacher-application-details dt {
    margin: 0.7rem 0 0.2rem;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 800;
}

.teacher-application-details dd {
    margin: 0;
    color: #d8efe8;
    white-space: pre-line;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .teacher-application-shell {
        width: calc(100% - 1rem);
        padding: 0.75rem 0;
    }

    .teacher-application-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .teacher-application-head h1 {
        font-size: 1.55rem;
    }

    .teacher-application-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
