/* ==========================================================================
   Placement Form page (placement-form.html)
   Simple: a one-line title, then the Google Form embedded in a plain card.
   ========================================================================== */

.pf-page {
    background: #fffdf9;
    color: #241a1a;
    font-family: 'Lato', sans-serif;
    padding: 40px 0 64px;
}

.pf-page * {
    box-sizing: border-box;
}

.pf-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

.pf-title-block {
    text-align: center;
    margin-bottom: 24px;
}

.pf-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #a30d0d;
    margin-bottom: 8px;
}

.pf-title-block h1 {
    font-family: 'Noto Serif', serif;
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #241a1a;
}

.pf-title-block p {
    font-size: .95rem;
    color: #6b5f5f;
    margin: 0;
}

.pf-form-card {
    background: #fff;
    border: 1px solid #ecdfd2;
    border-radius: 12px;
    padding: 12px;
}

.pf-iframe-wrap {
    border-radius: 8px;
    overflow: hidden;
}

.pf-iframe-wrap iframe {
    display: block;
    width: 100%;
    /* Google Forms is a cross-origin iframe, so its real content height can't
       be read and the box can't auto-fit it exactly — this height matches
       Google's own compact "Fill out form" intro card; the actual form that
       opens inside it still scrolls within this box if it needs more room,
       instead of the page reserving a tall empty area up front. */
    height: 420px;
    max-height: 55vh;
    border: 0;
}

.pf-fallback-note {
    margin: 12px 2px 0;
    font-size: .82rem;
    color: #6b5f5f;
    text-align: center;
}

.pf-fallback-note a {
    color: #a30d0d;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .pf-title-block h1 {
        font-size: 1.5rem;
    }

    .pf-iframe-wrap iframe {
        height: 440px;
        max-height: 55vh;
    }
}

/* ---------- Companies list ---------- */
.pf-companies {
    margin: 0 0 20px;
}

.pf-companies[hidden] {
    display: none;
}

.pf-companies-head {
    font-family: 'Noto Serif', serif;
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #241a1a;
}

.pf-company-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pf-company {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    background: #fff;
    border: 1px solid #ecdfd2;
    border-left: 5px solid #2e7d32;
    border-radius: 10px;
    padding: 12px 16px;
}

.pf-company.is-closed {
    border-left-color: #9e9e9e;
    background: #faf8f5;
}

.pf-company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pf-company-info strong {
    font-size: 1rem;
    color: #241a1a;
}

.pf-company-info span {
    font-size: .85rem;
    color: #6b5f5f;
}

.pf-company-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pf-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.pf-badge--open {
    background: #e8f5e9;
    color: #2e7d32;
}

.pf-badge--closed {
    background: #eeeeee;
    color: #616161;
}

.pf-until {
    font-size: .85rem;
    color: #6b5f5f;
}

.pf-apply {
    border: 0;
    background: #7e0606;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.pf-apply:hover {
    background: #a30d0d;
}

.pf-apply--off {
    background: #e0e0e0;
    color: #757575;
    cursor: default;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
}

.pf-applying {
    margin: 0 0 12px;
    font-size: .95rem;
    color: #241a1a;
}

.pf-closed[hidden] {
    display: none;
}

.pf-closed {
    background: #fff;
    border: 1px solid #ecdfd2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.pf-closed h2 {
    font-family: 'Noto Serif', serif;
    font-size: 1.3rem;
    margin: 0 0 8px;
}

.pf-closed p {
    margin: 0;
    color: #6b5f5f;
}
