/* Contract Selector - Single Click Flow */

/* --- SHARED VARIABLES --- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 
        0 10px 15px -3px rgba(12, 74, 110, 0.1), 
        0 4px 6px -2px rgba(12, 74, 110, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    --navy-900: #0f172a; /* Fallback for brand-900 */
    --navy-700: #334155;
    --slate-500: #64748b;
}

.contracts-container {
    width: 100%;
    max-width: 600px; /* Optimal reading width */
    margin: 0 auto;
    padding-bottom: 3rem;
}

.contracts-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- THE CARD --- */
.contract-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s ease-out;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
    /* GLASSMORPHISM BASE */
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Liquid Reflection Overlay */
.contract-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hover State */
.contract-card:hover {
    transform: translateY(-2px) scale(1.01);
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 25px -5px rgba(12, 74, 110, 0.1), 
        0 10px 10px -5px rgba(12, 74, 110, 0.04),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.contract-card:active {
    transform: scale(0.99);
}

/* Content Layout */
.card-content {
    flex: 1;
    margin-right: 1rem;
    position: relative;
    z-index: 1; /* Above reflection */
}

.contract-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-900, var(--navy-900));
    line-height: 1.3;
}

.contract-description {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--slate-600, var(--slate-500));
    line-height: 1.5;
    font-weight: 400;
}

/* Action Area (Arrow/Text) */
.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-600, #2563eb);
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0; /* Don't shrink the button area */
}

.action-text {
    display: none; /* Hidden on mobile by default to save space */
}

.chevron-icon {
    transition: transform 0.2s;
}

.contract-card:hover .chevron-icon {
    transform: translateX(3px);
}

/* --- RESPONSIVE TWEAKS --- */
@media (min-width: 640px) {
    .action-text {
        display: inline-block;
    }
    
    .contract-card {
        padding: 2rem;
    }

    .contract-title {
        font-size: 1.25rem;
    }
}
