/* =========================================
   APPLICATION FORM STYLING (apply.css)
========================================= */
html {
    scroll-behavior: smooth;
}

:root {
    --brand-green: #285b40;
    --brand-dark-green: #17352d;
    --brand-gold: #a47a22;
    --brand-gold-light: #e8cb7a;
    --bg-beige: #f4f2ea;
    --white: #ffffff;
    --border-color: #cbd5e1;
    --text-dark: #17352d;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}

.apply-container {
    max-width: 900px;
    margin: clamp(28px, 4vw, 48px) auto;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(23, 53, 45, 0.08);
    padding: clamp(22px, 4vw, 40px);
    border: 1.5px solid rgba(164, 122, 34, 0.25);
    box-sizing: border-box;
}

.form-eyebrow {
    display: block;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(40, 91, 64, 0.09);
    border: 1px solid rgba(164, 122, 34, 0.42);
    color: #7c5c12;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.form-title {
    text-align: center;
    color: #075B46;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--brand-gold);
    font-size: clamp(0.8rem, 1.1vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    line-height: 1.45;
    margin: 0 auto clamp(24px, 3vw, 35px);
    max-width: 52ch;
}

/* Form Block Container */
.form-block {
    background: #faf8f5;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--brand-green);
    border-radius: 12px;
    padding: clamp(18px, 3vw, 26px);
    margin-bottom: clamp(20px, 2.8vw, 28px);
}

.block-header {
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 800;
    color: var(--brand-dark-green);
    text-transform: uppercase;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(40, 91, 64, 0.25);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.block-header .badge {
    background: linear-gradient(135deg, #a47a22 0%, #c9a64e 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

/* Form Grid Layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-dark-green);
    text-transform: uppercase;
    letter-spacing: 0.45px;
    line-height: 1.35;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 14px;
    font-size: 0.94rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-dark);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    resize: vertical;
    line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(164, 122, 34, 0.16);
}

/* Priority Cards inside Block 3 */
.priority-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: clamp(14px, 2.5vw, 20px);
    margin-bottom: 18px;
}

.priority-card:last-child {
    margin-bottom: 0;
}

.priority-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #7c5c12;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Board / Affiliation Custom Checkboxes */
.affiliation-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 4px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-dark-green);
    cursor: pointer;
    text-transform: none;
    background: #f5f9f6;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(40, 91, 64, 0.24);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-label:hover {
    background: #eaf3ed;
    border-color: var(--brand-green);
}

.checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(164, 122, 34, 0.14);
    border-color: var(--brand-gold);
    color: var(--brand-dark-green);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--brand-green);
    width: 16px;
    height: 16px;
    min-height: 16px;
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    display: block;
    width: 100%;
    min-height: 52px;
    background: linear-gradient(100deg, var(--brand-dark-green) 0%, var(--brand-green) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    padding: 15px 20px;
    border: 1.5px solid var(--brand-gold-light);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(23, 53, 45, 0.18);
}

.submit-btn:hover {
    background: linear-gradient(100deg, var(--brand-gold) 0%, #c9a64e 100%);
    border-color: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(164, 122, 34, 0.24);
}

/* Error Banner */
.error-alert-card {
    background: #fef2f2;
    border: 1.5px solid #dc2626;
    border-left: 7px solid #dc2626;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 26px;
    text-align: center;
}

.error-icon {
    width: 46px;
    height: 46px;
    background: #dc2626;
    color: #ffffff;
    font-size: 22px;
    line-height: 46px;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: 800;
}

.error-title {
    color: #991b1b;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.error-msg {
    color: #7f1d1d;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Professional Application Submitted Banner */
.success-alert-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid var(--brand-green);
    border-left: 8px solid var(--brand-green);
    border-radius: 12px;
    padding: clamp(22px, 3.5vw, 32px);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(40, 91, 64, 0.12);
    animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 54px;
    height: 54px;
    background: var(--brand-green);
    color: #ffffff;
    font-size: 26px;
    line-height: 54px;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-weight: bold;
}

.success-title {
    color: var(--brand-dark-green);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.success-msg {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-home-redirect,
.btn-new-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-home-redirect {
    background: var(--brand-dark-green);
    color: #ffffff;
}

.btn-home-redirect:hover {
    background: var(--brand-gold);
    transform: translateY(-1px);
}

.btn-new-apply {
    background: #ffffff;
    color: var(--brand-dark-green);
    border: 1.5px solid var(--brand-green);
}

.btn-new-apply:hover {
    background: #f5f9f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apply-container {
        margin: 24px 16px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .full-width {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .apply-container {
        margin: 18px 12px;
        padding: 16px 13px;
        border-radius: 12px;
    }

    .form-block {
        padding: 15px 13px;
    }

    .submit-btn {
        font-size: 0.92rem;
        padding: 14px 16px;
    }
}