/* ============================================================
   applications.css
   Styles specific to the applications page template.
   Depends on variables defined in style.css.
============================================================ */

/* ============================================================
   SECTION DIVIDER
   Visual break between general info and application type finder
============================================================ */
.section-divider {
    background: var(--blue);
    border-radius: 8px;
    padding: 28px 36px;
    margin-bottom: 24px;
}

.section-divider h2 {
    color: var(--white) !important;
    font-size: 1.3rem;
    margin-bottom: 6px;
    border: none;
    padding: 0;
}

.section-divider p {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ============================================================
   APPLICATION TYPE SELECTOR
============================================================ */
.app-type-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-type-selector label {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.app-type-select {
    flex: 1;
    min-width: 240px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23004A8D' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.app-type-select:focus {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* ============================================================
   APPLICATION TYPE SECTIONS
   Hidden by default, shown via JS when selected
============================================================ */
.app-type-section {
    display: none;
}

.app-type-section.is-visible {
    display: block;
}

/* ============================================================
   MINI REQUIREMENTS TABLE
   Compact version for per-application-type requirements
============================================================ */
.requirements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.requirements-table thead tr {
    background: var(--blue);
}

.requirements-table thead th {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: left;
}

.requirements-table tbody td {
    padding: 9px 14px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.4;
}

.requirements-table tbody td:first-child {
    font-weight: 600;
    color: var(--text);
    width: 60%;
}

.requirements-table tbody tr:last-child td {
    border-bottom: none;
}

/* Check mark styling */
.req-check {
    color: var(--green);
    font-weight: 700;
}

/* Conditional note styling */
.req-note {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.85rem;
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 800px) {
    .app-type-selector {
        flex-direction: column;
        align-items: stretch;
    }
    .app-type-select {
        min-width: 0;
        width: 100%;
    }
}
