/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-primary {
    background: #165d7b;
    color: white;
    border-color: #165d7b;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #165d7b;
    border-color: #165d7b;
}

.btn-secondary:hover {
    background: #165d7b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

.btn-outline {
    background: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background: #374151;
    color: white;
    border-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 65, 81, 0.2);
}

/* Card Components */
.objective-card,
.finding-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.objective-card:hover,
.finding-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #165d7b, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.objective-card h3,
.finding-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.objective-card p,
.finding-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Statistics Cards */
.finding-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.25rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #165d7b;
    line-height: 1;
}

.stat-symbol {
    font-size: 2rem;
    font-weight: 600;
    color: #3b82f6;
}

/* Process Chart Styles */
.process-chart {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Validation States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

/* Mobile Responsive Components */
@media (max-width: 768px) {
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .objective-card,
    .finding-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-symbol {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .objective-card,
    .finding-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-symbol {
        font-size: 1.5rem;
    }
}

/* Accessibility Enhancements */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #165d7b;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid #165d7b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .objective-card,
    .finding-card {
        border: 2px solid #1e293b;
    }
    
    .btn-primary {
        border-width: 2px;
    }
    
    .btn-secondary,
    .btn-outline {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .objective-card,
    .finding-card,
    .btn {
        transition: none;
    }
    
    .objective-card:hover,
    .finding-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}