/* Mosque renovation application form. Palette matches header.css. */
.apply-page {
    padding-bottom: 60px;
}

.apply-page .lead {
    max-width: 820px;
    color: #4b5d55;
}

.apply-tabs {
    position: sticky;
    top: 170px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 18px;
    background: #fff;
}

.apply-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(15, 57, 43, .18);
    border-radius: 999px;
    color: #0F392B;
    font-size: 14px;
    text-decoration: none;
}

.apply-tabs a:hover,
.apply-tabs a:focus {
    background: #F4EEE2;
    color: #B85032;
    text-decoration: none;
}

.apply-tabs a span,
.apply-form legend span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0F392B;
    color: #C88A2D;
    font-size: 12px;
}

.apply-form fieldset {
    scroll-margin-top: 240px;
    padding: 22px 24px 8px;
    margin-bottom: 22px;
    border: 1px solid rgba(15, 57, 43, .12);
    border-radius: 14px;
    background: #FDFBF7;
}

.apply-form legend {
    width: auto;
    padding: 0 8px;
    margin-bottom: 10px;
    border: 0;
    font-size: 20px;
    font-weight: 600;
    color: #0F392B;
}

.apply-member {
    padding: 14px 16px 2px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed rgba(15, 57, 43, .18);
}

.apply-member h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #B85032;
}

.apply-req {
    color: #B85032;
}

.apply-yesno-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.apply-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.apply-submit {
    text-align: center;
}

.apply-btn,
.apply-btn:hover,
.apply-btn:focus {
    padding: 12px 34px;
    border: 0;
    border-radius: 999px;
    background: #0F392B;
    background-image: none;
    color: #fff;
    text-shadow: none;
}

.apply-btn:hover,
.apply-btn:focus {
    background: #B85032;
}

.apply-thanks {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    text-align: center;
    border-radius: 14px;
    background: #FDFBF7;
    border: 1px solid rgba(15, 57, 43, .12);
}

.apply-thanks h2 {
    color: #16a34a;
}

.apply-reference {
    font-family: "JetBrains Mono", Menlo, monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0F392B;
}

.mosque-apply-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #F4EEE2;
}

.mosque-apply-cta p {
    margin: 0;
    color: #0F392B;
}

@media (max-width: 1023px) {
    .apply-tabs {
        top: 110px;
    }
}
