/* Shared header */
.section-inner { max-width: 1200px; margin: 0 auto; }
.sticky-header { position: sticky; top: 0; z-index: 100; padding: 14px 24px; background: rgba(232,137,68,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow 0.3s; }
.sticky-header.scrolled { box-shadow: 0 2px 12px rgba(32,21,17,0.12); }
.sticky-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo-img { height: 52px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 12px; }
.top-link { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 1px; text-decoration: none; color: #201511; font-weight: 700; padding: 8px 12px; border-radius: 20px; border: 2px solid transparent; background: transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.top-link:hover { background: #201511; color: #e1d6c5; }
.top-link-primary { background: #e1d6c5; }
.top-link-primary:hover { background: #201511; color: #e1d6c5; }
.nav-toggle { display: none; background: rgba(0,0,0,0.14); color: #201511; border: none; border-radius: 50%; padding: 10px 12px; font-weight: 700; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }

.apply-back { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; text-decoration: none; color: #201511; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; opacity: 0.6; transition: opacity 0.2s; }
.apply-back:hover { opacity: 1; }

.apply-main { padding: 0 24px 80px; }
.apply-inner { max-width: 1200px; margin: 0 auto; }

/* Two-column layout: form left, info right */
.apply-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }

/* Left column */
.apply-left { display: flex; flex-direction: column; gap: 24px; }
.apply-intro { margin: 0; }
.apply-intro h1 { margin: 0 0 12px; }
.apply-intro p { font-size: var(--text-base); line-height: 1.6; opacity: 0.85; margin: 0; }

/* Form */
.apply-form-wrap { background: #e1d6c5; border-radius: .5em; padding: 2em; }
.apply-type-toggle { display: flex; gap: 8px; margin-bottom: 20px; }
.apply-type-toggle .members-toggle { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; background: rgba(255,255,255,0.35); color: #201511; transition: background 0.2s; }
.apply-type-toggle .members-toggle.active { background: #201511; color: #e1d6c5; }
#apply-person-fields, #apply-org-fields { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.apply-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label:not(.checkbox-label) { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; color: #201511; text-transform: uppercase; letter-spacing: 0.5px; }
.form-hint { font-size: var(--text-xs); opacity: 0.5; font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea { font-family: var(--font-body); font-size: var(--text-base); padding: 12px 14px; border: 1px solid rgba(0,0,0,0.15); border-radius: .5em; background: rgba(255,255,255,0.5); color: #201511; transition: border-color 0.2s, background 0.2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #201511; background: rgba(255,255,255,0.8); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(32,21,17,0.4); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Checkbox group */
.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; padding: 10px 12px; background: rgba(255,255,255,0.4); border-radius: .35em; transition: background 0.2s; line-height: 1.4; }
.checkbox-label:hover { background: rgba(255,255,255,0.6); }
.checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #201511; width: 16px; height: 16px; }

/* Consent */
.form-divider { height: 1px; background: rgba(0,0,0,0.12); margin: 8px 0; }
.consent-label { background: none; padding: 4px 0; }
.consent-label:hover { background: none; }
.consent-label a { color: #201511; font-weight: 700; }

.form-submit { font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 14px 28px; background: #201511; color: #e1d6c5; border: 2px solid #201511; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; align-self: flex-start; margin-top: 8px; }
.form-submit:hover { background: transparent; color: #201511; }

/* Right column */
.apply-right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

.apply-info-card { background: #e1d6c5; border-radius: .5em; padding: 1.5em; }
.apply-info-card h3 { margin: 0 0 10px; font-size: var(--text-md); }
.apply-info-card p { font-size: var(--text-xs); line-height: 1.5; margin: 0 0 6px; opacity: 0.85; }
.apply-info-card ul { padding-left: 16px; margin: 0; }
.apply-info-card li { font-size: var(--text-xs); line-height: 1.5; margin-bottom: 6px; opacity: 0.85; }
.apply-info-card li:last-child { margin-bottom: 0; }
.apply-info-card a { color: #201511; font-weight: 700; }

.apply-timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-step { display: flex; gap: 14px; align-items: flex-start; }
.timeline-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #201511; color: #e1d6c5; font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xs); display: flex; align-items: center; justify-content: center; }
.timeline-step h4 { margin: 0; font-size: var(--text-sm); font-weight: 700; font-family: var(--font-heading); line-height: 1.3; }
.timeline-step p { margin: 4px 0 0; font-size: var(--text-xs); line-height: 1.5; opacity: 0.8; }

.apply-questions p { margin: 0; }
.apply-questions a { color: #201511; font-weight: 700; }

/* Success/Error states */
.apply-status { border-radius: .5em; padding: 1.2em 1.5em; margin-bottom: 1em; }
.apply-status-success { background: rgba(39,174,96,0.1); }
.apply-status-success h2 { font-size: 1.3em; margin-top: 0; margin-bottom: 0.5em; color: #1e8449; }
.apply-status-success p { color: #201511; }
.apply-status-error { background: rgba(192,57,43,0.08); color: #922b21; font-size: var(--text-sm); }

/* Responsive */
@media (max-width: 768px) {
    .sticky-header-inner { position: relative; }
    .top-nav { display: none; flex-direction: column; gap: 8px; align-items: flex-start; position: absolute; top: 100%; right: 0; background: rgba(232,137,68,0.95); backdrop-filter: blur(12px); padding: 12px 16px; border-radius: 0 0 .5em .5em; }
    .top-nav.is-open { display: flex; }
    .nav-toggle { display: inline-flex; position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
    .apply-layout { grid-template-columns: 1fr; gap: 32px; }
    .apply-right { position: static; }
    .checkbox-group { grid-template-columns: 1fr; }
}
