/* Form-specific styles */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    background: #f8fafc;
    min-height: 100vh;
}

.form-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.sample-phase .phase-icon {
    background: #dc2626;
}

.er-phase .phase-icon {
    background: #f97316;
}

.dr-phase .phase-icon {
    background: #2563eb;
}

.abc-phase .phase-icon {
    background: #16a34a;
}

.de-phase .phase-icon {
    background: #eab308;
}

.phase-info h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.phase-info p {
    color: #6b7280;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #16a34a);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Form Sections */
.aid-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-section h2 i {
    color: #2563eb;
}

.guidance-text {
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.guidance-text p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guidance-text strong {
    color: #1d4ed8;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
    accent-color: #2563eb;
}

.checkbox-group label {
    margin: 0;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-grid .checkbox-group {
    margin-top: 0;
}

/* Form Actions */
.form-actions {
    padding: 2rem;
    background: #f8fafc;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 150px;
}

/* Status Indicators */
.completion-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.completion-status.complete {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.completion-status.incomplete {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.completion-status i {
    font-size: 1rem;
}

/* Responsive Design for Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 80px 15px 20px;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .phase-indicator {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .phase-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .phase-info h1 {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-actions .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 70px 10px 15px;
    }
    
    .guidance-text {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .checkbox-group {
        padding: 0.6rem;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
    }
}

/* Animation for form sections */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }
.form-section:nth-child(7) { animation-delay: 0.7s; }
.form-section:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles for PDF generation */
@media print {
    .form-container {
        padding: 0;
        background: white;
    }
    
    .form-header,
    .form-actions {
        display: none;
    }
    
    .form-section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc;
        padding: 1rem 0;
    }
    
    .guidance-text {
        background: #f5f5f5;
        border-left: 3px solid #333;
    }
}


/* Reset Form Button - Same Color as Download PDF */
.nav-actions .btn.btn-outline,
button.btn.btn-outline {
    background: #2563eb !important;
    color: white !important;
    border: 2px solid #2563eb !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    transform: translateY(0) !important;
}

.nav-actions .btn.btn-outline:hover,
button.btn.btn-outline:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}


