/* Homepage Specific Styles */

/* Clear button inline style */
.clear-search {
    display: none; /* Default hidden, shown via JS when input has value */
}

/* Search status message */
#searchStatus {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.how-it-works-container {
    max-width: 600px;
    margin: 0 auto;
}

.how-it-works-step {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.how-it-works-step:last-child {
    margin-bottom: 0;
}

.how-it-works-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.how-it-works-content h4 {
    margin-bottom: 0.5rem;
}

.how-it-works-content p {
    color: var(--text-light);
}

/* Eligibility Section */
.eligibility-section {
    padding: 5rem 0;
    background: #f0fdf4;
}

.eligibility-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #065f46;
}

.eligibility-container {
    max-width: 800px;
    margin: 0 auto;
}

.eligibility-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.eligibility-card h3 {
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.eligibility-card > p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.eligibility-criteria {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.eligibility-criterion {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.eligibility-criterion svg {
    flex-shrink: 0;
}

.eligibility-highlight {
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.eligibility-highlight p {
    margin: 0;
    color: #065f46;
}

/* Loading spinner for search status */
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search results specific styles (extending existing) */
.search-no-results,
.error-message {
    padding: 2rem;
    text-align: center;
}

.search-no-results {
    color: var(--text-light);
}

.error-message {
    color: var(--error-color);
}