/* Header ei leiju hakemus-sivulla */
header {
    position: relative;
    background: #f9faf9;
    border-bottom: 1px solid #e0e0e0;
}

/* Hakemus-sivu */
.hakemus-page {
    padding: 48px 0 80px;
    padding-top: 48px;
    background: #f9faf9;
    min-height: calc(100vh - 64px - 200px);
}

.hakemus-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.hakemus-main {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
}

.placeholder-badge {
    background: #fff3cd;
    color: #856404;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px dashed #dfc577;
}

.hakemus-main h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.hakemus-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
}

fieldset {
    border: none;
    margin-bottom: 32px;
    padding: 0;
}

legend {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    width: 100%;
    display: block;
}

.hakemus-main .field {
    margin-bottom: 16px;
}

.hakemus-main .field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.hakemus-main input[type="text"],
.hakemus-main input[type="email"],
.hakemus-main input[type="tel"],
.hakemus-main select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #222;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}

.hakemus-main select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.hakemus-main input:focus,
.hakemus-main select:focus {
    outline: none;
    border-color: #1a5276;
}

.hakemus-main .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit-area {
    padding-top: 8px;
}

.form-submit-area .btn-primary {
    width: 100%;
    max-width: 320px;
}

/* Sidebar */
.side-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.side-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.side-card ul {
    list-style: none;
    padding: 0;
}

.side-card li {
    font-size: 14px;
    color: #555;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.side-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 10px;
    background: #e0eaf2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 7px;
}

.side-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.side-card a {
    color: #1a5276;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .hakemus-page { padding: 16px 0 48px; }

    .hakemus-layout {
        grid-template-columns: 1fr;
    }

    .hakemus-main {
        padding: 8px;
        border-radius: 12px;
    }

    .hakemus-main h1 { font-size: 22px; }

    .hakemus-main .field-row {
        grid-template-columns: 1fr;
    }

    .form-submit-area .btn-primary {
        max-width: 100%;
    }

    .side-card { padding: 20px; }

    /* YRA iframe täyttää leveyden ilman scrollia */
    #yra-widget {
        max-width: 100% !important;
        overflow: hidden;
    }
}
